Function output default values are ToString'd

This commit is contained in:
Sasha Koshka 2022-09-03 19:49:08 -04:00
parent 16e06aacb8
commit 9fb75e0228
1 changed files with 8 additions and 0 deletions

View File

@ -469,6 +469,14 @@ func (block Block) ToString (indent int) (output string) {
return
}
func (funcOutput FuncOutput) ToString () (output string) {
output += funcOutput.Declaration.ToString()
if funcOutput.defaultValue.kind != ArgumentKindNil {
output += " " + funcOutput.defaultValue.ToString(0, false)
}
return
}
func (section *FuncSection) ToString (indent int) (output string) {
output += doIndent (
indent,