Fix references to esprima

This commit is contained in:
Tom MacWright 2015-03-26 14:24:24 -04:00
parent 1f57c55e10
commit 4671799331
2 changed files with 3 additions and 3 deletions

View File

@ -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) &&

View File

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