@angular/compiler-cli 17.3.0-next.0 → 17.3.0-rc.0

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 (39) hide show
  1. package/bundles/{chunk-XLXSE3QH.js → chunk-6X7GQ6BQ.js} +214 -153
  2. package/bundles/{chunk-XLXSE3QH.js.map → chunk-6X7GQ6BQ.js.map} +3 -3
  3. package/bundles/{chunk-VPKIGOWE.js → chunk-E5DF5SRS.js} +4 -4
  4. package/bundles/{chunk-GWFFFWTW.js → chunk-FH3I22MY.js} +103 -69
  5. package/bundles/chunk-FH3I22MY.js.map +6 -0
  6. package/bundles/{chunk-JKNKVO7U.js → chunk-MNT5B5MH.js} +2 -2
  7. package/bundles/{chunk-NZQBYQYJ.js → chunk-Q4UHSSKO.js} +18 -18
  8. package/bundles/{chunk-NZQBYQYJ.js.map → chunk-Q4UHSSKO.js.map} +1 -1
  9. package/bundles/{chunk-OW77LBBK.js → chunk-WYZJV3LZ.js} +515 -484
  10. package/bundles/chunk-WYZJV3LZ.js.map +6 -0
  11. package/bundles/index.js +5 -5
  12. package/bundles/linker/babel/index.js +2 -2
  13. package/bundles/linker/index.js +2 -2
  14. package/bundles/private/migrations.js +2 -2
  15. package/bundles/private/tooling.js +3 -3
  16. package/bundles/src/bin/ng_xi18n.js +4 -4
  17. package/bundles/src/bin/ngc.js +4 -4
  18. package/bundles_metadata.json +1 -1
  19. package/linker/src/file_linker/partial_linkers/util.d.ts +2 -2
  20. package/package.json +3 -3
  21. package/src/ngtsc/annotations/component/src/handler.d.ts +3 -2
  22. package/src/ngtsc/annotations/directive/src/handler.d.ts +3 -2
  23. package/src/ngtsc/annotations/directive/src/initializer_functions.d.ts +10 -6
  24. package/src/ngtsc/annotations/directive/src/input_function.d.ts +2 -1
  25. package/src/ngtsc/annotations/directive/src/model_function.d.ts +2 -1
  26. package/src/ngtsc/annotations/directive/src/output_function.d.ts +2 -1
  27. package/src/ngtsc/annotations/directive/src/query_functions.d.ts +2 -1
  28. package/src/ngtsc/annotations/directive/src/shared.d.ts +2 -2
  29. package/src/ngtsc/core/src/feature_detection.d.ts +13 -0
  30. package/src/ngtsc/imports/index.d.ts +1 -0
  31. package/src/ngtsc/imports/src/imported_symbols_tracker.d.ts +37 -0
  32. package/src/ngtsc/reflection/index.d.ts +1 -1
  33. package/src/ngtsc/reflection/src/type_to_value.d.ts +1 -0
  34. package/src/transformers/jit_transforms/initializer_api_transforms/transform.d.ts +2 -1
  35. package/src/transformers/jit_transforms/initializer_api_transforms/transform_api.d.ts +3 -2
  36. package/bundles/chunk-GWFFFWTW.js.map +0 -6
  37. package/bundles/chunk-OW77LBBK.js.map +0 -6
  38. /package/bundles/{chunk-VPKIGOWE.js.map → chunk-E5DF5SRS.js.map} +0 -0
  39. /package/bundles/{chunk-JKNKVO7U.js.map → chunk-MNT5B5MH.js.map} +0 -0
@@ -7,8 +7,8 @@
7
7
  */
8
8
  import { MaybeForwardRefExpression, outputAst as o, R3DeclareDependencyMetadata, R3DependencyMetadata, R3Reference } from '@angular/compiler';
9
9
  import { AstObject, AstValue } from '../../ast/ast_value';
10
- export declare const PLACEHOLDER_VERSION = "17.3.0-next.0";
11
- export declare const SHOULD_USE_TEMPLATE_PIPELINE_FOR_LINKER = false;
10
+ export declare const PLACEHOLDER_VERSION = "17.3.0-rc.0";
11
+ export declare const SHOULD_USE_TEMPLATE_PIPELINE_FOR_LINKER = true;
12
12
  export declare function wrapReference<TExpression>(wrapped: o.WrappedNodeExpr<TExpression>): R3Reference;
