Update tests to (Foo) { ... } syntax.

This commit is contained in:
Christoffer Lerno
2025-02-18 18:53:30 +01:00
parent 168c11e006
commit cbacd64987
98 changed files with 449 additions and 551 deletions

View File

@@ -68,13 +68,13 @@ fn void! TextTemplate.init(&self, String template, String tag_start = "{{", Stri
{
$switch ($m.typeid)
$case String.typeid:
return TextTag{
return (TextTag){
.kind = STRING,
.data = (String*)(data + $m.offsetof),
};
$default:
$if $defined($m.get(self.data).as_stream):
return TextTag{
return (TextTag){
.kind = TEMPLATE,
.template = self.data.$eval($m.nameof).as_stream(),
};