1 | import * as ts from 'typescript';
|
2 | import { Logger } from '../utils/loggers';
|
3 | import { Reflection, ProjectReflection, Type } from '../models/index';
|
4 | import { Converter } from './converter';
|
5 | export declare class Context {
|
6 | converter: Converter;
|
7 | fileNames: string[];
|
8 | checker: ts.TypeChecker;
|
9 | program: ts.Program;
|
10 | project: ProjectReflection;
|
11 | scope: Reflection;
|
12 | isExternal?: boolean;
|
13 | isDeclaration?: boolean;
|
14 | typeParameters?: ts.MapLike<Type>;
|
15 | typeArguments?: Type[];
|
16 | isInherit?: boolean;
|
17 | inheritParent?: ts.Node;
|
18 | inheritedChildren?: number[];
|
19 | inherited?: string[];
|
20 | visitStack: ts.Node[];
|
21 | private symbolID;
|
22 | private externalPattern?;
|
23 | constructor(converter: Converter, fileNames: string[], checker: ts.TypeChecker, program: ts.Program);
|
24 | getCompilerOptions(): ts.CompilerOptions;
|
25 | getTypeAtLocation(node: ts.Node): ts.Type | undefined;
|
26 | getLogger(): Logger;
|
27 | getSymbolID(symbol: ts.Symbol | undefined): number | undefined;
|
28 | registerReflection(reflection: Reflection, node?: ts.Node, symbol?: ts.Symbol): void;
|
29 | trigger(name: string, reflection: Reflection, node?: ts.Node): void;
|
30 | withSourceFile(node: ts.SourceFile, callback: Function): void;
|
31 | withScope(scope: Reflection | undefined, callback: () => void): void;
|
32 | withScope(scope: Reflection | undefined, parameters: ts.NodeArray<ts.TypeParameterDeclaration> | undefined, callback: () => void): void;
|
33 | withScope(scope: Reflection | undefined, parameters: ts.NodeArray<ts.TypeParameterDeclaration> | undefined, preserve: boolean, callback: () => void): void;
|
34 | inherit(baseNode: ts.Node, typeArguments?: ts.NodeArray<ts.TypeNode>): Reflection;
|
35 | private extractTypeParameters;
|
36 | }
|