diff --git a/streams/infer_membership.js b/streams/infer_membership.js index 22ab720..2b9def5 100644 --- a/streams/infer_membership.js +++ b/streams/infer_membership.js @@ -76,7 +76,7 @@ module.exports = function () { var path = comment.context.ast; /* - * Deal with an oddity of esprima: the jsdoc comment is attached to a different + * Deal with an oddity of espree: the jsdoc comment is attached to a different * node in the two expressions `a.b = c` vs `a.b = function () {}`. */ if (n.ExpressionStatement.check(path.node) && diff --git a/streams/parse.js b/streams/parse.js index 3c6b9bd..f65b8bf 100644 --- a/streams/parse.js +++ b/streams/parse.js @@ -1,7 +1,7 @@ 'use strict'; var doctrine = require('doctrine'), - esprima = require('esprima'), + espree = require('espree'), through = require('through'), types = require('ast-types'), extend = require('extend'); @@ -41,7 +41,7 @@ function commentShebang(code) { module.exports = function () { return through(function (data) { var code = commentShebang(data.source), - ast = esprima.parse(code, { + ast = espree.parse(code, { loc: true, attachComment: true }),