Func section tostrings and parses output values properly
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user