From 467179933108f8e1c900d873232bff27e95267b5 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Thu, 26 Mar 2015 14:24:24 -0400 Subject: [PATCH] Fix references to esprima --- streams/infer_membership.js | 2 +- streams/parse.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 }),