source: trip-planner-front/node_modules/@angular/compiler/src/jit/compiler.d.ts@ 571e0df

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

initial commit

  • Property mode set to 100644
File size: 3.3 KB
Line 
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 { CompileProviderMetadata } from '../compile_metadata';
9import { CompileReflector } from '../compile_reflector';
10import { CompilerConfig } from '../config';
11import { Type } from '../core';
12import { CompileMetadataResolver } from '../metadata_resolver';
13import { NgModuleCompiler } from '../ng_module_compiler';
14import { JitEvaluator } from '../output/output_jit';
15import { StyleCompiler } from '../style_compiler';
16import { SummaryResolver } from '../summary_resolver';
17import { TemplateParser } from '../template_parser/template_parser';
18import { Console } from '../util';
19import { ViewCompiler } from '../view_compiler/view_compiler';
20export interface ModuleWithComponentFactories {
21 ngModuleFactory: object;
22 componentFactories: object[];
23}
24/**
25 * An internal module of the Angular compiler that begins with component types,
26 * extracts templates, and eventually produces a compiled version of the component
27 * ready for linking into an application.
28 *
29 * @security When compiling templates at runtime, you must ensure that the entire template comes
30 * from a trusted source. Attacker-controlled data introduced by a template could expose your
31 * application to XSS risks. For more detail, see the [Security Guide](https://g.co/ng/security).
32 */
33export declare class JitCompiler {
34 private _metadataResolver;
35 private _templateParser;
36 private _styleCompiler;
37 private _viewCompiler;
38 private _ngModuleCompiler;
39 private _summaryResolver;
40 private _reflector;
41 private _jitEvaluator;
42 private _compilerConfig;
43 private _console;
44 private getExtraNgModuleProviders;
45 private _compiledTemplateCache;
46 private _compiledHostTemplateCache;
47 private _compiledDirectiveWrapperCache;
48 private _compiledNgModuleCache;
49 private _sharedStylesheetCount;
50 private _addedAotSummaries;
51 constructor(_metadataResolver: CompileMetadataResolver, _templateParser: TemplateParser, _styleCompiler: StyleCompiler, _viewCompiler: ViewCompiler, _ngModuleCompiler: NgModuleCompiler, _summaryResolver: SummaryResolver<Type>, _reflector: CompileReflector, _jitEvaluator: JitEvaluator, _compilerConfig: CompilerConfig, _console: Console, getExtraNgModuleProviders: (ngModule: any) => CompileProviderMetadata[]);
52 compileModuleSync(moduleType: Type): object;
53 compileModuleAsync(moduleType: Type): Promise<object>;
54 compileModuleAndAllComponentsSync(moduleType: Type): ModuleWithComponentFactories;
55 compileModuleAndAllComponentsAsync(moduleType: Type): Promise<ModuleWithComponentFactories>;
56 getComponentFactory(component: Type): object;
57 loadAotSummaries(summaries: () => any[]): void;
58 private _addAotSummaries;
59 hasAotSummary(ref: Type): boolean;
60 private _filterJitIdentifiers;
61 private _compileModuleAndComponents;
62 private _compileModuleAndAllComponents;
63 private _loadModules;
64 private _compileModule;
65 clearCacheFor(type: Type): void;
66 clearCache(): void;
67 private _createCompiledHostTemplate;
68 private _createCompiledTemplate;
69 private _compileTemplate;
70 private _parseTemplate;
71 private _resolveStylesCompileResult;
72 private _resolveAndEvalStylesCompileResult;
73 private _interpretOrJit;
74}
Note: See TracBrowser for help on using the repository browser.