source: trip-planner-front/node_modules/@angular/core/schematics/migrations/static-queries/strategies/template_strategy/template_strategy.d.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.6 KB
Line 
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" />
9import * as ts from 'typescript';
10import { ClassMetadataMap } from '../../angular/ng_query_visitor';
11import { NgQueryDefinition } from '../../angular/query-definition';
12import { TimingResult, TimingStrategy } from '../timing-strategy';
13export 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}
Note: See TracBrowser for help on using the repository browser.