Func section tostrings and parses output values properly

This commit is contained in:
2022-09-29 11:02:37 -04:00
parent 7374de2633
commit a31c975c9d
2 changed files with 16 additions and 8 deletions

View File

@@ -379,10 +379,13 @@ func (phrase Phrase) ToString (indent int, ownLine bool) (output string) {
func (funcOutput FuncOutput) ToString (indent int) (output string) {
output += doIndent(indent + 1)
output += "< " + funcOutput.Declaration.ToString()
// why is it always nil??? WHY???
if funcOutput.argument.kind != ArgumentKindNil {
output += " " + funcOutput.argument.ToString(indent, false)
}
output += "\n"
print(funcOutput.argument.ToString(0, true))
return
}