khepri-ast
Advanced tools
Comparing version 3.9.1 to 3.10.0
# ChangeLog # | ||
## 3.10.0 - May 5, 2014 | ||
* Added optional file field to `SourceLocation` | ||
## 3.9.1 - April 13, 2014 | ||
@@ -4,0 +7,0 @@ * Fixed potentially incorrect reconstruction with modify for falsy values. |
/* | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/package.kep' | ||
* THIS FILE IS AUTO GENERATED from 'lib/package.kep' | ||
* DO NOT EDIT | ||
*/ | ||
"use strict"; | ||
*/"use strict"; | ||
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) { | ||
@@ -11,0 +9,0 @@ var self = this; |
/* | ||
* 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; | ||
@@ -26,16 +25,18 @@ (SourcePosition = (function(line, column) { | ||
})); | ||
(SourceLocation = (function(start, end) { | ||
(SourceLocation = (function(start, end, file) { | ||
var self = this; | ||
(self.start = start); | ||
(self.end = end); | ||
(self.file = file); | ||
})); | ||
(SourceLocation.prototype.toString = (function() { | ||
var self = this; | ||
return (((("{start:" + self.start) + " end:") + self.end) + "}"); | ||
return ("{" + (self.file ? (("file:" + self.file) + " ") : (((("" ("start:") + self.start) + " end:") + | ||
self.end) + "}"))); | ||
})); | ||
(SourceLocation.merge = (function(s1, s2) { | ||
return new(SourceLocation)(((s1.start.compare(s2.start) > 0) ? s2.start : s1.start), ((s1.end.compare(s2.end) > | ||
0) ? s1.end : s2.end)); | ||
return new(SourceLocation)((s1.start.compare(s2.start) ? s2.start : s1.start), (s1.end.compare(s2.end) ? s1 | ||
.end : s2.end), (s1.file || s2.file)); | ||
})); | ||
(exports["SourcePosition"] = SourcePosition); | ||
(exports["SourceLocation"] = SourceLocation); |
/* | ||
* THIS FILE IS AUTO GENERATED FROM 'lib/package.kep' | ||
* THIS FILE IS AUTO GENERATED from 'lib/package.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"], | ||
Package, PackageExport, PackageExports; | ||
var Package, PackageExport, PackageExports, defineNode = __o["defineNode"], | ||
Node = __o["Node"]; | ||
(PackageExport = defineNode(Node, "PackageExport", ["id", "alias"], [], (function(loc, id, alias) { | ||
@@ -11,0 +9,0 @@ var self = this; |
/* | ||
* 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"; | ||
@@ -27,14 +26,16 @@ var SourcePosition, SourceLocation; | ||
})); | ||
(SourceLocation = (function(start, end) { | ||
(SourceLocation = (function(start, end, file) { | ||
var self = this; | ||
(self.start = start); | ||
(self.end = end); | ||
(self.file = file); | ||
})); | ||
(SourceLocation.prototype.toString = (function() { | ||
var self = this; | ||
return (((("{start:" + self.start) + " end:") + self.end) + "}"); | ||
return ("{" + (self.file ? (("file:" + self.file) + " ") : (((("" ("start:") + self.start) + | ||
" end:") + self.end) + "}"))); | ||
})); | ||
(SourceLocation.merge = (function(s1, s2) { | ||
return new(SourceLocation)(((s1.start.compare(s2.start) > 0) ? s2.start : s1.start), ((s1.end.compare( | ||
s2.end) > 0) ? s1.end : s2.end)); | ||
return new(SourceLocation)((s1.start.compare(s2.start) ? s2.start : s1.start), (s1.end.compare( | ||
s2.end) ? s1.end : s2.end), (s1.file || s2.file)); | ||
})); | ||
@@ -41,0 +42,0 @@ (exports["SourcePosition"] = SourcePosition); |
{ | ||
"name": "khepri-ast", | ||
"version": "3.9.1", | ||
"description": "Khepri AST Nodes", | ||
"version": "3.10.0", | ||
"description": "Khepri AST nodes", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
96937
1617