mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-06 12:19:12 +08:00
39 lines
No EOL
1.3 KiB
Text
39 lines
No EOL
1.3 KiB
Text
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.VariableBase = void 0;
|
|
const ID_1 = require("../ID");
|
|
const generator = (0, ID_1.createIdGenerator)();
|
|
class VariableBase {
|
|
constructor(name, scope) {
|
|
/**
|
|
* A unique ID for this instance - primarily used to help debugging and testing
|
|
*/
|
|
this.$id = generator();
|
|
/**
|
|
* The array of the definitions of this variable.
|
|
* @public
|
|
*/
|
|
this.defs = [];
|
|
/**
|
|
* True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise.
|
|
* @public
|
|
*/
|
|
this.eslintUsed = false;
|
|
/**
|
|
* The array of `Identifier` nodes which define this variable.
|
|
* If this variable is redeclared, this array includes two or more nodes.
|
|
* @public
|
|
*/
|
|
this.identifiers = [];
|
|
/**
|
|
* List of {@link Reference} of this variable (excluding parameter entries) in its defining scope and all nested scopes.
|
|
* For defining occurrences only see {@link Variable#defs}.
|
|
* @public
|
|
*/
|
|
this.references = [];
|
|
this.name = name;
|
|
this.scope = scope;
|
|
}
|
|
}
|
|
exports.VariableBase = VariableBase;
|
|
//# sourceMappingURL=VariableBase.js.map |