From febc3062cc6e313f9ce21984e2f61b9d6f1ddd66 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 30 Oct 2014 17:11:05 +1100 Subject: [PATCH] update traverse visitor keys to acorn ones --- lib/6to5/traverse/visitor-keys.json | 157 +++++++++++++--------------- 1 file changed, 73 insertions(+), 84 deletions(-) diff --git a/lib/6to5/traverse/visitor-keys.json b/lib/6to5/traverse/visitor-keys.json index 6d4d2b99d7..fe3396a904 100644 --- a/lib/6to5/traverse/visitor-keys.json +++ b/lib/6to5/traverse/visitor-keys.json @@ -1,86 +1,75 @@ { - "ArrayExpression": ["elements"], - "ArrayPattern": ["elements"], - "ArrowFunctionExpression": ["params", "defaults", "rest", "body"], - "AssignmentExpression": ["left", "right"], - "AwaitExpression": ["argument"], - "BinaryExpression": ["left", "right"], - "BlockStatement": ["body"], - "BreakStatement": ["label"], - "CallExpression": ["callee", "arguments"], - "CatchClause": ["param", "body"], - "ClassBody": ["body"], - "ClassDeclaration": ["id", "body", "superClass"], - "ClassExpression": ["id", "body", "superClass"], - "ClassProperty": ["key", "value"], - "ComprehensionBlock": ["left", "right", "body"], - "ComprehensionExpression": ["filter", "blocks", "body"], - "ConditionalExpression": ["test", "consequent", "alternate"], - "ContinueStatement": ["label"], - "DebuggerStatement": [], - "DoWhileStatement": ["body", "test"], - "EmptyStatement": [], - "ExportDeclaration": ["declaration", "specifiers", "source"], - "ExportBatchSpecifier": [], - "ExportSpecifier": ["id", "name"], - "ExpressionStatement": ["expression"], - "File": ["program"], - "ForInStatement": ["left", "right", "body"], - "ForOfStatement": ["left", "right", "body"], - "ForStatement": ["init", "test", "update", "body"], - "FunctionDeclaration": ["id", "params", "defaults", "rest", "body"], - "FunctionExpression": ["id", "params", "defaults", "rest", "body"], - "Identifier": [], - "IfStatement": ["test", "consequent", "alternate"], - "ImportDeclaration": ["specifiers", "source"], - "ImportDefaultSpecifier": ["id"], - "ImportNamespaceSpecifier": ["id"], - "ImportSpecifier": ["id", "name"], - "LabeledStatement": ["label", "body"], - "Literal": [], - "LogicalExpression": ["left", "right"], - "MemberExpression": ["object", "property"], - "MethodDefinition": ["key", "value"], - "ModuleSpecifier": [], - "NewExpression": ["callee", "arguments"], - "ObjectExpression": ["properties"], - "ObjectPattern": ["properties"], - "ObjectTypeAnnotation": ["properties"], - "OptionalParameter": ["id"], - "ParametricTypeAnnotation": ["params"], - "ParametricallyTypedIdentifier": [], - "Program": ["body"], - "Property": ["key", "value"], - "ReturnStatement": ["argument"], - "SequenceExpression": ["expressions"], - "SpreadElement": ["argument"], - "SpreadProperty": ["argument"], - "SwitchCase": ["test", "consequent"], - "SwitchStatement": ["discriminant", "cases"], - "TaggedTemplateExpression": ["tag", "quasi"], - "TemplateElement": [], - "TemplateLiteral": ["quasis", "expressions"], - "ThisExpression": [], - "ThrowStatement": ["argument"], - "TryStatement": ["block", "handlers", "handler", "guardedHandlers", "finalizer"], - "TypeAnnotatedIdentifier": ["id", "annotation"], - "TypeAnnotation": ["id", "params", "returnType", "parametricType"], - "UnaryExpression": ["argument"], - "UpdateExpression": ["argument"], - "VariableDeclaration": ["declarations"], - "VariableDeclarator": ["id", "init"], - "VoidTypeAnnotation": [], - "WhileStatement": ["test", "body"], - "WithStatement": ["object", "body"], - "XJSIdentifier": [], - "XJSNamespacedName": ["namespace", "name"], - "XJSMemberExpression": ["object", "property"], - "XJSEmptyExpression": [], - "XJSExpressionContainer": ["expression"], - "XJSElement": ["openingElement", "closingElement", "children"], - "XJSClosingElement": ["name"], - "XJSOpeningElement": ["name", "attributes"], - "XJSAttribute": ["name", "value"], - "XJSText": [], - "YieldExpression": ["argument"] + "ArrayExpression": ["elements"], + "ArrayPattern": ["elements"], + "ArrowFunctionExpression": ["params", "defaults", "rest", "body"], + "AssignmentExpression": ["left", "right"], + "BinaryExpression": ["left", "right"], + "BlockStatement": ["body"], + "BreakStatement": ["label"], + "CallExpression": ["callee", "arguments"], + "CatchClause": ["param", "body"], + "ClassBody": ["body"], + "ClassDeclaration": ["id", "body", "superClass"], + "ClassExpression": ["id", "body", "superClass"], + "ComprehensionBlock": ["left", "right", "body"], + "ComprehensionExpression": ["filter", "blocks", "body"], + "ConditionalExpression": ["test", "consequent", "alternate"], + "ContinueStatement": ["label"], + "DebuggerStatement": [], + "DoWhileStatement": ["body", "test"], + "EmptyStatement": [], + "ExportBatchSpecifier": [], + "ExportDeclaration": ["declaration", "specifiers", "source"], + "ExportSpecifier": ["id", "name"], + "ExpressionStatement": ["expression"], + "File": ["program"], + "ForInStatement": ["left", "right", "body"], + "ForOfStatement": ["left", "right", "body"], + "ForStatement": ["init", "test", "update", "body"], + "FunctionDeclaration": ["id", "params", "defaults", "rest", "body"], + "FunctionExpression": ["id", "params", "defaults", "rest", "body"], + "Identifier": [], + "IfStatement": ["test", "consequent", "alternate"], + "ImportBatchSpecifier": ["id"], + "ImportDeclaration": ["specifiers", "source"], + "ImportSpecifier": ["id", "name"], + "LabeledStatement": ["label", "body"], + "Literal": [], + "LogicalExpression": ["left", "right"], + "MemberExpression": ["object", "property"], + "MethodDefinition": ["key", "value"], + "NewExpression": ["callee", "arguments"], + "ObjectExpression": ["properties"], + "ObjectPattern": ["properties"], + "ParenthesizedExpression": ["expression"], + "Program": ["body"], + "Property": ["key", "value"], + "ReturnStatement": ["argument"], + "SequenceExpression": ["expressions"], + "SpreadElement": ["argument"], + "SwitchCase": ["test", "consequent"], + "SwitchStatement": ["discriminant", "cases"], + "TaggedTemplateExpression": ["tag", "quasi"], + "TemplateElement": [], + "TemplateLiteral": ["quasis", "expressions"], + "ThisExpression": [], + "ThrowStatement": ["argument"], + "TryStatement": ["block", "handlers", "handler", "guardedHandlers", "finalizer"], + "UnaryExpression": ["argument"], + "UpdateExpression": ["argument"], + "VariableDeclaration": ["declarations"], + "VariableDeclarator": ["id", "init"], + "WhileStatement": ["test", "body"], + "WithStatement": ["object", "body"], + "XJSAttribute": ["name", "value"], + "XJSClosingElement": ["name"], + "XJSElement": ["openingElement", "closingElement", "children"], + "XJSEmptyExpression": [], + "XJSExpressionContainer": ["expression"], + "XJSIdentifier": [], + "XJSMemberExpression": ["object", "property"], + "XJSNamespacedName": ["namespace", "name"], + "XJSOpeningElement": ["name", "attributes"], + "XJSSpreadAttribute": [], + "YieldExpression": ["argument"] }