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 | /// <amd-module name="@angular/core/schematics/migrations/static-queries/strategies/template_strategy/template_strategy" />
|
---|
9 | import * as ts from 'typescript';
|
---|
10 | import { ClassMetadataMap } from '../../angular/ng_query_visitor';
|
---|
11 | import { NgQueryDefinition } from '../../angular/query-definition';
|
---|
12 | import { TimingResult, TimingStrategy } from '../timing-strategy';
|
---|
13 | export declare class QueryTemplateStrategy implements TimingStrategy {
|
---|
14 | private projectPath;
|
---|
15 | private classMetadata;
|
---|
16 | private host;
|
---|
17 | private compiler;
|
---|
18 | private metadataResolver;
|
---|
19 | private analyzedQueries;
|
---|
20 | constructor(projectPath: string, classMetadata: ClassMetadataMap, host: ts.CompilerHost);
|
---|
21 | /**
|
---|
22 | * Sets up the template strategy by creating the AngularCompilerProgram. Returns false if
|
---|
23 | * the AOT compiler program could not be created due to failure diagnostics.
|
---|
24 | */
|
---|
25 | setup(): void;
|
---|
26 | /** Analyzes a given directive by determining the timing of all matched view queries. */
|
---|
27 | private _analyzeDirective;
|
---|
28 | /** Detects the timing of the query definition. */
|
---|
29 | detectTiming(query: NgQueryDefinition): TimingResult;
|
---|
30 | /**
|
---|
31 | * Gets the timing that has been resolved for a given query when it's used within the
|
---|
32 | * specified class declaration. e.g. queries from an inherited class can be used.
|
---|
33 | */
|
---|
34 | private _getQueryTimingFromClass;
|
---|
35 | private _parseTemplate;
|
---|
36 | private _createDiagnosticsError;
|
---|
37 | private _getViewQueryUniqueKey;
|
---|
38 | }
|
---|