support dumping AST (#1879)

Re-order `AST_Binary` properties to make dump more readable.

closes #769
This commit is contained in:
Alex Lam S.L
2017-05-08 06:23:01 +08:00
committed by GitHub
parent 4f8ca4626e
commit da295de82b
4 changed files with 45 additions and 6 deletions

View File

@@ -619,7 +619,7 @@ var AST_UnaryPostfix = DEFNODE("UnaryPostfix", null, {
$documentation: "Unary postfix expression, i.e. `i++`"
}, AST_Unary);
var AST_Binary = DEFNODE("Binary", "left operator right", {
var AST_Binary = DEFNODE("Binary", "operator left right", {
$documentation: "Binary expression, i.e. `a + b`",
$propdoc: {
left: "[AST_Node] left-hand side expression",