@angular/compiler-cli 14.0.0-next.1 → 14.0.0-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/bundles/{chunk-C44PYKVA.js → chunk-26T3CJIJ.js} +1746 -1497
  2. package/bundles/chunk-26T3CJIJ.js.map +6 -0
  3. package/bundles/{chunk-A5PL3TE6.js → chunk-3MNDX4LL.js} +31 -31
  4. package/bundles/chunk-3MNDX4LL.js.map +6 -0
  5. package/bundles/{chunk-XNYP2SFR.js → chunk-5RC6M6GX.js} +71 -61
  6. package/bundles/chunk-5RC6M6GX.js.map +6 -0
  7. package/bundles/{chunk-7PY7XEFH.js → chunk-AR265E4B.js} +2 -2
  8. package/bundles/chunk-AR265E4B.js.map +6 -0
  9. package/bundles/{chunk-JMLPLN5C.js → chunk-EKTXEYNU.js} +3 -3
  10. package/bundles/{chunk-JMLPLN5C.js.map → chunk-EKTXEYNU.js.map} +0 -0
  11. package/bundles/{chunk-4KQK6VRA.js → chunk-NOHUA2VC.js} +9 -9
  12. package/bundles/{chunk-4KQK6VRA.js.map → chunk-NOHUA2VC.js.map} +1 -1
  13. package/bundles/{chunk-CKFLH7L7.js → chunk-O6MYVXDE.js} +146 -140
  14. package/bundles/chunk-O6MYVXDE.js.map +6 -0
  15. package/bundles/{chunk-ALKVYGAK.js → chunk-OOJDZK5W.js} +9 -6
  16. package/bundles/chunk-OOJDZK5W.js.map +6 -0
  17. package/bundles/{chunk-PKOZO2VO.js → chunk-SPJK7BKR.js} +2 -2
  18. package/bundles/{chunk-PKOZO2VO.js.map → chunk-SPJK7BKR.js.map} +0 -0
  19. package/bundles/index.js +6 -6
  20. package/bundles/linker/babel/index.js +2 -2
  21. package/bundles/linker/index.js +2 -2
  22. package/bundles/ngcc/index.js +6 -6
  23. package/bundles/ngcc/main-ngcc.js +6 -6
  24. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +5 -5
  25. package/bundles/private/migrations.js +3 -3
  26. package/bundles/private/tooling.js +2 -2
  27. package/bundles/src/bin/ng_xi18n.js +5 -5
  28. package/bundles/src/bin/ngc.js +5 -5
  29. package/bundles_metadata.json +1 -1
  30. package/ngcc/src/packages/build_marker.d.ts +1 -1
  31. package/package.json +2 -2
  32. package/src/ngtsc/annotations/common/index.d.ts +16 -0
  33. package/src/ngtsc/annotations/{src → common/src}/api.d.ts +1 -1
  34. package/src/ngtsc/annotations/common/src/di.d.ts +38 -0
  35. package/src/ngtsc/annotations/{src → common/src}/diagnostics.d.ts +15 -7
  36. package/src/ngtsc/annotations/common/src/evaluation.d.ts +18 -0
  37. package/src/ngtsc/annotations/{src → common/src}/factory.d.ts +2 -2
  38. package/src/ngtsc/annotations/{src → common/src}/metadata.d.ts +2 -2
  39. package/src/ngtsc/annotations/{src → common/src}/references_registry.d.ts +3 -3
  40. package/src/ngtsc/annotations/{src → common/src}/util.d.ts +7 -43
  41. package/src/ngtsc/annotations/component/index.d.ts +9 -0
  42. package/src/ngtsc/annotations/component/src/diagnostics.d.ts +20 -0
  43. package/src/ngtsc/annotations/component/src/handler.d.ts +92 -0
  44. package/src/ngtsc/annotations/component/src/metadata.d.ts +61 -0
  45. package/src/ngtsc/annotations/component/src/resources.d.ts +123 -0
  46. package/src/ngtsc/annotations/component/src/scope.d.ts +20 -0
  47. package/src/ngtsc/annotations/component/src/symbol.d.ts +20 -0
  48. package/src/ngtsc/annotations/component/src/util.d.ts +26 -0
  49. package/src/ngtsc/annotations/directive/index.d.ts +11 -0
  50. package/src/ngtsc/annotations/directive/src/handler.d.ts +59 -0
  51. package/src/ngtsc/annotations/directive/src/shared.d.ts +30 -0
  52. package/src/ngtsc/annotations/directive/src/symbol.d.ts +27 -0
  53. package/src/ngtsc/annotations/index.d.ts +4 -6
  54. package/src/ngtsc/annotations/ng_module/index.d.ts +9 -0
  55. package/src/ngtsc/annotations/{src/ng_module.d.ts → ng_module/src/handler.d.ts} +11 -11
  56. package/src/ngtsc/diagnostics/src/error_code.d.ts +17 -0
  57. package/src/ngtsc/metadata/src/api.d.ts +5 -0
  58. package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +1 -4
  59. package/src/ngtsc/typecheck/src/diagnostics.d.ts +6 -5
  60. package/bundles/chunk-7PY7XEFH.js.map +0 -6
  61. package/bundles/chunk-A5PL3TE6.js.map +0 -6
  62. package/bundles/chunk-ALKVYGAK.js.map +0 -6
  63. package/bundles/chunk-C44PYKVA.js.map +0 -6
  64. package/bundles/chunk-CKFLH7L7.js.map +0 -6
  65. package/bundles/chunk-XNYP2SFR.js.map +0 -6
  66. package/src/ngtsc/annotations/src/component.d.ts +0 -246
  67. package/src/ngtsc/annotations/src/directive.d.ts +0 -99
