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 | import { CompileDirectiveMetadata, CompileNgModuleMetadata, CompileProviderMetadata, CompileQueryMetadata } from './compile_metadata';
|
---|
9 | import { CompileReflector } from './compile_reflector';
|
---|
10 | import { ParseError, ParseSourceSpan } from './parse_util';
|
---|
11 | import { AttrAst, DirectiveAst, ProviderAst, QueryMatch, ReferenceAst } from './template_parser/template_ast';
|
---|
12 | export declare class ProviderError extends ParseError {
|
---|
13 | constructor(message: string, span: ParseSourceSpan);
|
---|
14 | }
|
---|
15 | export interface QueryWithId {
|
---|
16 | meta: CompileQueryMetadata;
|
---|
17 | queryId: number;
|
---|
18 | }
|
---|
19 | export declare class ProviderViewContext {
|
---|
20 | reflector: CompileReflector;
|
---|
21 | component: CompileDirectiveMetadata;
|
---|
22 | errors: ProviderError[];
|
---|
23 | constructor(reflector: CompileReflector, component: CompileDirectiveMetadata);
|
---|
24 | }
|
---|
25 | export declare class ProviderElementContext {
|
---|
26 | viewContext: ProviderViewContext;
|
---|
27 | private _parent;
|
---|
28 | private _isViewRoot;
|
---|
29 | private _directiveAsts;
|
---|
30 | private _sourceSpan;
|
---|
31 | private _contentQueries;
|
---|
32 | private _transformedProviders;
|
---|
33 | private _seenProviders;
|
---|
34 | private _allProviders;
|
---|
35 | private _attrs;
|
---|
36 | private _queriedTokens;
|
---|
37 | readonly transformedHasViewContainer: boolean;
|
---|
38 | constructor(viewContext: ProviderViewContext, _parent: ProviderElementContext, _isViewRoot: boolean, _directiveAsts: DirectiveAst[], attrs: AttrAst[], refs: ReferenceAst[], isTemplate: boolean, contentQueryStartId: number, _sourceSpan: ParseSourceSpan);
|
---|
39 | afterElement(): void;
|
---|
40 | get transformProviders(): ProviderAst[];
|
---|
41 | get transformedDirectiveAsts(): DirectiveAst[];
|
---|
42 | get queryMatches(): QueryMatch[];
|
---|
43 | private _addQueryReadsTo;
|
---|
44 | private _getQueriesFor;
|
---|
45 | private _getOrCreateLocalProvider;
|
---|
46 | private _getLocalDependency;
|
---|
47 | private _getDependency;
|
---|
48 | }
|
---|
49 | export declare class NgModuleProviderAnalyzer {
|
---|
50 | private reflector;
|
---|
51 | private _transformedProviders;
|
---|
52 | private _seenProviders;
|
---|
53 | private _allProviders;
|
---|
54 | private _errors;
|
---|
55 | constructor(reflector: CompileReflector, ngModule: CompileNgModuleMetadata, extraProviders: CompileProviderMetadata[], sourceSpan: ParseSourceSpan);
|
---|
56 | parse(): ProviderAst[];
|
---|
57 | private _getOrCreateLocalProvider;
|
---|
58 | private _getDependency;
|
---|
59 | }
|
---|