13
13
  /**
14
14
  * Parses the value of an enum from the AST value's symbol name.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler-cli",
3
- "version": "17.3.0-next.0",
3
+ "version": "17.3.0-rc.0",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -53,8 +53,8 @@
53
53
  "yargs": "^17.2.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@angular/compiler": "17.3.0-next.0",
57
- "typescript": ">=5.2 <5.4"
56
+ "@angular/compiler": "17.3.0-rc.0",
57
+ "typescript": ">=5.2 <5.5"
58
58
  },
59
59
  "repository": {
60
60
  "type": "git",
@@ -8,7 +8,7 @@
8
8
  import { ConstantPool } from '@angular/compiler';
9
9
  import ts from 'typescript';
10
10
  import { CycleAnalyzer, CycleHandlingStrategy } from '../../../cycles';
11
- import { DeferredSymbolTracker, LocalCompilationExtraImportsTracker, ModuleResolver, ReferenceEmitter } from '../../../imports';
11
+ import { DeferredSymbolTracker, ImportedSymbolsTracker, LocalCompilationExtraImportsTracker, ModuleResolver, ReferenceEmitter } from '../../../imports';
12
12
  import { DependencyTracker } from '../../../incremental/api';
13
13
  import { SemanticDepGraphUpdater } from '../../../incremental/semantic_graph';
14
14
  import { IndexingContext } from '../../../indexer';
@@ -57,6 +57,7 @@ export declare class ComponentDecoratorHandler implements DecoratorHandler<Decor
57
57
  private annotateForClosureCompiler;
58
58
  private perf;
59
59
  private hostDirectivesResolver;
60
+ private importTracker;
60
61
  private includeClassMetadata;
61
62
  private readonly compilationMode;
62
63
  private readonly deferredSymbolTracker;
@@ -64,7 +65,7 @@ export declare class ComponentDecoratorHandler implements DecoratorHandler<Decor
64
65
  private readonly enableBlockSyntax;
65
66
  private readonly useTemplatePipeline;
66
67
  private readonly localCompilationExtraImportsTracker;
67
- constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, metaReader: MetadataReader, scopeReader: ComponentScopeReader, dtsScopeReader: DtsModuleScopeResolver, scopeRegistry: LocalModuleScopeRegistry, typeCheckScopeRegistry: TypeCheckScopeRegistry, resourceRegistry: ResourceRegistry, isCore: boolean, strictCtorDeps: boolean, resourceLoader: ResourceLoader, rootDirs: ReadonlyArray<string>, defaultPreserveWhitespaces: boolean, i18nUseExternalIds: boolean, enableI18nLegacyMessageIdFormat: boolean, usePoisonedData: boolean, i18nNormalizeLineEndingsInICUs: boolean, moduleResolver: ModuleResolver, cycleAnalyzer: CycleAnalyzer, cycleHandlingStrategy: CycleHandlingStrategy, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, depTracker: DependencyTracker | null, injectableRegistry: InjectableClassRegistry, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, perf: PerfRecorder, hostDirectivesResolver: HostDirectivesResolver, includeClassMetadata: boolean, compilationMode: CompilationMode, deferredSymbolTracker: DeferredSymbolTracker, forbidOrphanRendering: boolean, enableBlockSyntax: boolean, useTemplatePipeline: boolean, localCompilationExtraImportsTracker: LocalCompilationExtraImportsTracker | null);
68
+ constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, metaReader: MetadataReader, scopeReader: ComponentScopeReader, dtsScopeReader: DtsModuleScopeResolver, scopeRegistry: LocalModuleScopeRegistry, typeCheckScopeRegistry: TypeCheckScopeRegistry, resourceRegistry: ResourceRegistry, isCore: boolean, strictCtorDeps: boolean, resourceLoader: ResourceLoader, rootDirs: ReadonlyArray<string>, defaultPreserveWhitespaces: boolean, i18nUseExternalIds: boolean, enableI18nLegacyMessageIdFormat: boolean, usePoisonedData: boolean, i18nNormalizeLineEndingsInICUs: boolean, moduleResolver: ModuleResolver, cycleAnalyzer: CycleAnalyzer, cycleHandlingStrategy: CycleHandlingStrategy, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, depTracker: DependencyTracker | null, injectableRegistry: InjectableClassRegistry, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, perf: PerfRecorder, hostDirectivesResolver: HostDirectivesResolver, importTracker: ImportedSymbolsTracker, includeClassMetadata: boolean, compilationMode: CompilationMode, deferredSymbolTracker: DeferredSymbolTracker, forbidOrphanRendering: boolean, enableBlockSyntax: boolean, useTemplatePipeline: boolean, localCompilationExtraImportsTracker: LocalCompilationExtraImportsTracker | null);
68
69
  private literalCache;
69
70
  private elementSchemaRegistry;
70
71
  /**
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { ConstantPool, R3ClassMetadata, R3DirectiveMetadata } from '@angular/compiler';
9
9
  import ts from 'typescript';
10
- import { Reference, ReferenceEmitter } from '../../../imports';
10
+ import { ImportedSymbolsTracker, Reference, ReferenceEmitter } from '../../../imports';
11
11
  import { SemanticDepGraphUpdater } from '../../../incremental/semantic_graph';
12
12
  import { ClassPropertyMapping, DirectiveTypeCheckMeta, HostDirectiveMeta, InputMapping, MetadataReader, MetadataRegistry } from '../../../metadata';
13
13
  import { PartialEvaluator } from '../../../partial_evaluator';
@@ -45,11 +45,12 @@ export declare class DirectiveDecoratorHandler implements DecoratorHandler<Decor
45
45
  private semanticDepGraphUpdater;
46
46
  private annotateForClosureCompiler;
47
47
  private perf;
48
+ private importTracker;
48
49
  private includeClassMetadata;
49
50
  private readonly compilationMode;
50
51
  private readonly useTemplatePipeline;
51
52
  private readonly generateExtraImportsInLocalMode;
52
- constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, scopeRegistry: LocalModuleScopeRegistry, metaReader: MetadataReader, injectableRegistry: InjectableClassRegistry, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, isCore: boolean, strictCtorDeps: boolean, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, perf: PerfRecorder, includeClassMetadata: boolean, compilationMode: CompilationMode, useTemplatePipeline: boolean, generateExtraImportsInLocalMode: boolean);
53
+ constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, scopeRegistry: LocalModuleScopeRegistry, metaReader: MetadataReader, injectableRegistry: InjectableClassRegistry, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, isCore: boolean, strictCtorDeps: boolean, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, perf: PerfRecorder, importTracker: ImportedSymbolsTracker, includeClassMetadata: boolean, compilationMode: CompilationMode, useTemplatePipeline: boolean, generateExtraImportsInLocalMode: boolean);
53
54
  readonly precedence = HandlerPrecedence.PRIMARY;
54
55
  readonly name = "DirectiveDecoratorHandler";
55
56
  detect(node: ClassDeclaration, decorators: Decorator[] | null): DetectResult<Decorator | null> | undefined;
@@ -6,6 +6,7 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import ts from 'typescript';
9
+ import { ImportedSymbolsTracker } from '../../../imports';
9
10
  import { ClassMember, ReflectionHost } from '../../../reflection';
10
11
  /**
11
12
  * @fileoverview
@@ -18,14 +19,17 @@ import { ClassMember, ReflectionHost } from '../../../reflection';
18
19
  * Similarly, signal-based queries follow the same pattern and are also
19
20
  * declared through initializer APIs.
20
21
  */
