1 | import { TSESTree } from '../ts-estree';
|
2 | import { Scope } from './Scope';
|
3 | import { Variable } from './Variable';
|
4 | export declare type ReferenceFlag = 0x1 | 0x2 | 0x3;
|
5 | interface 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 | }
|
21 | declare 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 | };
|
27 | export { Reference };
|
28 |
|
\ | No newline at end of file |