variable node, allow nil finally

This commit is contained in:
vadim
2017-12-06 15:04:44 +02:00
parent c744a6c170
commit 2d168cd2e2
4 changed files with 519 additions and 490 deletions

View File

@@ -38,6 +38,8 @@ func (n Try) Print(out io.Writer, indent string) {
nn.Print(out, indent+" ")
}
fmt.Fprintf(out, "\n%vfinally:", indent+" ")
n.finally.Print(out, indent+" ")
if n.finally != nil {
fmt.Fprintf(out, "\n%vfinally:", indent+" ")
n.finally.Print(out, indent+" ")
}
}