UNPKG

951 BTypeScriptView Raw
1import { TSESTree } from '../ts-estree';
2import { Scope } from './Scope';
3import { Variable } from './Variable';
4export declare type ReferenceFlag = 0x1 | 0x2 | 0x3;
5interface Reference {
6 identifier: TSESTree.Identifier;
7 from: Scope;
8 resolved: Variable | null;
9 writeExpr: TSESTree.Node | null;
10 init: boolean;
11 partial: boolean;
12 __maybeImplicitGlobal: boolean;
13 tainted?: boolean;
14 typeMode?: boolean;
15 isWrite(): boolean;
16 isRead(): boolean;
17 isWriteOnly(): boolean;
18 isReadOnly(): boolean;
19 isReadWrite(): boolean;
20}
21declare const Reference: {
22 new (identifier: TSESTree.Identifier, scope: Scope, flag?: ReferenceFlag | undefined, writeExpr?: TSESTree.Node | null | undefined, maybeImplicitGlobal?: boolean | undefined, partial?: boolean | undefined, init?: boolean | undefined): Reference;
23 READ: 0x1;
24 WRITE: 0x2;
25 RW: 0x3;
26};
27export { Reference };
28//# sourceMappingURL=Reference.d.ts.map
\No newline at end of file