aboutsummaryrefslogtreecommitdiff
path: root/lib/mozilla-ast.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mozilla-ast.js')
-rw-r--r--lib/mozilla-ast.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/mozilla-ast.js b/lib/mozilla-ast.js
index 5056ffed..1deb18e2 100644
--- a/lib/mozilla-ast.js
+++ b/lib/mozilla-ast.js
@@ -373,11 +373,13 @@
var loc = moznode.loc, start = loc && loc.start;
var range = moznode.range;
return new AST_Token({
- file : loc && loc.source,
- line : start && start.line,
- col : start && start.column,
- pos : range ? range[0] : moznode.start,
- endpos : range ? range[0] : moznode.start
+ file : loc && loc.source,
+ line : start && start.line,
+ col : start && start.column,
+ pos : range ? range[0] : moznode.start,
+ endline : start && start.line,
+ endcol : start && start.column,
+ endpos : range ? range[0] : moznode.start
});
};