Reorder ast.NewIf arguments

This commit is contained in:
Nigel Tao committed 2018-05-11 10:25:39 +10:00
1 parent 9a186b24fb
commit 3ea85e770b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -721,7 +721,7 @@ func (p *parser) parseIf() (*a.If, error) {
}
}
}
return a.NewIf(condition, elseIf, bodyIfTrue, bodyIfFalse), nil
return a.NewIf(condition, bodyIfTrue, bodyIfFalse, elseIf), nil
}
func (p *parser) parseIterateNode() (*a.Node, error) {