shift-spec
Advanced tools
Comparing version 2015.1.1 to 2015.1.3
@@ -33,3 +33,3 @@ // Generated by src/generate-spec.js. | ||
typeName: "Enum", | ||
values: ["ArrayBinding", "ArrayExpression", "ArrowExpression", "AssignmentExpression", "BinaryExpression", "BindingIdentifier", "BindingProperty", "BindingPropertyIdentifier", "BindingPropertyProperty", "BindingWithDefault", "Block", "BlockStatement", "BreakStatement", "CallExpression", "CatchClause", "Class", "ClassDeclaration", "ClassElement", "ClassExpression", "ComputedMemberExpression", "ComputedPropertyName", "ConditionalExpression", "ContinueStatement", "DataProperty", "DebuggerStatement", "Directive", "DoWhileStatement", "EmptyStatement", "Export", "ExportAllFrom", "ExportDeclaration", "ExportDefault", "ExportFrom", "ExportSpecifier", "Expression", "ExpressionStatement", "ForInStatement", "ForOfStatement", "ForStatement", "FormalParameters", "Function", "FunctionBody", "FunctionDeclaration", "FunctionExpression", "Getter", "IdentifierExpression", "IfStatement", "Import", "ImportDeclaration", "ImportNamespace", "ImportSpecifier", "IterationStatement", "LabeledStatement", "LiteralBooleanExpression", "LiteralInfinityExpression", "LiteralNullExpression", "LiteralNumericExpression", "LiteralRegExpExpression", "LiteralStringExpression", "MemberExpression", "Method", "MethodDefinition", "Module", "NamedObjectProperty", "NewExpression", "NewTargetExpression", "Node", "ObjectBinding", "ObjectExpression", "ObjectProperty", "PostfixExpression", "PrefixExpression", "PropertyName", "ReturnStatement", "Script", "Setter", "ShorthandProperty", "SourceLocation", "SourceSpan", "SpreadElement", "Statement", "StaticMemberExpression", "StaticPropertyName", "Super", "SwitchCase", "SwitchDefault", "SwitchStatement", "SwitchStatementWithDefault", "TemplateElement", "TemplateExpression", "ThisExpression", "ThrowStatement", "TryCatchStatement", "TryFinallyStatement", "UnaryExpression", "VariableDeclaration", "VariableDeclarationStatement", "VariableDeclarator", "WhileStatement", "WithStatement", "YieldExpression", "YieldGeneratorExpression"] | ||
values: ["ArrayBinding", "ArrayExpression", "ArrowExpression", "AssignmentExpression", "BinaryExpression", "BindingIdentifier", "BindingProperty", "BindingPropertyIdentifier", "BindingPropertyProperty", "BindingWithDefault", "Block", "BlockStatement", "BreakStatement", "CallExpression", "CatchClause", "Class", "ClassDeclaration", "ClassElement", "ClassExpression", "CompoundAssignmentExpression", "ComputedMemberExpression", "ComputedPropertyName", "ConditionalExpression", "ContinueStatement", "DataProperty", "DebuggerStatement", "Directive", "DoWhileStatement", "EmptyStatement", "Export", "ExportAllFrom", "ExportDeclaration", "ExportDefault", "ExportFrom", "ExportSpecifier", "Expression", "ExpressionStatement", "ForInStatement", "ForOfStatement", "ForStatement", "FormalParameters", "Function", "FunctionBody", "FunctionDeclaration", "FunctionExpression", "Getter", "IdentifierExpression", "IfStatement", "Import", "ImportDeclaration", "ImportNamespace", "ImportSpecifier", "IterationStatement", "LabeledStatement", "LiteralBooleanExpression", "LiteralInfinityExpression", "LiteralNullExpression", "LiteralNumericExpression", "LiteralRegExpExpression", "LiteralStringExpression", "MemberExpression", "Method", "MethodDefinition", "Module", "NamedObjectProperty", "NewExpression", "NewTargetExpression", "Node", "ObjectBinding", "ObjectExpression", "ObjectProperty", "PropertyName", "ReturnStatement", "Script", "Setter", "ShorthandProperty", "SourceLocation", "SourceSpan", "SpreadElement", "Statement", "StaticMemberExpression", "StaticPropertyName", "Super", "SwitchCase", "SwitchDefault", "SwitchStatement", "SwitchStatementWithDefault", "TemplateElement", "TemplateExpression", "ThisExpression", "ThrowStatement", "TryCatchStatement", "TryFinallyStatement", "UnaryExpression", "UpdateExpression", "VariableDeclaration", "VariableDeclarationStatement", "VariableDeclarator", "WhileStatement", "WithStatement", "YieldExpression", "YieldGeneratorExpression"] | ||
}; | ||
@@ -42,5 +42,5 @@ | ||
var AssignmentOperator = { | ||
var CompoundAssignmentOperator = { | ||
typeName: "Enum", | ||
values: ["=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", "|=", "^=", "&="] | ||
values: ["+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", "|=", "^=", "&="] | ||
}; | ||
@@ -53,8 +53,8 @@ | ||
var PrefixOperator = { | ||
var UnaryOperator = { | ||
typeName: "Enum", | ||
values: ["+", "-", "!", "~", "typeof", "void", "delete", "++", "--"] | ||
values: ["+", "-", "!", "~", "typeof", "void", "delete"] | ||
}; | ||
var PostfixOperator = { | ||
var UpdateOperator = { | ||
typeName: "Enum", | ||
@@ -102,2 +102,3 @@ values: ["++", "--"] | ||
var CallExpression = SPEC.CallExpression = {}; | ||
var CompoundAssignmentExpression = SPEC.CompoundAssignmentExpression = {}; | ||
var ComputedMemberExpression = SPEC.ComputedMemberExpression = {}; | ||
@@ -110,7 +111,7 @@ var ConditionalExpression = SPEC.ConditionalExpression = {}; | ||
var ObjectExpression = SPEC.ObjectExpression = {}; | ||
var PostfixExpression = SPEC.PostfixExpression = {}; | ||
var PrefixExpression = SPEC.PrefixExpression = {}; | ||
var UnaryExpression = SPEC.UnaryExpression = {}; | ||
var StaticMemberExpression = SPEC.StaticMemberExpression = {}; | ||
var TemplateExpression = SPEC.TemplateExpression = {}; | ||
var ThisExpression = SPEC.ThisExpression = {}; | ||
var UpdateExpression = SPEC.UpdateExpression = {}; | ||
var YieldExpression = SPEC.YieldExpression = {}; | ||
@@ -163,4 +164,3 @@ var YieldGeneratorExpression = SPEC.YieldGeneratorExpression = {}; | ||
var MemberExpression = Union(ComputedMemberExpression, StaticMemberExpression); | ||
var UnaryExpression = Union(PostfixExpression, PrefixExpression); | ||
var Expression = Union(UnaryExpression, MemberExpression, ClassExpression, LiteralBooleanExpression, LiteralInfinityExpression, LiteralNullExpression, LiteralNumericExpression, LiteralRegExpExpression, LiteralStringExpression, ArrayExpression, ArrowExpression, AssignmentExpression, BinaryExpression, CallExpression, ConditionalExpression, FunctionExpression, IdentifierExpression, NewExpression, NewTargetExpression, ObjectExpression, TemplateExpression, ThisExpression, YieldExpression, YieldGeneratorExpression); | ||
var Expression = Union(MemberExpression, ClassExpression, LiteralBooleanExpression, LiteralInfinityExpression, LiteralNullExpression, LiteralNumericExpression, LiteralRegExpExpression, LiteralStringExpression, ArrayExpression, ArrowExpression, AssignmentExpression, BinaryExpression, CallExpression, CompoundAssignmentExpression, ConditionalExpression, FunctionExpression, IdentifierExpression, NewExpression, NewTargetExpression, ObjectExpression, UnaryExpression, TemplateExpression, ThisExpression, UpdateExpression, YieldExpression, YieldGeneratorExpression); | ||
var IterationStatement = Union(DoWhileStatement, ForInStatement, ForOfStatement, ForStatement, WhileStatement); | ||
@@ -261,2 +261,3 @@ var Statement = Union(IterationStatement, ClassDeclaration, BlockStatement, BreakStatement, ContinueStatement, DebuggerStatement, EmptyStatement, ExpressionStatement, IfStatement, LabeledStatement, ReturnStatement, SwitchStatement, SwitchStatementWithDefault, ThrowStatement, TryCatchStatement, TryFinallyStatement, VariableDeclarationStatement, WithStatement, FunctionDeclaration); | ||
{ name: "loc", type: Maybe(SourceSpan) }, | ||
{ name: "directives", type: List(Directive) }, | ||
{ name: "items", type: List(Union(ImportDeclaration, ExportDeclaration, Statement)) }, | ||
@@ -444,3 +445,2 @@ ]; | ||
{ name: "loc", type: Maybe(SourceSpan) }, | ||
{ name: "operator", type: AssignmentOperator }, | ||
{ name: "binding", type: Union(ObjectBinding, ArrayBinding, BindingIdentifier, MemberExpression) }, | ||
@@ -467,2 +467,11 @@ { name: "expression", type: Expression }, | ||
CompoundAssignmentExpression.typeName = "CompoundAssignmentExpression"; | ||
CompoundAssignmentExpression.fields = [ | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "CompoundAssignmentExpression" }, | ||
{ name: "loc", type: Maybe(SourceSpan) }, | ||
{ name: "operator", type: CompoundAssignmentOperator }, | ||
{ name: "binding", type: Union(BindingIdentifier, MemberExpression) }, | ||
{ name: "expression", type: Expression }, | ||
]; | ||
ComputedMemberExpression.typeName = "ComputedMemberExpression"; | ||
@@ -523,18 +532,10 @@ ComputedMemberExpression.fields = [ | ||
PostfixExpression.typeName = "PostfixExpression"; | ||
PostfixExpression.fields = [ | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "PostfixExpression" }, | ||
UnaryExpression.typeName = "UnaryExpression"; | ||
UnaryExpression.fields = [ | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "UnaryExpression" }, | ||
{ name: "loc", type: Maybe(SourceSpan) }, | ||
{ name: "operator", type: UnaryOperator }, | ||
{ name: "operand", type: Expression }, | ||
{ name: "operator", type: PostfixOperator }, | ||
]; | ||
PrefixExpression.typeName = "PrefixExpression"; | ||
PrefixExpression.fields = [ | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "PrefixExpression" }, | ||
{ name: "loc", type: Maybe(SourceSpan) }, | ||
{ name: "operand", type: Expression }, | ||
{ name: "operator", type: PrefixOperator }, | ||
]; | ||
StaticMemberExpression.typeName = "StaticMemberExpression"; | ||
@@ -562,2 +563,11 @@ StaticMemberExpression.fields = [ | ||
UpdateExpression.typeName = "UpdateExpression"; | ||
UpdateExpression.fields = [ | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "UpdateExpression" }, | ||
{ name: "loc", type: Maybe(SourceSpan) }, | ||
{ name: "isPrefix", type: BOOLEAN }, | ||
{ name: "operator", type: UpdateOperator }, | ||
{ name: "operand", type: Union(BindingIdentifier, MemberExpression) }, | ||
]; | ||
YieldExpression.typeName = "YieldExpression"; | ||
@@ -794,3 +804,4 @@ YieldExpression.fields = [ | ||
{ name: "loc", type: Maybe(SourceSpan) }, | ||
{ name: "body", type: FunctionBody }, | ||
{ name: "directives", type: List(Directive) }, | ||
{ name: "statements", type: List(Statement) }, | ||
]; | ||
@@ -797,0 +808,0 @@ |
{ | ||
"name": "shift-spec", | ||
"version": "2015.1.1", | ||
"version": "2015.1.3", | ||
"description": "JavaScript representation of the Shift AST specification", | ||
@@ -29,3 +29,3 @@ "author": "Shape Security Labs", | ||
"devDependencies": { | ||
"shift-spec-idl": "2015.0.x" | ||
"shift-spec-idl": "2015.1.x" | ||
}, | ||
@@ -32,0 +32,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50043
760