1 | import * as ts from 'typescript';
|
2 | import { ResourceResolver } from './resource-resolver';
|
3 | import { PipeSymbol } from './pipe-symbol';
|
4 | import { DirectiveSymbol } from './directive-symbol';
|
5 | import { ModuleSymbol } from './module-symbol';
|
6 | import { ProviderSymbol } from './provider-symbol';
|
7 | export interface ErrorReporter {
|
8 | (error: any, path: string): void;
|
9 | }
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export declare class ProjectSymbols {
|
18 | private tsconfigPath;
|
19 | private resourceResolver;
|
20 | private errorReporter;
|
21 | private metadataResolver;
|
22 | private reflector;
|
23 | private summaryResolver;
|
24 | private staticSymbolResolver;
|
25 | private staticResolverHost;
|
26 | private pipeResolver;
|
27 | private directiveResolver;
|
28 | private urlResolver;
|
29 | private directiveNormalizer;
|
30 | private program;
|
31 | private compilerHost;
|
32 | private analyzedModules;
|
33 | private options;
|
34 | |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | constructor(tsconfigPath: string, resourceResolver: ResourceResolver, errorReporter: ErrorReporter);
|
43 | /**
|
44 | * Returns the metadata associated to this module.
|
45 | *
|
46 | * @returns {ModuleSymbol[]}
|
47 | *
|
48 | * @memberOf ProjectSymbols
|
49 | */
|
50 | getModules(): ModuleSymbol[];
|
51 | |
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 | getDirectives(): DirectiveSymbol[];
|
59 | |
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | getPipes(): PipeSymbol[];
|
67 | |
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 | getProviders(): ProviderSymbol[];
|
75 | |
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 | getDirectiveFromNode(declaration: ts.ClassDeclaration, fileName: string): DirectiveSymbol | null;
|
84 | private extractProgramSymbols();
|
85 | private clearCaches();
|
86 | private init();
|
87 | }
|