1 import * as ts from 'typescript';
\r
2 export interface VariableInfo {
\r
3 domain: DeclarationDomain;
\r
6 inGlobalScope: boolean;
\r
7 declarations: ts.Identifier[];
\r
9 export interface VariableUse {
\r
10 domain: UsageDomain;
\r
11 location: ts.Identifier;
\r
13 export declare enum DeclarationDomain {
\r
20 export declare enum UsageDomain {
\r
24 ValueOrNamespace = 5,
\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