Files
memecoin-botV2/.pnpm-store/v10/files/96/006b3020a0dc7f9c7224a657171bc72bd4f53f91f23c32a616dd1eeaa1bc5f8e43030f43dfc995d18973dc0b4d669ebed39e5b0d9828ab63b200a0386b5ff7

48 lines
1.3 KiB
Plaintext

"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 {
/**
* A unique ID for this instance - primarily used to help debugging and testing
*/
$id = generator();
/**
* The array of the definitions of this variable.
* @public
*/
defs = [];
/**
* True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise.
* @public
*/
eslintUsed = false;
/**
* The array of `Identifier` nodes which define this variable.
* If this variable is redeclared, this array includes two or more nodes.
* @public
*/
identifiers = [];
/**
* The variable name, as given in the source code.
* @public
*/
name;
/**
* 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
*/
references = [];
/**
* Reference to the enclosing Scope.
*/
scope;
constructor(name, scope) {
this.name = name;
this.scope = scope;
}
}
exports.VariableBase = VariableBase;