revert-complexity #7

Merged
sashakoshka merged 34 commits from revert-complexity into main 2022-09-29 14:06:54 -06:00
Showing only changes of commit 3a38465368 - Show all commits

View File

@ -185,8 +185,10 @@ func (section DataSection) ToString (indent int) (output string) {
section.permission.ToString(), " ",
section.name, ":",
section.what.ToString(), "\n")
output += section.argument.ToString(indent + 1, true)
if section.argument.kind != ArgumentKindNil {
output += section.argument.ToString(indent + 1, true)
}
if section.external {
output += doIndent(indent + 1, "external\n")
@ -202,8 +204,10 @@ func (section TypeSection) ToString (indent int) (output string) {
section.permission.ToString(), " ",
section.name, ":",
section.what.ToString(), "\n")
output += section.argument.ToString(indent + 1, true)
if section.argument.kind != ArgumentKindNil {
output += section.argument.ToString(indent + 1, true)
}
return
}