21
- export type InitializerApiFunction = 'input' | 'model' | 'ɵoutput' | 'output' | 'viewChild' | 'viewChildren' | 'contentChild' | 'contentChildren';
22
+ export interface InitializerApiFunction {
23
+ owningModule: '@angular/core' | '@angular/core/rxjs-interop';
24
+ functionName: ('input' | 'model' | 'ɵoutput' | 'output' | 'outputFromObservable' | 'viewChild' | 'viewChildren' | 'contentChild' | 'contentChildren');
25
+ }
22
26
  /**
23
27
  * Metadata describing an Angular class member that was recognized through
24
28
  * a function initializer. Like `input`, `input.required` or `viewChild`.
25
29
  */
26
30
  interface InitializerFunctionMetadata {
27
- /** Name of the initializer API function that was recognized. */
28
- apiName: InitializerApiFunction;
31
+ /** Initializer API function that was recognized. */
32
+ api: InitializerApiFunction;
29
33
  /** Node referring to the call expression. */
30
34
  call: ts.CallExpression;
31
35
  /** Whether the initializer is required or not. E.g. `input.required` was used. */
@@ -38,7 +42,7 @@ interface InitializerFunctionMetadata {
38
42
  * Note that multiple possible initializer API function names can be specified,
39
43
  * allowing for checking multiple types in one pass.
40
44
  */
41
- export declare function tryParseInitializerApiMember<FnNames extends InitializerApiFunction[]>(fnNames: FnNames, member: Pick<ClassMember, 'value'>, reflector: ReflectionHost, isCore: boolean): InitializerFunctionMetadata & {
42
- apiName: FnNames[number];
43
- } | null;
45
+ export declare function tryParseInitializerApiMember<Functions extends InitializerApiFunction[]>(functions: Functions, member: Pick<ClassMember, 'value'>, reflector: ReflectionHost, importTracker: ImportedSymbolsTracker): (InitializerFunctionMetadata & {
46
+ api: Functions[number];
47
+ } | null);
44
48
  export {};
@@ -5,10 +5,11 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
+ import { ImportedSymbolsTracker } from '../../../imports';
8
9
  import { InputMapping } from '../../../metadata';
9
10
  import { ClassMember, ReflectionHost } from '../../../reflection';
10
11
  /**
11
12
  * Attempts to parse a signal input class member. Returns the parsed
12
13
  * input mapping if possible.
13
14
  */
14
- export declare function tryParseSignalInputMapping(member: Pick<ClassMember, 'name' | 'value'>, reflector: ReflectionHost, isCore: boolean): InputMapping | null;
15
+ export declare function tryParseSignalInputMapping(member: Pick<ClassMember, 'name' | 'value'>, reflector: ReflectionHost, importTracker: ImportedSymbolsTracker): InputMapping | null;
@@ -5,9 +5,10 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
+ import { ImportedSymbolsTracker } from '../../../imports';
8
9
  import { ModelMapping } from '../../../metadata';
9
10
  import { ClassMember, ReflectionHost } from '../../../reflection';
10
11
  /**
11
12
  * Attempts to parse a model class member. Returns the parsed model mapping if possible.
12
13
  */
13
- export declare function tryParseSignalModelMapping(member: Pick<ClassMember, 'name' | 'value'>, reflector: ReflectionHost, isCore: boolean): ModelMapping | null;
14
+ export declare function tryParseSignalModelMapping(member: Pick<ClassMember, 'name' | 'value'>, reflector: ReflectionHost, importTracker: ImportedSymbolsTracker): ModelMapping | null;
@@ -6,13 +6,14 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import ts from 'typescript';
9
+ import { ImportedSymbolsTracker } from '../../../imports';
9
10
  import { InputOrOutput } from '../../../metadata';
10
11
  import { ClassMember, ReflectionHost } from '../../../reflection';
11
12
  /**
12
13
  * Attempts to parse a signal output class member. Returns the parsed
13
14
  * input mapping if possible.
14
15
  */
15
- export declare function tryParseInitializerBasedOutput(member: Pick<ClassMember, 'name' | 'value'>, reflector: ReflectionHost, isCore: boolean): {
16
+ export declare function tryParseInitializerBasedOutput(member: Pick<ClassMember, 'name' | 'value'>, reflector: ReflectionHost, importTracker: ImportedSymbolsTracker): {
16
17
  call: ts.CallExpression;
17
18
  metadata: InputOrOutput;
18
19
  } | null;
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import { R3QueryMetadata } from '@angular/compiler';
9
9
  import ts from 'typescript';
10
+ import { ImportedSymbolsTracker } from '../../../imports';
10
11
  import { ClassMember, ReflectionHost } from '../../../reflection';
11
12
  /** Possible query initializer API functions. */
12
13
  export type QueryFunctionName = 'viewChild' | 'contentChild' | 'viewChildren' | 'contentChildren';
@@ -18,7 +19,7 @@ export type QueryFunctionName = 'viewChild' | 'contentChild' | 'viewChildren' |
18
19
  *
19
20
  * @returns Resolved query metadata, or null if no query is declared.
20
21
  */
21
- export declare function tryParseSignalQueryFromInitializer(member: Pick<ClassMember, 'name' | 'value'>, reflector: ReflectionHost, isCore: boolean): {
22
+ export declare function tryParseSignalQueryFromInitializer(member: Pick<ClassMember, 'name' | 'value'>, reflector: ReflectionHost, importTracker: ImportedSymbolsTracker): {
22
23
  name: QueryFunctionName;
23
24
  metadata: R3QueryMetadata;
24
25
  call: ts.CallExpression;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { ParsedHostBindings, R3DirectiveMetadata, R3QueryMetadata } from '@angular/compiler';
9
9
  import ts from 'typescript';
10
- import { Reference, ReferenceEmitter } from '../../../imports';
10
+ import { ImportedSymbolsTracker, Reference, ReferenceEmitter } from '../../../imports';
11
11
  import { ClassPropertyMapping, DecoratorInputTransform, HostDirectiveMeta, InputMapping } from '../../../metadata';
12
12
  import { DynamicValue, PartialEvaluator } from '../../../partial_evaluator';
13
13
  import { ClassDeclaration, ClassMember, Decorator, ReflectionHost } from '../../../reflection';
@@ -21,7 +21,7 @@ export declare const queryDecoratorNames: QueryDecoratorName[];
21
21
  * appear in the declarations of an `NgModule` and additional verification is done when processing
22
22
  * the module.
23
23
  */
24
- export declare function extractDirectiveMetadata(clazz: ClassDeclaration, decorator: Readonly<Decorator>, reflector: ReflectionHost, evaluator: PartialEvaluator, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, isCore: boolean, annotateForClosureCompiler: boolean, compilationMode: CompilationMode, defaultSelector: string | null, useTemplatePipeline: boolean): {
24
+ export declare function extractDirectiveMetadata(clazz: ClassDeclaration, decorator: Readonly<Decorator>, reflector: ReflectionHost, importTracker: ImportedSymbolsTracker, evaluator: PartialEvaluator, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, isCore: boolean, annotateForClosureCompiler: boolean, compilationMode: CompilationMode, defaultSelector: string | null, useTemplatePipeline: boolean): {
25
25
  decorator: Map<string, ts.Expression>;
26
26
  metadata: R3DirectiveMetadata;
27
27
  inputs: ClassPropertyMapping<InputMapping>;
@@ -0,0 +1,13 @@
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
+ /**
9
+ * Whether a version of `@angular/core` supports a specific feature.
10
+ * @param coreVersion Current version of core.
11
+ * @param minVersion Minimum required version for the feature.
12
+ */
13
+ export declare function coreVersionSupportsFeature(coreVersion: string, minVersion: string): boolean;
@@ -10,6 +10,7 @@ export { ImportRewriter, NoopImportRewriter, R3SymbolsImportRewriter, validateAn
10
10
  export { DefaultImportTracker } from './src/default';
11
11
  export { DeferredSymbolTracker } from './src/deferred_symbol_tracker';
12
12
  export { AbsoluteModuleStrategy, assertSuccessfulReferenceEmit, EmittedReference, FailedEmitResult, ImportedFile, ImportFlags, LocalIdentifierStrategy, LogicalProjectStrategy, ReferenceEmitKind, ReferenceEmitResult, ReferenceEmitStrategy, ReferenceEmitter, RelativePathStrategy, UnifiedModulesStrategy } from './src/emitter';
13
+ export { ImportedSymbolsTracker } from './src/imported_symbols_tracker';
13
14
  export { LocalCompilationExtraImportsTracker } from './src/local_compilation_extra_imports_tracker';
14
15
  export { isAliasImportDeclaration, loadIsReferencedAliasDeclarationPatch } from './src/patch_alias_reference_resolution';
15
16
  export { Reexport } from './src/reexport';
@@ -0,0 +1,37 @@
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 ts from 'typescript';
9
+ /**
10
+ * Tracks which symbols are imported in specific files and under what names. Allows for efficient
11
+ * querying for references to those symbols without having to consult the type checker early in the
12
+ * process.
13
+ *
14
+ * Note that the tracker doesn't account for variable shadowing so a final verification with the
15
+ * type checker may be necessary, depending on the context. Also does not track dynamic imports.
16
+ */
17
+ export declare class ImportedSymbolsTracker {
18
+ private fileToNamedImports;
19
+ private fileToNamespaceImports;
20
+ /**
21
+ * Checks if an identifier is a potential reference to a specific named import within the same
22
+ * file.
23
+ * @param node Identifier to be checked.
24
+ * @param exportedName Name of the exported symbol that is being searched for.
25
+ * @param moduleName Module from which the symbol should be imported.
26
+ */
27
+ isPotentialReferenceToNamedImport(node: ts.Identifier, exportedName: string, moduleName: string): boolean;
28
+ /**
29
+ * Checks if an identifier is a potential reference to a specific namespace import within the same
30
+ * file.
31
+ * @param node Identifier to be checked.
32
+ * @param moduleName Module from which the namespace is imported.
33
+ */
34
+ isPotentialReferenceToNamespaceImport(node: ts.Identifier, moduleName: string): boolean;
35
+ /** Scans a `SourceFile` for import statements and caches them for later use. */
36
+ private scanImports;
37
+ }
@@ -6,6 +6,6 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  export * from './src/host';
9
- export { typeNodeToValueExpr } from './src/type_to_value';
9
+ export { typeNodeToValueExpr, entityNameToValue } from './src/type_to_value';
10
10
  export { TypeScriptReflectionHost, filterToMembersWithDecorator, reflectIdentifierOfDeclaration, reflectNameOfDeclaration, reflectObjectLiteral, reflectTypeEntityToDeclaration } from './src/typescript';
11
11
  export { isNamedClassDeclaration, isNamedFunctionDeclaration, isNamedVariableDeclaration } from './src/util';
@@ -22,3 +22,4 @@ export declare function typeToValue(typeNode: ts.TypeNode | null, checker: ts.Ty
22
22
  * This will return `null` if an equivalent expression cannot be constructed.
23
23
  */
24
24
  export declare function typeNodeToValueExpr(node: ts.TypeNode): ts.Expression | null;
25
+ export declare function entityNameToValue(node: ts.EntityName): ts.Expression | null;
@@ -6,6 +6,7 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import ts from 'typescript';
9
+ import { ImportedSymbolsTracker } from '../../../ngtsc/imports';
9
10
  import { ReflectionHost } from '../../../ngtsc/reflection';
10
11
  /**
11
12
  * Creates an AST transform that looks for Angular classes and transforms
@@ -14,4 +15,4 @@ import { ReflectionHost } from '../../../ngtsc/reflection';
14
15
  * For example, an `input()` member may be transformed to add an `@Input`
15
16
  * decorator for JIT.
16
17
  */
17
- export declare function getInitializerApiJitTransform(host: ReflectionHost, isCore: boolean): ts.TransformerFactory<ts.SourceFile>;
18
+ export declare function getInitializerApiJitTransform(host: ReflectionHost, importTracker: ImportedSymbolsTracker, isCore: boolean): ts.TransformerFactory<ts.SourceFile>;
@@ -6,12 +6,13 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import ts from 'typescript';
9
- import { Decorator, ReflectionHost } from '../../..//ngtsc/reflection';
9
+ import { ImportedSymbolsTracker } from '../../../ngtsc/imports';
10
+ import { Decorator, ReflectionHost } from '../../../ngtsc/reflection';
10
11
  import { ImportManager } from '../../../ngtsc/translator';
11
12
  /** Function that can be used to transform class properties. */
12
13
  export type PropertyTransform = (node: ts.PropertyDeclaration & {
13
14
  name: ts.Identifier | ts.StringLiteralLike;
14
- }, host: ReflectionHost, factory: ts.NodeFactory, importManager: ImportManager, classDecorator: Decorator, isCore: boolean) => ts.PropertyDeclaration;
15
+ }, host: ReflectionHost, factory: ts.NodeFactory, importTracker: ImportedSymbolsTracker, importManager: ImportManager, classDecorator: Decorator, isCore: boolean) => ts.PropertyDeclaration;
15
16
  /**
16
17
  * Creates an import and access for a given Angular core import while
17
18
  * ensuring the decorator symbol access can be traced back to an Angular core