source: trip-planner-front/node_modules/@angular/compiler/src/metadata_resolver.d.ts

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 5.3 KB
RevLine 
[6a3a178]1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { StaticSymbol, StaticSymbolCache } from './aot/static_symbol';
9import * as cpl from './compile_metadata';
10import { CompileReflector } from './compile_reflector';
11import { CompilerConfig } from './config';
12import { Directive, Type } from './core';
13import { DirectiveNormalizer } from './directive_normalizer';
14import { DirectiveResolver } from './directive_resolver';
15import { HtmlParser } from './ml_parser/html_parser';
16import { NgModuleResolver } from './ng_module_resolver';
17import { PipeResolver } from './pipe_resolver';
18import { ElementSchemaRegistry } from './schema/element_schema_registry';
19import { SummaryResolver } from './summary_resolver';
20import { Console, SyncAsync } from './util';
21export declare type ErrorCollector = (error: any, type?: any) => void;
22export declare const ERROR_COMPONENT_TYPE = "ngComponentType";
23export interface MissingNgModuleMetadataErrorData {
24 fileName: string;
25 className: string;
26}
27export declare function getMissingNgModuleMetadataErrorData(error: any): MissingNgModuleMetadataErrorData | null;
28export declare class CompileMetadataResolver {
29 private _config;
30 private _htmlParser;
31 private _ngModuleResolver;
32 private _directiveResolver;
33 private _pipeResolver;
34 private _summaryResolver;
35 private _schemaRegistry;
36 private _directiveNormalizer;
37 private _console;
38 private _staticSymbolCache;
39 private _reflector;
40 private _errorCollector?;
41 private _nonNormalizedDirectiveCache;
42 private _directiveCache;
43 private _summaryCache;
44 private _pipeCache;
45 private _ngModuleCache;
46 private _ngModuleOfTypes;
47 private _shallowModuleCache;
48 constructor(_config: CompilerConfig, _htmlParser: HtmlParser, _ngModuleResolver: NgModuleResolver, _directiveResolver: DirectiveResolver, _pipeResolver: PipeResolver, _summaryResolver: SummaryResolver<any>, _schemaRegistry: ElementSchemaRegistry, _directiveNormalizer: DirectiveNormalizer, _console: Console, _staticSymbolCache: StaticSymbolCache, _reflector: CompileReflector, _errorCollector?: ErrorCollector | undefined);
49 getReflector(): CompileReflector;
50 clearCacheFor(type: Type): void;
51 clearCache(): void;
52 private _createProxyClass;
53 private getGeneratedClass;
54 private getComponentViewClass;
55 getHostComponentViewClass(dirType: any): StaticSymbol | cpl.ProxyClass;
56 getHostComponentType(dirType: any): StaticSymbol | cpl.ProxyClass;
57 private getRendererType;
58 private getComponentFactory;
59 private initComponentFactory;
60 private _loadSummary;
61 getHostComponentMetadata(compMeta: cpl.CompileDirectiveMetadata, hostViewType?: StaticSymbol | cpl.ProxyClass): cpl.CompileDirectiveMetadata;
62 loadDirectiveMetadata(ngModuleType: any, directiveType: any, isSync: boolean): SyncAsync<null>;
63 getNonNormalizedDirectiveMetadata(directiveType: any): {
64 annotation: Directive;
65 metadata: cpl.CompileDirectiveMetadata;
66 } | null;
67 /**
68 * Gets the metadata for the given directive.
69 * This assumes `loadNgModuleDirectiveAndPipeMetadata` has been called first.
70 */
71 getDirectiveMetadata(directiveType: any): cpl.CompileDirectiveMetadata;
72 getDirectiveSummary(dirType: any): cpl.CompileDirectiveSummary;
73 isDirective(type: any): boolean;
74 isAbstractDirective(type: any): boolean;
75 isPipe(type: any): boolean;
76 isNgModule(type: any): boolean;
77 getNgModuleSummary(moduleType: any, alreadyCollecting?: Set<any> | null): cpl.CompileNgModuleSummary | null;
78 /**
79 * Loads the declared directives and pipes of an NgModule.
80 */
81 loadNgModuleDirectiveAndPipeMetadata(moduleType: any, isSync: boolean, throwIfNotFound?: boolean): Promise<any>;
82 getShallowModuleMetadata(moduleType: any): cpl.CompileShallowModuleMetadata | null;
83 getNgModuleMetadata(moduleType: any, throwIfNotFound?: boolean, alreadyCollecting?: Set<any> | null): cpl.CompileNgModuleMetadata | null;
84 private _checkSelfImport;
85 private _getTypeDescriptor;
86 private _addTypeToModule;
87 private _getTransitiveNgModuleMetadata;
88 private _getIdentifierMetadata;
89 isInjectable(type: any): boolean;
90 getInjectableSummary(type: any): cpl.CompileTypeSummary;
91 getInjectableMetadata(type: any, dependencies?: any[] | null, throwOnUnknownDeps?: boolean): cpl.CompileInjectableMetadata | null;
92 private _getTypeMetadata;
93 private _getFactoryMetadata;
94 /**
95 * Gets the metadata for the given pipe.
96 * This assumes `loadNgModuleDirectiveAndPipeMetadata` has been called first.
97 */
98 getPipeMetadata(pipeType: any): cpl.CompilePipeMetadata | null;
99 getPipeSummary(pipeType: any): cpl.CompilePipeSummary;
100 getOrLoadPipeMetadata(pipeType: any): cpl.CompilePipeMetadata;
101 private _loadPipeMetadata;
102 private _getDependenciesMetadata;
103 private _getTokenMetadata;
104 private _getProvidersMetadata;
105 private _validateProvider;
106 private _getEntryComponentsFromProvider;
107 private _getEntryComponentMetadata;
108 private _getInjectableTypeMetadata;
109 getProviderMetadata(provider: cpl.ProviderMeta): cpl.CompileProviderMetadata;
110 private _getQueriesMetadata;
111 private _queryVarBindings;
112 private _getQueryMetadata;
113 private _reportError;
114}
Note: See TracBrowser for help on using the repository browser.