Location fix for Mozilla AST start token.
This commit is contained in:
committed by
Richard van Velzen
parent
ae5366a31d
commit
f16033aafd
@@ -373,11 +373,13 @@
|
|||||||
var loc = moznode.loc, start = loc && loc.start;
|
var loc = moznode.loc, start = loc && loc.start;
|
||||||
var range = moznode.range;
|
var range = moznode.range;
|
||||||
return new AST_Token({
|
return new AST_Token({
|
||||||
file : loc && loc.source,
|
file : loc && loc.source,
|
||||||
line : start && start.line,
|
line : start && start.line,
|
||||||
col : start && start.column,
|
col : start && start.column,
|
||||||
pos : range ? range[0] : moznode.start,
|
pos : range ? range[0] : moznode.start,
|
||||||
endpos : range ? range[0] : moznode.start
|
endline : start && start.line,
|
||||||
|
endcol : start && start.column,
|
||||||
|
endpos : range ? range[0] : moznode.start
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user