UNPKG

2.42 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google Inc. 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 { CompilerFacade, CoreEnvironment, R3ComponentMetadataFacade, R3DirectiveMetadataFacade, R3FactoryDefMetadataFacade, R3InjectableMetadataFacade, R3InjectorMetadataFacade, R3NgModuleMetadataFacade, R3PipeMetadataFacade } from './compiler_facade_interface';
9import { JitEvaluator } from './output/output_jit';
10import { ParseSourceSpan } from './parse_util';
11import { ResourceLoader } from './resource_loader';
12export declare class CompilerFacadeImpl implements CompilerFacade {
13 private jitEvaluator;
14 R3ResolvedDependencyType: any;
15 R3FactoryTarget: any;
16 ResourceLoader: typeof ResourceLoader;
17 private elementSchemaRegistry;
18 constructor(jitEvaluator?: JitEvaluator);
19 compilePipe(angularCoreEnv: CoreEnvironment, sourceMapUrl: string, facade: R3PipeMetadataFacade): any;
20 compileInjectable(angularCoreEnv: CoreEnvironment, sourceMapUrl: string, facade: R3InjectableMetadataFacade): any;
21 compileInjector(angularCoreEnv: CoreEnvironment, sourceMapUrl: string, facade: R3InjectorMetadataFacade): any;
22 compileNgModule(angularCoreEnv: CoreEnvironment, sourceMapUrl: string, facade: R3NgModuleMetadataFacade): any;
23 compileDirective(angularCoreEnv: CoreEnvironment, sourceMapUrl: string, facade: R3DirectiveMetadataFacade): any;
24 compileComponent(angularCoreEnv: CoreEnvironment, sourceMapUrl: string, facade: R3ComponentMetadataFacade): any;
25 compileFactory(angularCoreEnv: CoreEnvironment, sourceMapUrl: string, meta: R3FactoryDefMetadataFacade): any;
26 createParseSourceSpan(kind: string, typeName: string, sourceUrl: string): ParseSourceSpan;
27 /**
28 * JIT compiles an expression and returns the result of executing that expression.
29 *
30 * @param def the definition which will be compiled and executed to get the value to patch
31 * @param context an object map of @angular/core symbol names to symbols which will be available
32 * in the context of the compiled expression
33 * @param sourceUrl a URL to use for the source map of the compiled expression
34 * @param preStatements a collection of statements that should be evaluated before the expression.
35 */
36 private jitExpression;
37}
38export declare function publishFacade(global: any): void;