stmt: group node* definitions together

This commit is contained in:
mappu 2020-04-05 17:05:22 +12:00
parent 90ce6af6dd
commit 8f921436ed
1 changed files with 6 additions and 10 deletions

16
node.go
View File

@ -74,6 +74,12 @@ func convert(n_ node.Node) (string, error) {
return ret, nil
case *node.Identifier:
return n.Value, nil
case Literal:
return n.Value, nil
//
// stmt
//
@ -388,16 +394,6 @@ func convert(n_ node.Node) (string, error) {
// TODO this may need to use `:=`
return lvalue + " = " + rvalue, nil
//
// special literals
//
case Literal:
return n.Value, nil
case *node.Identifier:
return n.Value, nil
//
// expr
//