2 var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3 if (k2 === undefined) k2 = k;
4 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5 }) : (function(o, m, k, k2) {
6 if (k2 === undefined) k2 = k;
9 var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10 Object.defineProperty(o, "default", { enumerable: true, value: v });
14 var __importStar = (this && this.__importStar) || function (mod) {
15 if (mod && mod.__esModule) return mod;
17 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18 __setModuleDefault(result, mod);
21 Object.defineProperty(exports, "__esModule", { value: true });
22 exports.getInnermostScope = exports.findVariable = void 0;
23 const eslintUtils = __importStar(require("eslint-utils"));
25 * Get the variable of a given name.
27 * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#findvariable}
29 const findVariable = eslintUtils.findVariable;
30 exports.findVariable = findVariable;
32 * Get the innermost scope which contains a given node.
34 * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#getinnermostscope}
35 * @returns The innermost scope which contains the given node.
36 * If such scope doesn't exist then it returns the 1st argument `initialScope`.
38 const getInnermostScope = eslintUtils.getInnermostScope;
39 exports.getInnermostScope = getInnermostScope;
40 //# sourceMappingURL=scopeAnalysis.js.map