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 | */
|
---|
8 | import { AotCompilerOptions } from '../aot/compiler_options';
|
---|
9 | import { StaticReflector } from '../aot/static_reflector';
|
---|
10 | import { StaticSymbol } from '../aot/static_symbol';
|
---|
11 | import { CompileDirectiveMetadata, CompilePipeSummary } from '../compile_metadata';
|
---|
12 | import { OutputContext } from '../constant_pool';
|
---|
13 | import * as o from '../output/output_ast';
|
---|
14 | import { TemplateAst } from '../template_parser/template_ast';
|
---|
15 | /**
|
---|
16 | * Generates code that is used to type check templates.
|
---|
17 | */
|
---|
18 | export declare class TypeCheckCompiler {
|
---|
19 | private options;
|
---|
20 | private reflector;
|
---|
21 | constructor(options: AotCompilerOptions, reflector: StaticReflector);
|
---|
22 | /**
|
---|
23 | * Important notes:
|
---|
24 | * - This must not produce new `import` statements, but only refer to types outside
|
---|
25 | * of the file via the variables provided via externalReferenceVars.
|
---|
26 | * This allows Typescript to reuse the old program's structure as no imports have changed.
|
---|
27 | * - This must not produce any exports, as this would pollute the .d.ts file
|
---|
28 | * and also violate the point above.
|
---|
29 | */
|
---|
30 | compileComponent(componentId: string, component: CompileDirectiveMetadata, template: TemplateAst[], usedPipes: CompilePipeSummary[], externalReferenceVars: Map<StaticSymbol, string>, ctx: OutputContext): o.Statement[];
|
---|
31 | }
|
---|