@@ -1,246 +0,0 @@
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/compiler-cli/src/ngtsc/annotations/src/component" />
9
- import { AnimationTriggerNames, ConstantPool, InterpolationConfig, ParsedTemplate, ParseSourceFile, R3ClassMetadata, R3ComponentMetadata, TmplAstNode } from '@angular/compiler';
10
- import ts from 'typescript';
11
- import { CycleAnalyzer, CycleHandlingStrategy } from '../../cycles';
12
- import { ModuleResolver, Reference, ReferenceEmitter } from '../../imports';
13
- import { DependencyTracker } from '../../incremental/api';
14
- import { SemanticDepGraphUpdater, SemanticReference, SemanticSymbol } from '../../incremental/semantic_graph';
15
- import { IndexingContext } from '../../indexer';
16
- import { ClassPropertyMapping, ComponentResources, DirectiveTypeCheckMeta, InjectableClassRegistry, MetadataReader, MetadataRegistry, ResourceRegistry } from '../../metadata';
17
- import { PartialEvaluator } from '../../partial_evaluator';
18
- import { PerfRecorder } from '../../perf';
19
- import { ClassDeclaration, Decorator, ReflectionHost } from '../../reflection';
20
- import { ComponentScopeReader, LocalModuleScopeRegistry, TypeCheckScopeRegistry } from '../../scope';
21
- import { AnalysisOutput, CompileResult, DecoratorHandler, DetectResult, HandlerFlags, HandlerPrecedence, ResolveResult } from '../../transform';
22
- import { TemplateSourceMapping, TypeCheckContext } from '../../typecheck/api';
23
- import { ExtendedTemplateChecker } from '../../typecheck/extended/api';
24
- import { SubsetOfKeys } from '../../util/src/typescript';
25
- import { Xi18nContext } from '../../xi18n';
26
- import { ResourceLoader } from './api';
27
- import { DirectiveSymbol } from './directive';
28
- /**
29
- * These fields of `R3ComponentMetadata` are updated in the `resolve` phase.
30
- *
31
- * The `keyof R3ComponentMetadata &` condition ensures that only fields of `R3ComponentMetadata` can
32
- * be included here.
33
- */
34
- export declare type ComponentMetadataResolvedFields = SubsetOfKeys<R3ComponentMetadata, 'directives' | 'pipes' | 'declarationListEmitMode'>;
35
- export interface ComponentAnalysisData {
36
- /**
37
- * `meta` includes those fields of `R3ComponentMetadata` which are calculated at `analyze` time
38
- * (not during resolve).
39
- */
40
- meta: Omit<R3ComponentMetadata, ComponentMetadataResolvedFields>;
41
- baseClass: Reference<ClassDeclaration> | 'dynamic' | null;
42
- typeCheckMeta: DirectiveTypeCheckMeta;
43
- template: ParsedTemplateWithSource;
44
- classMetadata: R3ClassMetadata | null;
45
- inputs: ClassPropertyMapping;
46
- outputs: ClassPropertyMapping;
47
- /**
48
- * Providers extracted from the `providers` field of the component annotation which will require
49
- * an Angular factory definition at runtime.
50
- */
51
- providersRequiringFactory: Set<Reference<ClassDeclaration>> | null;
52
- /**
53
- * Providers extracted from the `viewProviders` field of the component annotation which will
54
- * require an Angular factory definition at runtime.
55
- */
56
- viewProvidersRequiringFactory: Set<Reference<ClassDeclaration>> | null;
57
- resources: ComponentResources;
58
- /**
59
- * `styleUrls` extracted from the decorator, if present.
60
- */
61
- styleUrls: StyleUrlMeta[] | null;
62
- /**
63
- * Inline stylesheets extracted from the decorator, if present.
64
- */
65
- inlineStyles: string[] | null;
66
- isPoisoned: boolean;
67
- animationTriggerNames: AnimationTriggerNames | null;
68
- }
69
- export declare type ComponentResolutionData = Pick<R3ComponentMetadata, ComponentMetadataResolvedFields>;
70
- /**
71
- * The literal style url extracted from the decorator, along with metadata for diagnostics.
72
- */
73
- export interface StyleUrlMeta {
74
- url: string;
75
- nodeForError: ts.Node;
76
- source: ResourceTypeForDiagnostics.StylesheetFromTemplate | ResourceTypeForDiagnostics.StylesheetFromDecorator;
77
- }
78
- /**
79
- * Information about the origin of a resource in the application code. This is used for creating
80
- * diagnostics, so we can point to the root cause of an error in the application code.
81
- *
82
- * A template resource comes from the `templateUrl` property on the component decorator.
83
- *
84
- * Stylesheets resources can come from either the `styleUrls` property on the component decorator,
85
- * or from inline `style` tags and style links on the external template.
86
- */
87
- export declare const enum ResourceTypeForDiagnostics {
88
- Template = 0,
89
- StylesheetFromTemplate = 1,
90
- StylesheetFromDecorator = 2
91
- }
92
- /**
93
- * Represents an Angular component.
94
- */
95
- export declare class ComponentSymbol extends DirectiveSymbol {
96
- usedDirectives: SemanticReference[];
97
- usedPipes: SemanticReference[];
98
- isRemotelyScoped: boolean;
99
- isEmitAffected(previousSymbol: SemanticSymbol, publicApiAffected: Set<SemanticSymbol>): boolean;
100
- isTypeCheckBlockAffected(previousSymbol: SemanticSymbol, typeCheckApiAffected: Set<SemanticSymbol>): boolean;
101
- }
102
- /**
103
- * `DecoratorHandler` which handles the `@Component` annotation.
104
- */
105
- export declare class ComponentDecoratorHandler implements DecoratorHandler<Decorator, ComponentAnalysisData, ComponentSymbol, ComponentResolutionData> {
106
- private reflector;
107
- private evaluator;
108
- private metaRegistry;
109
- private metaReader;
110
- private scopeReader;
111
- private scopeRegistry;
112
- private typeCheckScopeRegistry;
113
- private resourceRegistry;
114
- private isCore;
115
- private resourceLoader;
116
- private rootDirs;
117
- private defaultPreserveWhitespaces;
118
- private i18nUseExternalIds;
119
- private enableI18nLegacyMessageIdFormat;
120
- private usePoisonedData;
121
- private i18nNormalizeLineEndingsInICUs;
122
- private moduleResolver;
123
- private cycleAnalyzer;
124
- private cycleHandlingStrategy;
125
- private refEmitter;
126
- private depTracker;
127
- private injectableRegistry;
128
- private semanticDepGraphUpdater;
129
- private annotateForClosureCompiler;
130
- private perf;
131
- constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, metaReader: MetadataReader, scopeReader: ComponentScopeReader, scopeRegistry: LocalModuleScopeRegistry, typeCheckScopeRegistry: TypeCheckScopeRegistry, resourceRegistry: ResourceRegistry, isCore: boolean, resourceLoader: ResourceLoader, rootDirs: ReadonlyArray<string>, defaultPreserveWhitespaces: boolean, i18nUseExternalIds: boolean, enableI18nLegacyMessageIdFormat: boolean, usePoisonedData: boolean, i18nNormalizeLineEndingsInICUs: boolean | undefined, moduleResolver: ModuleResolver, cycleAnalyzer: CycleAnalyzer, cycleHandlingStrategy: CycleHandlingStrategy, refEmitter: ReferenceEmitter, depTracker: DependencyTracker | null, injectableRegistry: InjectableClassRegistry, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, perf: PerfRecorder);
132
- private literalCache;
133
- private elementSchemaRegistry;
134
- /**
135
- * During the asynchronous preanalyze phase, it's necessary to parse the template to extract
136
- * any potential <link> tags which might need to be loaded. This cache ensures that work is not
137
- * thrown away, and the parsed template is reused during the analyze phase.
138
- */
139
- private preanalyzeTemplateCache;
140
- private preanalyzeStylesCache;
141
- readonly precedence = HandlerPrecedence.PRIMARY;
142
- readonly name: string;
143
- detect(node: ClassDeclaration, decorators: Decorator[] | null): DetectResult<Decorator> | undefined;
144
- preanalyze(node: ClassDeclaration, decorator: Readonly<Decorator>): Promise<void> | undefined;
145
- analyze(node: ClassDeclaration, decorator: Readonly<Decorator>, flags?: HandlerFlags): AnalysisOutput<ComponentAnalysisData>;
146
- symbol(node: ClassDeclaration, analysis: Readonly<ComponentAnalysisData>): ComponentSymbol;
147
- register(node: ClassDeclaration, analysis: ComponentAnalysisData): void;
148
- index(context: IndexingContext, node: ClassDeclaration, analysis: Readonly<ComponentAnalysisData>): null | undefined;
149
- typeCheck(ctx: TypeCheckContext, node: ClassDeclaration, meta: Readonly<ComponentAnalysisData>): void;
150
- extendedTemplateCheck(component: ts.ClassDeclaration, extendedTemplateChecker: ExtendedTemplateChecker): ts.Diagnostic[];
151
- resolve(node: ClassDeclaration, analysis: Readonly<ComponentAnalysisData>, symbol: ComponentSymbol): ResolveResult<ComponentResolutionData>;
152
- xi18n(ctx: Xi18nContext, node: ClassDeclaration, analysis: Readonly<ComponentAnalysisData>): void;
153
- updateResources(node: ClassDeclaration, analysis: ComponentAnalysisData): void;
154
- compileFull(node: ClassDeclaration, analysis: Readonly<ComponentAnalysisData>, resolution: Readonly<ComponentResolutionData>, pool: ConstantPool): CompileResult[];
155
- compilePartial(node: ClassDeclaration, analysis: Readonly<ComponentAnalysisData>, resolution: Readonly<ComponentResolutionData>): CompileResult[];
156
- /**
157
- * Transforms the given decorator to inline external resources. i.e. if the decorator
158
- * resolves to `@Component`, the `templateUrl` and `styleUrls` metadata fields will be
159
- * transformed to their semantically-equivalent inline variants.
160
- *
161
- * This method is used for serializing decorators into the class metadata. The emitted
162
- * class metadata should not refer to external resources as this would be inconsistent
163
- * with the component definitions/declarations which already inline external resources.
164
- *
165
- * Additionally, the references to external resources would require libraries to ship
166
- * external resources exclusively for the class metadata.
167
- */
168
- private _transformDecoratorToInlineResources;
169
- private _resolveLiteral;
170
- private _resolveEnumValue;
171
- private _extractComponentStyleUrls;
172
- private _extractStyleUrlsFromExpression;
173
- private _extractStyleResources;
174
- private _preloadAndParseTemplate;
175
- private extractTemplate;
176
- private _parseTemplate;
177
- private parseTemplateDeclaration;
178
- private _resolveImportedFile;
179
- /**
180
- * Check whether adding an import from `origin` to the source-file corresponding to `expr` would
181
- * create a cyclic import.
182
- *
183
- * @returns a `Cycle` object if a cycle would be created, otherwise `null`.
184
- */
185
- private _checkForCyclicImport;
186
- private _recordSyntheticImport;
187
- private makeResourceNotFoundError;
188
- private _extractTemplateStyleUrls;
189
- }
190
- /**
191
- * Information about the template which was extracted during parsing.
192
- *
193
- * This contains the actual parsed template as well as any metadata collected during its parsing,
194
- * some of which might be useful for re-parsing the template with different options.
195
- */
196
- export interface ParsedComponentTemplate extends ParsedTemplate {
197
- /**
198
- * The template AST, parsed in a manner which preserves source map information for diagnostics.
199
- *
200
- * Not useful for emit.
201
- */
202
- diagNodes: TmplAstNode[];
203
- /**
204
- * The `ParseSourceFile` for the template.
205
- */
206
- file: ParseSourceFile;
207
- }
208
- export interface ParsedTemplateWithSource extends ParsedComponentTemplate {
209
- /** The string contents of the template. */
210
- content: string;
211
- sourceMapping: TemplateSourceMapping;
212
- declaration: TemplateDeclaration;
213
- }
214
- /**
215
- * Common fields extracted from the declaration of a template.
216
- */
217
- interface CommonTemplateDeclaration {
218
- preserveWhitespaces: boolean;
219
- interpolationConfig: InterpolationConfig;
220
- templateUrl: string;
221
- resolvedTemplateUrl: string;
222
- }
223
- /**
224
- * Information extracted from the declaration of an inline template.
225
- */
226
- interface InlineTemplateDeclaration extends CommonTemplateDeclaration {
227
- isInline: true;
228
- expression: ts.Expression;
229
- }
230
- /**
231
- * Information extracted from the declaration of an external template.
232
- */
233
- interface ExternalTemplateDeclaration extends CommonTemplateDeclaration {
234
- isInline: false;
235
- templateUrlExpression: ts.Expression;
236
- }
237
- /**
238
- * The declaration of a template extracted from a component decorator.
239
- *
240
- * This data is extracted and stored separately to facilitate re-interpreting the template
241
- * declaration whenever the compiler is notified of a change to a template file. With this
242
- * information, `ComponentDecoratorHandler` is able to re-read the template and update the component
243
- * record without needing to parse the original decorator again.
244
- */
245
- declare type TemplateDeclaration = InlineTemplateDeclaration | ExternalTemplateDeclaration;
246
- export {};
@@ -1,99 +0,0 @@
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/compiler-cli/src/ngtsc/annotations/src/directive" />
9
- import { ConstantPool, ParsedHostBindings, R3ClassMetadata, R3DirectiveMetadata, R3QueryMetadata } from '@angular/compiler';
10
- import ts from 'typescript';
11
- import { Reference } from '../../imports';
12
- import { SemanticDepGraphUpdater, SemanticSymbol, SemanticTypeParameter } from '../../incremental/semantic_graph';
13
- import { ClassPropertyMapping, DirectiveTypeCheckMeta, InjectableClassRegistry, MetadataReader, MetadataRegistry } from '../../metadata';
14
- import { PartialEvaluator } from '../../partial_evaluator';
15
- import { PerfRecorder } from '../../perf';
16
- import { ClassDeclaration, ClassMember, Decorator, ReflectionHost } from '../../reflection';
17
- import { LocalModuleScopeRegistry } from '../../scope';
18
- import { AnalysisOutput, CompileResult, DecoratorHandler, DetectResult, HandlerFlags, HandlerPrecedence, ResolveResult } from '../../transform';
19
- export interface DirectiveHandlerData {
20
- baseClass: Reference<ClassDeclaration> | 'dynamic' | null;
21
- typeCheckMeta: DirectiveTypeCheckMeta;
22
- meta: R3DirectiveMetadata;
23
- classMetadata: R3ClassMetadata | null;
24
- providersRequiringFactory: Set<Reference<ClassDeclaration>> | null;
25
- inputs: ClassPropertyMapping;
26
- outputs: ClassPropertyMapping;
27
- isPoisoned: boolean;
28
- isStructural: boolean;
29
- }
30
- /**
31
- * Represents an Angular directive. Components are represented by `ComponentSymbol`, which inherits
32
- * from this symbol.
33
- */
34
- export declare class DirectiveSymbol extends SemanticSymbol {
35
- readonly selector: string | null;
36
- readonly inputs: ClassPropertyMapping;
37
- readonly outputs: ClassPropertyMapping;
38
- readonly exportAs: string[] | null;
39
- readonly typeCheckMeta: DirectiveTypeCheckMeta;
40
- readonly typeParameters: SemanticTypeParameter[] | null;
41
- baseClass: SemanticSymbol | null;
42
- constructor(decl: ClassDeclaration, selector: string | null, inputs: ClassPropertyMapping, outputs: ClassPropertyMapping, exportAs: string[] | null, typeCheckMeta: DirectiveTypeCheckMeta, typeParameters: SemanticTypeParameter[] | null);
43
- isPublicApiAffected(previousSymbol: SemanticSymbol): boolean;
44
- isTypeCheckApiAffected(previousSymbol: SemanticSymbol): boolean;
45
- }
46
- export declare class DirectiveDecoratorHandler implements DecoratorHandler<Decorator | null, DirectiveHandlerData, DirectiveSymbol, unknown> {
47
- private reflector;
48
- private evaluator;
49
- private metaRegistry;
50
- private scopeRegistry;
51
- private metaReader;
52
- private injectableRegistry;
53
- private isCore;
54
- private semanticDepGraphUpdater;
55
- private annotateForClosureCompiler;
56
- private compileUndecoratedClassesWithAngularFeatures;
57
- private perf;
58
- constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, scopeRegistry: LocalModuleScopeRegistry, metaReader: MetadataReader, injectableRegistry: InjectableClassRegistry, isCore: boolean, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, compileUndecoratedClassesWithAngularFeatures: boolean, perf: PerfRecorder);
59
- readonly precedence = HandlerPrecedence.PRIMARY;
60
- readonly name: string;
61
- detect(node: ClassDeclaration, decorators: Decorator[] | null): DetectResult<Decorator | null> | undefined;
62
- analyze(node: ClassDeclaration, decorator: Readonly<Decorator | null>, flags?: HandlerFlags): AnalysisOutput<DirectiveHandlerData>;
63
- symbol(node: ClassDeclaration, analysis: Readonly<DirectiveHandlerData>): DirectiveSymbol;
64
- register(node: ClassDeclaration, analysis: Readonly<DirectiveHandlerData>): void;
65
- resolve(node: ClassDeclaration, analysis: DirectiveHandlerData, symbol: DirectiveSymbol): ResolveResult<unknown>;
66
- compileFull(node: ClassDeclaration, analysis: Readonly<DirectiveHandlerData>, resolution: Readonly<unknown>, pool: ConstantPool): CompileResult[];
67
- compilePartial(node: ClassDeclaration, analysis: Readonly<DirectiveHandlerData>, resolution: Readonly<unknown>): CompileResult[];
68
- /**
69
- * Checks if a given class uses Angular features and returns the TypeScript node
70
- * that indicated the usage. Classes are considered using Angular features if they
71
- * contain class members that are either decorated with a known Angular decorator,
72
- * or if they correspond to a known Angular lifecycle hook.
73
- */
74
- private findClassFieldWithAngularFeatures;
75
- }
76
- /**
77
- * Helper function to extract metadata from a `Directive` or `Component`. `Directive`s without a
78
- * selector are allowed to be used for abstract base classes. These abstract directives should not
79
- * appear in the declarations of an `NgModule` and additional verification is done when processing
80
- * the module.
81
- */
82
- export declare function extractDirectiveMetadata(clazz: ClassDeclaration, decorator: Readonly<Decorator | null>, reflector: ReflectionHost, evaluator: PartialEvaluator, isCore: boolean, flags: HandlerFlags, annotateForClosureCompiler: boolean, defaultSelector?: string | null): {
83
- decorator: Map<string, ts.Expression>;
84
- metadata: R3DirectiveMetadata;
85
- inputs: ClassPropertyMapping;
86
- outputs: ClassPropertyMapping;
87
- isStructural: boolean;
88
- } | undefined;
89
- export declare function extractQueryMetadata(exprNode: ts.Node, name: string, args: ReadonlyArray<ts.Expression>, propertyName: string, reflector: ReflectionHost, evaluator: PartialEvaluator): R3QueryMetadata;
90
- export declare function extractQueriesFromDecorator(queryData: ts.Expression, reflector: ReflectionHost, evaluator: PartialEvaluator, isCore: boolean): {
91
- content: R3QueryMetadata[];
92
- view: R3QueryMetadata[];
93
- };
94
- export declare function parseFieldArrayValue(directive: Map<string, ts.Expression>, field: string, evaluator: PartialEvaluator): null | string[];
95
- export declare function queriesFromFields(fields: {
96
- member: ClassMember;
97
- decorators: Decorator[];
98
- }[], reflector: ReflectionHost, evaluator: PartialEvaluator): R3QueryMetadata[];
99
- export declare function extractHostBindings(members: ClassMember[], evaluator: PartialEvaluator, coreModule: string | undefined, metadata?: Map<string, ts.Expression>): ParsedHostBindings;