.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / tsutils / util / usage.d.ts
1 import * as ts from 'typescript';\r
2 export interface VariableInfo {\r
3     domain: DeclarationDomain;\r
4     exported: boolean;\r
5     uses: VariableUse[];\r
6     inGlobalScope: boolean;\r
7     declarations: ts.Identifier[];\r
8 }\r
9 export interface VariableUse {\r
10     domain: UsageDomain;\r
11     location: ts.Identifier;\r
12 }\r
13 export declare enum DeclarationDomain {\r
14     Namespace = 1,\r
15     Type = 2,\r
16     Value = 4,\r
17     Import = 8,\r
18     Any = 7\r
19 }\r
20 export declare enum UsageDomain {\r
21     Namespace = 1,\r
22     Type = 2,\r
23     Value = 4,\r
24     ValueOrNamespace = 5,\r
25     Any = 7,\r
26     TypeQuery = 8\r
27 }\r
28 export declare function getUsageDomain(node: ts.Identifier): UsageDomain | undefined;\r
29 export declare function getDeclarationDomain(node: ts.Identifier): DeclarationDomain | undefined;\r
30 export declare function collectVariableUsage(sourceFile: ts.SourceFile): Map<ts.Identifier, VariableInfo>;\r