add range property - fixes babel/babel-eslint#155

This commit is contained in:
Sebastian McKenzie 2015-07-27 02:21:18 +01:00
parent 4437132372
commit 56a27a0647

View File

@ -177,6 +177,8 @@ var astTransformVisitor = {
node._babelType = node.type;
},
exit: function (node) { /* parent */
node.range = [node.start, node.end];
if (this.isSpreadProperty()) {
node.type = "Property";
node.kind = "init";