From f16033aafdd7f88da6b53c58f86b8effd1fb2a3d Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Fri, 8 Aug 2014 14:54:34 +0300 Subject: [PATCH] Location fix for Mozilla AST start token. --- lib/mozilla-ast.js | 12 +++++++----- 1 file 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 }); }; -- 2.34.1