1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import { NgCompiler } from '@angular/compiler-cli/src/ngtsc/core';
|
10 | import { NgCompilerOptions } from '@angular/compiler-cli/src/ngtsc/core/api';
|
11 | import { TypeCheckingProgramStrategy } from '@angular/compiler-cli/src/ngtsc/typecheck/api';
|
12 | import { LanguageServiceAdapter } from './language_service_adapter';
|
13 | export declare class CompilerFactory {
|
14 | private readonly adapter;
|
15 | private readonly programStrategy;
|
16 | private readonly incrementalStrategy;
|
17 | private compiler;
|
18 | private lastKnownProgram;
|
19 | constructor(adapter: LanguageServiceAdapter, programStrategy: TypeCheckingProgramStrategy);
|
20 | /**
|
21 | * Create a new instance of the Ivy compiler if the program has changed since
|
22 | * the last time the compiler was instantiated. If the program has not changed,
|
23 | * return the existing instance.
|
24 | * @param fileName override the template if this is an external template file
|
25 | * @param options angular compiler options
|
26 | */
|
27 | getOrCreateWithChangedFile(fileName: string, options: NgCompilerOptions): NgCompiler;
|
28 | private overrideTemplate;
|
29 | registerLastKnownProgram(): void;
|
30 | }
|