fix missing string-conversions

This commit is contained in:
Neemek 2026-08-17 17:15:34 +02:00 committed by Neemek
parent ff11d7e0ed
commit 09ac16a42d
Signed by: neemek
GPG key ID: 84FFE4D7D40AB25E
4 changed files with 17 additions and 3 deletions

View file

@ -96,6 +96,10 @@ func (n NodeType) String() string {
return "Index"
case RecordNodeType:
return "Record"
case ForNodeType:
return "For"
case IncludeNodeType:
return "Include"
}
return "Invalid Node Type"
}
@ -534,7 +538,7 @@ func (n ConditionalNode) String() string {
return fmt.Sprintf("if %s then %s", n.condition.String(), n.do.String())
}
return fmt.Sprintf("if %s then %s otheriwise %s", n.condition.String(), n.do.String(), n.otherwise.String())
return fmt.Sprintf("if %s then %s otherwise %s", n.condition.String(), n.do.String(), n.otherwise.String())
}
func (n ConditionalNode) Bounds() (Pos, Pos) {