From fa8c570e77c8ba5260cf96c033e0f417cdfc73d8 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 9 Nov 2014 16:25:55 +1100 Subject: [PATCH] add File and Program to builder keys --- lib/6to5/types/builder-keys.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/6to5/types/builder-keys.json b/lib/6to5/types/builder-keys.json index 32dde91426..5e1ced9b66 100644 --- a/lib/6to5/types/builder-keys.json +++ b/lib/6to5/types/builder-keys.json @@ -6,6 +6,7 @@ "CallExpression": ["callee", "arguments"], "ConditionalExpression": ["test", "consequent", "alternate"], "ExpressionStatement": ["expression"], + "File": ["program", "comments", "tokens"], "FunctionExpression": ["id", "params", "body"], "Identifier": ["name"], "IfStatement": ["test", "consequent", "alternate"], @@ -13,6 +14,7 @@ "MemberExpression": ["object", "property", "computed"], "ObjectExpression": ["properties"], "ParenthesizedExpression": ["expression"], + "Program": ["body"], "Property": ["kind", "key", "value", "computed"], "ReturnStatement": ["argument"], "SequenceExpression": ["expressions"],