Project

General

Profile

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
 */
8
/**
9
 * Transform template html and css into executable code.
10
 * Intended to be used in a build step.
11
 */
12
import * as compiler from '@angular/compiler';
13
import { AngularCompilerOptions, NgcCliOptions } from '@angular/tsc-wrapped';
14
import * as ts from 'typescript';
15
import { CompilerHost, CompilerHostContext } from './compiler_host';
16
export declare class CodeGenerator {
17
    private options;
18
    private program;
19
    host: ts.CompilerHost;
20
    private compiler;
21
    private ngCompilerHost;
22
    constructor(options: AngularCompilerOptions, program: ts.Program, host: ts.CompilerHost, compiler: compiler.AotCompiler, ngCompilerHost: CompilerHost);
23
    codegen(): Promise<string[]>;
24
    codegenSync(): string[];
25
    private emit(analyzedModules);
26
    static create(options: AngularCompilerOptions, cliOptions: NgcCliOptions, program: ts.Program, tsCompilerHost: ts.CompilerHost, compilerHostContext?: CompilerHostContext, ngCompilerHost?: CompilerHost): CodeGenerator;
27
}
(1-1/30)