khepri-ast
Advanced tools
Comparing version 4.3.0 to 4.4.0
# ChangeLog # | ||
## 4.4.0 - May 14, 2014 | ||
* Changed `AssignmentExpression` to have `immutable` attribute instead of `operator`. | ||
## 4.3.0 - May 7, 2014 | ||
@@ -4,0 +7,0 @@ * Added `PrefixOperatorToken` and `InfixOperatorToken` to capture types of |
/* | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/clause.kep' | ||
* THIS FILE IS AUTO GENERATED from 'lib/clause.kep' | ||
* DO NOT EDIT | ||
*/ | ||
"use strict"; | ||
*/"use strict"; | ||
var __o = require("./node"), | ||
defineNode = __o["defineNode"], | ||
Node = __o["Node"], | ||
Clause, SwitchCase, CatchClause; | ||
(Clause = (function() {})); | ||
Clause, SwitchCase, CatchClause, defineNode = __o["defineNode"], | ||
Node = __o["Node"]; | ||
(Clause = (function() { | ||
var self = this; | ||
})); | ||
(Clause.prototype = new(Node)()); | ||
@@ -12,0 +12,0 @@ (SwitchCase = defineNode(Clause, "SwitchCase", ["test", "consequent"], [], (function(loc, test, consequent) { |
/* | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/declaration.kep' | ||
* THIS FILE IS AUTO GENERATED from 'lib/declaration.kep' | ||
* DO NOT EDIT | ||
*/ | ||
"use strict"; | ||
*/"use strict"; | ||
var __o = require("./node"), | ||
defineNode = __o["defineNode"], | ||
Node = __o["Node"], | ||
Declaration, VariableDeclaration, VariableDeclarator, Binding, StaticDeclaration, StaticDeclarator; | ||
(Declaration = (function() {})); | ||
Declaration, VariableDeclaration, VariableDeclarator, Binding, StaticDeclaration, StaticDeclarator, defineNode = | ||
__o["defineNode"], | ||
Node = __o["Node"]; | ||
(Declaration = (function() { | ||
var self = this; | ||
})); | ||
(Declaration.prototype = new(Node)()); | ||
@@ -12,0 +13,0 @@ (VariableDeclaration = defineNode(Declaration, "VariableDeclaration", ["declarations"], [], (function(loc, declarations) { |
@@ -29,9 +29,9 @@ /* | ||
}))); | ||
(AssignmentExpression = defineNode(Expression, "AssignmentExpression", ["left", "right"], ["operator"], (function(loc, | ||
operator, left, right) { | ||
(AssignmentExpression = defineNode(Expression, "AssignmentExpression", ["left", "right"], ["immutable"], (function(loc, | ||
left, right, immutable) { | ||
var self = this; | ||
Node.call(self, loc); | ||
(self.operator = operator); | ||
(self.left = left); | ||
(self.right = right); | ||
(self.immutable = immutable); | ||
}))); | ||
@@ -38,0 +38,0 @@ (ConditionalExpression = defineNode(Expression, "ConditionalExpression", ["test", "consequent", "alternate"], [], ( |
/* | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/node.kep' | ||
* THIS FILE IS AUTO GENERATED from 'lib/node.kep' | ||
* DO NOT EDIT | ||
*/ | ||
"use strict"; | ||
*/"use strict"; | ||
var __o = require("./serialization"), | ||
registerNode = __o["registerNode"], | ||
Node, construct, reconstruct, modify, setLoc, setUserData, getData, modifyData, setData, defineNode, keys = Object.keys, | ||
Node, construct, reconstruct, modify, setLoc, setUserData, getData, modifyData, setData, defineNode, registerNode = | ||
__o["registerNode"], | ||
keys = Object.keys, | ||
setProperty = (function(obj, prop, value) { | ||
@@ -21,14 +21,13 @@ var out = ({}), | ||
}); | ||
(Node = (function(loc, ud) { | ||
(Node = (function(loc) { | ||
var self = this; | ||
Object.defineProperties(self, ({ | ||
"loc": ({ | ||
"value": loc, | ||
"enumerable": false, | ||
"writable": true | ||
value: loc, | ||
enumerable: false, | ||
writable: true | ||
}), | ||
"ud": ({ | ||
"value": (ud || null), | ||
"enumerable": false, | ||
"writable": true | ||
enumerable: false, | ||
writable: true | ||
}) | ||
@@ -35,0 +34,0 @@ })); |
@@ -7,5 +7,4 @@ /* | ||
var __o = require("./node"), | ||
defineNode = __o["defineNode"], | ||
Node = __o["Node"], | ||
Package, PackageExport, PackageExports; | ||
Package, PackageExport, PackageExports, defineNode = __o["defineNode"], | ||
Node = __o["Node"]; | ||
(PackageExport = defineNode(Node, "PackageExport", ["id", "alias"], [], (function(loc, id, alias) { | ||
@@ -12,0 +11,0 @@ var self = this; |
/* | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/pattern.kep' | ||
* THIS FILE IS AUTO GENERATED from 'lib/pattern.kep' | ||
* DO NOT EDIT | ||
*/ | ||
"use strict"; | ||
*/"use strict"; | ||
var __o = require("./node"), | ||
defineNode = __o["defineNode"], | ||
Node = __o["Node"], | ||
Pattern, IdentifierPattern, EllipsisPattern, SinkPattern, ImportPattern, ArrayPattern, ObjectPatternElement, | ||
ObjectPattern, ArgumentsPattern, AsPattern; | ||
(Pattern = (function(loc) { | ||
ObjectPattern, ArgumentsPattern, AsPattern, defineNode = __o["defineNode"], | ||
Node = __o["Node"]; | ||
(Pattern = (function() { | ||
var self = this; | ||
Node.call(self, loc); | ||
})); | ||
@@ -18,3 +15,3 @@ (Pattern.prototype = new(Node)()); | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
(self.id = id); | ||
@@ -24,3 +21,3 @@ }))); | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
(self.id = (id || null)); | ||
@@ -30,3 +27,3 @@ }))); | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
}))); | ||
@@ -41,3 +38,3 @@ (ImportPattern = defineNode(Node, "ImportPattern", ["from", "pattern"], [], (function(loc, from, pattern) { | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
(self.elements = elements); | ||
@@ -47,3 +44,3 @@ }))); | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
(self.key = key); | ||
@@ -54,3 +51,3 @@ (self.target = (target || null)); | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
(self.elements = elements); | ||
@@ -60,3 +57,3 @@ }))); | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
(self.id = id); | ||
@@ -68,3 +65,3 @@ (self.target = target); | ||
var T = this; | ||
Pattern.call(T, loc); | ||
Node.call(T, loc); | ||
(T.id = id); | ||
@@ -71,0 +68,0 @@ (T.elements = elements); |
/* | ||
* THIS FILE IS AUTO GENERATED from 'lib/position.kep' | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/position.kep' | ||
* DO NOT EDIT | ||
*/"use strict"; | ||
*/ | ||
"use strict"; | ||
var SourcePosition, SourceLocation; | ||
@@ -6,0 +7,0 @@ (SourcePosition = (function(line, column, file) { |
@@ -7,5 +7,4 @@ /* | ||
var __o = require("./node"), | ||
defineNode = __o["defineNode"], | ||
Node = __o["Node"], | ||
Program; | ||
Program, defineNode = __o["defineNode"], | ||
Node = __o["Node"]; | ||
(Program = defineNode(Node, "Program", ["body"], [], (function(loc, body) { | ||
@@ -12,0 +11,0 @@ var self = this; |
/* | ||
* THIS FILE IS AUTO GENERATED from 'lib/value.kep' | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/value.kep' | ||
* DO NOT EDIT | ||
*/"use strict"; | ||
*/ | ||
"use strict"; | ||
var __o = require("./node"), | ||
@@ -6,0 +7,0 @@ Literal, ObjectValue, Identifier, UnaryOperator, BinaryOperator, TernaryOperator, defineNode = __o["defineNode"], |
/* | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/clause.kep' | ||
* THIS FILE IS AUTO GENERATED from 'lib/clause.kep' | ||
* DO NOT EDIT | ||
*/ | ||
define(["require", "exports", "./node"], (function(require, exports, __o) { | ||
*/define(["require", "exports", "./node"], (function(require, exports, __o) { | ||
"use strict"; | ||
var defineNode = __o["defineNode"], | ||
Node = __o["Node"], | ||
Clause, SwitchCase, CatchClause; | ||
(Clause = (function() {})); | ||
var Clause, SwitchCase, CatchClause, defineNode = __o["defineNode"], | ||
Node = __o["Node"]; | ||
(Clause = (function() { | ||
var self = this; | ||
})); | ||
(Clause.prototype = new(Node)()); | ||
@@ -12,0 +12,0 @@ (SwitchCase = defineNode(Clause, "SwitchCase", ["test", "consequent"], [], (function(loc, test, consequent) { |
/* | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/declaration.kep' | ||
* THIS FILE IS AUTO GENERATED from 'lib/declaration.kep' | ||
* DO NOT EDIT | ||
*/ | ||
define(["require", "exports", "./node"], (function(require, exports, __o) { | ||
*/define(["require", "exports", "./node"], (function(require, exports, __o) { | ||
"use strict"; | ||
var defineNode = __o["defineNode"], | ||
Node = __o["Node"], | ||
Declaration, VariableDeclaration, VariableDeclarator, Binding, StaticDeclaration, StaticDeclarator; | ||
(Declaration = (function() {})); | ||
var Declaration, VariableDeclaration, VariableDeclarator, Binding, StaticDeclaration, StaticDeclarator, | ||
defineNode = __o["defineNode"], | ||
Node = __o["Node"]; | ||
(Declaration = (function() { | ||
var self = this; | ||
})); | ||
(Declaration.prototype = new(Node)()); | ||
@@ -12,0 +13,0 @@ (VariableDeclaration = defineNode(Declaration, "VariableDeclaration", ["declarations"], [], (function(loc, |
@@ -30,9 +30,9 @@ /* | ||
}))); | ||
(AssignmentExpression = defineNode(Expression, "AssignmentExpression", ["left", "right"], ["operator"], ( | ||
function(loc, operator, left, right) { | ||
(AssignmentExpression = defineNode(Expression, "AssignmentExpression", ["left", "right"], ["immutable"], ( | ||
function(loc, left, right, immutable) { | ||
var self = this; | ||
Node.call(self, loc); | ||
(self.operator = operator); | ||
(self.left = left); | ||
(self.right = right); | ||
(self.immutable = immutable); | ||
}))); | ||
@@ -39,0 +39,0 @@ (ConditionalExpression = defineNode(Expression, "ConditionalExpression", ["test", "consequent", "alternate"], [], ( |
/* | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/node.kep' | ||
* THIS FILE IS AUTO GENERATED from 'lib/node.kep' | ||
* DO NOT EDIT | ||
*/ | ||
define(["require", "exports", "./serialization"], (function(require, exports, __o) { | ||
*/define(["require", "exports", "./serialization"], (function(require, exports, __o) { | ||
"use strict"; | ||
var registerNode = __o["registerNode"], | ||
Node, construct, reconstruct, modify, setLoc, setUserData, getData, modifyData, setData, defineNode, | ||
keys = Object.keys, | ||
var Node, construct, reconstruct, modify, setLoc, setUserData, getData, modifyData, setData, defineNode, | ||
registerNode = __o["registerNode"], | ||
keys = Object.keys, | ||
setProperty = (function(obj, prop, value) { | ||
@@ -22,14 +21,13 @@ var out = ({}), | ||
}); | ||
(Node = (function(loc, ud) { | ||
(Node = (function(loc) { | ||
var self = this; | ||
Object.defineProperties(self, ({ | ||
"loc": ({ | ||
"value": loc, | ||
"enumerable": false, | ||
"writable": true | ||
value: loc, | ||
enumerable: false, | ||
writable: true | ||
}), | ||
"ud": ({ | ||
"value": (ud || null), | ||
"enumerable": false, | ||
"writable": true | ||
enumerable: false, | ||
writable: true | ||
}) | ||
@@ -36,0 +34,0 @@ })); |
@@ -7,5 +7,4 @@ /* | ||
"use strict"; | ||
var defineNode = __o["defineNode"], | ||
Node = __o["Node"], | ||
Package, PackageExport, PackageExports; | ||
var Package, PackageExport, PackageExports, defineNode = __o["defineNode"], | ||
Node = __o["Node"]; | ||
(PackageExport = defineNode(Node, "PackageExport", ["id", "alias"], [], (function(loc, id, alias) { | ||
@@ -12,0 +11,0 @@ var self = this; |
/* | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/pattern.kep' | ||
* THIS FILE IS AUTO GENERATED from 'lib/pattern.kep' | ||
* DO NOT EDIT | ||
*/ | ||
define(["require", "exports", "./node"], (function(require, exports, __o) { | ||
*/define(["require", "exports", "./node"], (function(require, exports, __o) { | ||
"use strict"; | ||
var defineNode = __o["defineNode"], | ||
Node = __o["Node"], | ||
Pattern, IdentifierPattern, EllipsisPattern, SinkPattern, ImportPattern, ArrayPattern, | ||
ObjectPatternElement, ObjectPattern, ArgumentsPattern, AsPattern; | ||
(Pattern = (function(loc) { | ||
var Pattern, IdentifierPattern, EllipsisPattern, SinkPattern, ImportPattern, ArrayPattern, | ||
ObjectPatternElement, ObjectPattern, ArgumentsPattern, AsPattern, defineNode = __o["defineNode"], | ||
Node = __o["Node"]; | ||
(Pattern = (function() { | ||
var self = this; | ||
Node.call(self, loc); | ||
})); | ||
@@ -18,3 +15,3 @@ (Pattern.prototype = new(Node)()); | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
(self.id = id); | ||
@@ -24,3 +21,3 @@ }))); | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
(self.id = (id || null)); | ||
@@ -30,3 +27,3 @@ }))); | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
}))); | ||
@@ -41,3 +38,3 @@ (ImportPattern = defineNode(Node, "ImportPattern", ["from", "pattern"], [], (function(loc, from, pattern) { | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
(self.elements = elements); | ||
@@ -48,3 +45,3 @@ }))); | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
(self.key = key); | ||
@@ -55,3 +52,3 @@ (self.target = (target || null)); | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
(self.elements = elements); | ||
@@ -61,3 +58,3 @@ }))); | ||
var self = this; | ||
Pattern.call(self, loc); | ||
Node.call(self, loc); | ||
(self.id = id); | ||
@@ -69,3 +66,3 @@ (self.target = target); | ||
var T = this; | ||
Pattern.call(T, loc); | ||
Node.call(T, loc); | ||
(T.id = id); | ||
@@ -72,0 +69,0 @@ (T.elements = elements); |
/* | ||
* THIS FILE IS AUTO GENERATED from 'lib/position.kep' | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/position.kep' | ||
* DO NOT EDIT | ||
*/define(["require", "exports"], (function(require, exports) { | ||
*/ | ||
define(["require", "exports"], (function(require, exports) { | ||
"use strict"; | ||
@@ -6,0 +7,0 @@ var SourcePosition, SourceLocation; |
@@ -7,5 +7,4 @@ /* | ||
"use strict"; | ||
var defineNode = __o["defineNode"], | ||
Node = __o["Node"], | ||
Program; | ||
var Program, defineNode = __o["defineNode"], | ||
Node = __o["Node"]; | ||
(Program = defineNode(Node, "Program", ["body"], [], (function(loc, body) { | ||
@@ -12,0 +11,0 @@ var self = this; |
/* | ||
* THIS FILE IS AUTO GENERATED from 'lib/value.kep' | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/value.kep' | ||
* DO NOT EDIT | ||
*/define(["require", "exports", "./node"], (function(require, exports, __o) { | ||
*/ | ||
define(["require", "exports", "./node"], (function(require, exports, __o) { | ||
"use strict"; | ||
@@ -6,0 +7,0 @@ var Literal, ObjectValue, Identifier, UnaryOperator, BinaryOperator, TernaryOperator, defineNode = __o[ |
{ | ||
"name": "khepri-ast", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"description": "Khepri AST nodes", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
96841
1594