compiler_factory.d.ts 698 Bytes
Newer Older
jatuporn Tonggasem's avatar
jatuporn Tonggasem committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import { UrlResolver } from '../url_resolver';
import { AotCompiler } from './compiler';
import { AotCompilerHost } from './compiler_host';
import { AotCompilerOptions } from './compiler_options';
import { StaticReflector } from './static_reflector';
export declare function createAotUrlResolver(host: {
    resourceNameToFileName(resourceName: string, containingFileName: string): string | null;
}): UrlResolver;
/**
 * Creates a new AotCompiler based on options and a host.
 */
export declare function createAotCompiler(compilerHost: AotCompilerHost, options: AotCompilerOptions, errorCollector?: (error: any, type?: any) => void): {
    compiler: AotCompiler;
    reflector: StaticReflector;
};