1 | import { ReflectorReader } from './private_import_core';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export interface StaticReflectorHost {
|
9 | |
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | getMetadataFor(modulePath: string): {
|
16 | [key: string]: any;
|
17 | } | {
|
18 | [key: string]: any;
|
19 | }[];
|
20 | |
21 |
|
22 |
|
23 |
|
24 |
|
25 | findDeclaration(modulePath: string, symbolName: string, containingFile?: string): StaticSymbol;
|
26 | getStaticSymbol(declarationFile: string, name: string, members?: string[]): StaticSymbol;
|
27 | angularImportLocations(): {
|
28 | coreDecorators: string;
|
29 | diDecorators: string;
|
30 | diMetadata: string;
|
31 | diOpaqueToken: string;
|
32 | animationMetadata: string;
|
33 | provider: string;
|
34 | };
|
35 | getCanonicalFileName(fileName: string): string;
|
36 | }
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | export declare class StaticSymbol {
|
43 | filePath: string;
|
44 | name: string;
|
45 | members: string[];
|
46 | constructor(filePath: string, name: string, members?: string[]);
|
47 | }
|
48 | /**
|
49 | * A static reflector implements enough of the Reflector API that is necessary to compile
|
50 | * templates statically.
|
51 | */
|
52 | export declare class StaticReflector implements ReflectorReader {
|
53 | private host;
|
54 | private annotationCache;
|
55 | private propertyCache;
|
56 | private parameterCache;
|
57 | private metadataCache;
|
58 | private conversionMap;
|
59 | private opaqueToken;
|
60 | constructor(host: StaticReflectorHost);
|
61 | importUri(typeOrFunc: StaticSymbol): string;
|
62 | resolveIdentifier(name: string, moduleUrl: string, runtime: any): any;
|
63 | resolveEnum(enumIdentifier: any, name: string): any;
|
64 | annotations(type: StaticSymbol): any[];
|
65 | propMetadata(type: StaticSymbol): {
|
66 | [key: string]: any;
|
67 | };
|
68 | parameters(type: StaticSymbol): any[];
|
69 | hasLifecycleHook(type: any, lcProperty: string): boolean;
|
70 | private registerDecoratorOrConstructor(type, ctor);
|
71 | private registerFunction(type, fn);
|
72 | private initializeConversionMap();
|
73 |
|
74 | simplify(context: StaticSymbol, value: any): any;
|
75 | |
76 |
|
77 |
|
78 | getModuleMetadata(module: string): {
|
79 | [key: string]: any;
|
80 | };
|
81 | private getTypeMetadata(type);
|
82 | }
|