Location fix for Mozilla AST start token.

This commit is contained in:
Ingvar Stepanyan
2014-08-08 14:54:34 +03:00
committed by Richard van Velzen
parent ae5366a31d
commit f16033aafd

View File

@@ -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
});
};