mirror of
https://github.com/nodejs/node.git
synced 2025-05-10 01:07:57 +00:00

Create tools/update-babel-eslint.sh script and execute it to do the first installation of the package. Update tools/license-builder.sh and execute it to add babel-eslint's license to our LICENSE file. PR-URL: https://github.com/nodejs/node/pull/17820 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
13 lines
325 B
JavaScript
13 lines
325 B
JavaScript
"use strict";
|
|
|
|
const visitorKeys = require("./visitor-keys");
|
|
const analyzeScope = require("./analyze-scope");
|
|
const parse = require("./parse");
|
|
|
|
module.exports = function(code, options) {
|
|
const ast = parse(code, options);
|
|
const scopeManager = analyzeScope(ast, options);
|
|
|
|
return { ast, scopeManager, visitorKeys };
|
|
};
|