add range property - fixes babel/babel-eslint#155
This commit is contained in:
parent
4437132372
commit
56a27a0647
@ -177,6 +177,8 @@ var astTransformVisitor = {
|
|||||||
node._babelType = node.type;
|
node._babelType = node.type;
|
||||||
},
|
},
|
||||||
exit: function (node) { /* parent */
|
exit: function (node) { /* parent */
|
||||||
|
node.range = [node.start, node.end];
|
||||||
|
|
||||||
if (this.isSpreadProperty()) {
|
if (this.isSpreadProperty()) {
|
||||||
node.type = "Property";
|
node.type = "Property";
|
||||||
node.kind = "init";
|
node.kind = "init";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user