Urara-Blog/node_modules/.pnpm-store/v3/files/fa/5cc33dabedc0a364dde755220a97f630499af1dedef37870cbd50bd483fe9b398731342e37bf723bb31217fdaa6aa6327696c8372ceea7d4ab05b7ac0fadf5
2022-08-14 01:14:53 +08:00

44 lines
No EOL
1.4 KiB
Text

import { TSESTree } from '@typescript-eslint/types';
import { Definition } from '../definition';
import { Reference } from '../referencer/Reference';
import { Scope } from '../scope';
declare class VariableBase {
/**
* A unique ID for this instance - primarily used to help debugging and testing
*/
readonly $id: number;
/**
* The array of the definitions of this variable.
* @public
*/
readonly defs: Definition[];
/**
* True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise.
* @public
*/
eslintUsed: boolean;
/**
* The array of `Identifier` nodes which define this variable.
* If this variable is redeclared, this array includes two or more nodes.
* @public
*/
readonly identifiers: TSESTree.Identifier[];
/**
* The variable name, as given in the source code.
* @public
*/
readonly name: string;
/**
* 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
*/
readonly references: Reference[];
/**
* Reference to the enclosing Scope.
*/
readonly scope: Scope;
constructor(name: string, scope: Scope);
}
export { VariableBase };
//# sourceMappingURL=VariableBase.d.ts.map