@angular/compiler-cli 18.0.0-next.5 → 18.0.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 (71) hide show
  1. package/bundles/{chunk-IEQXFDXI.js → chunk-3UXY73FR.js} +31 -31
  2. package/bundles/chunk-3UXY73FR.js.map +6 -0
  3. package/bundles/{chunk-75YFKYUJ.js → chunk-3W345P4E.js} +7 -7
  4. package/bundles/chunk-3W345P4E.js.map +6 -0
  5. package/bundles/{chunk-QT2OXMUI.js → chunk-3ZM5BFEI.js} +188 -123
  6. package/bundles/chunk-3ZM5BFEI.js.map +6 -0
  7. package/bundles/{chunk-DZJYWOMD.js → chunk-5DY7CLVW.js} +16 -14
  8. package/bundles/chunk-5DY7CLVW.js.map +6 -0
  9. package/bundles/{chunk-QFI3O2MX.js → chunk-BAS2AOWB.js} +40 -19
  10. package/bundles/chunk-BAS2AOWB.js.map +6 -0
  11. package/bundles/{chunk-GWZTRBUN.js → chunk-CFIOLJL4.js} +59 -51
  12. package/bundles/chunk-CFIOLJL4.js.map +6 -0
  13. package/bundles/{chunk-R4KQI5XI.js → chunk-JZQHA4E7.js} +5 -5
  14. package/bundles/{chunk-R4KQI5XI.js.map → chunk-JZQHA4E7.js.map} +1 -1
  15. package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
  16. package/bundles/{chunk-WCD6LVCP.js → chunk-QYV344EV.js} +11 -8
  17. package/bundles/chunk-QYV344EV.js.map +6 -0
  18. package/bundles/{chunk-AO7Q5KNS.js → chunk-XAPDG6EU.js} +248 -176
  19. package/bundles/chunk-XAPDG6EU.js.map +6 -0
  20. package/bundles/{chunk-YUMIYLNL.js → chunk-ZX6BKV7T.js} +5 -5
  21. package/bundles/{chunk-YUMIYLNL.js.map → chunk-ZX6BKV7T.js.map} +1 -1
  22. package/bundles/index.js +12 -12
  23. package/bundles/index.js.map +1 -1
  24. package/bundles/linker/babel/index.js +15 -13
  25. package/bundles/linker/babel/index.js.map +1 -1
  26. package/bundles/linker/index.js +4 -4
  27. package/bundles/ngcc/index.js +1 -1
  28. package/bundles/ngcc/index.js.map +1 -1
  29. package/bundles/private/bazel.js +1 -1
  30. package/bundles/private/localize.js +3 -3
  31. package/bundles/private/migrations.js +5 -5
  32. package/bundles/private/tooling.js +5 -5
  33. package/bundles/src/bin/ng_xi18n.js +10 -10
  34. package/bundles/src/bin/ng_xi18n.js.map +1 -1
  35. package/bundles/src/bin/ngc.js +8 -8
  36. package/bundles/src/bin/ngc.js.map +1 -1
  37. package/bundles_metadata.json +1 -1
  38. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  39. package/package.json +2 -2
  40. package/private/migrations.d.ts +2 -2
  41. package/src/ngtsc/annotations/common/src/util.d.ts +2 -2
  42. package/src/ngtsc/annotations/directive/src/initializer_functions.d.ts +2 -2
  43. package/src/ngtsc/annotations/index.d.ts +2 -2
  44. package/src/ngtsc/annotations/ng_module/index.d.ts +1 -1
  45. package/src/ngtsc/annotations/ng_module/src/handler.d.ts +2 -2
  46. package/src/ngtsc/diagnostics/index.d.ts +1 -1
  47. package/src/ngtsc/file_system/index.d.ts +2 -2
  48. package/src/ngtsc/imports/index.d.ts +4 -4
  49. package/src/ngtsc/incremental/index.d.ts +1 -1
  50. package/src/ngtsc/incremental/semantic_graph/index.d.ts +1 -1
  51. package/src/ngtsc/metadata/index.d.ts +3 -3
  52. package/src/ngtsc/partial_evaluator/index.d.ts +1 -1
  53. package/src/ngtsc/reflection/index.d.ts +2 -2
  54. package/src/ngtsc/scope/index.d.ts +1 -1
  55. package/src/ngtsc/shims/index.d.ts +1 -1
  56. package/src/ngtsc/transform/index.d.ts +2 -2
  57. package/src/ngtsc/translator/index.d.ts +4 -4
  58. package/src/ngtsc/typecheck/api/api.d.ts +4 -0
  59. package/src/ngtsc/typecheck/src/expression.d.ts +1 -1
  60. package/src/perform_compile.d.ts +1 -1
  61. package/src/transformers/compiler_host.d.ts +1 -1
  62. package/src/transformers/program.d.ts +1 -1
  63. package/bundles/chunk-75YFKYUJ.js.map +0 -6
  64. package/bundles/chunk-AO7Q5KNS.js.map +0 -6
  65. package/bundles/chunk-DZJYWOMD.js.map +0 -6
  66. package/bundles/chunk-GWZTRBUN.js.map +0 -6
  67. package/bundles/chunk-IEQXFDXI.js.map +0 -6
  68. package/bundles/chunk-QFI3O2MX.js.map +0 -6
  69. package/bundles/chunk-QT2OXMUI.js.map +0 -6
  70. package/bundles/chunk-WCD6LVCP.js.map +0 -6
  71. /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
@@ -7,7 +7,7 @@
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 = "18.0.0-next.5";
10
+ export declare const PLACEHOLDER_VERSION = "18.0.0-rc.0";
11
11
  export declare function wrapReference<TExpression>(wrapped: o.WrappedNodeExpr<TExpression>): R3Reference;
12
12
  /**
13
13
  * 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": "18.0.0-next.5",
3
+ "version": "18.0.0-rc.0",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -53,7 +53,7 @@
53
53
  "yargs": "^17.2.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@angular/compiler": "18.0.0-next.5",
56
+ "@angular/compiler": "18.0.0-rc.0",
57
57
  "typescript": ">=5.4 <5.5"
58
58
  },
59
59
  "repository": {
@@ -11,6 +11,6 @@
11
11
  */
12
12
  export { forwardRefResolver } from '../src/ngtsc/annotations';
13
13
  export { Reference } from '../src/ngtsc/imports';
14
- export { DynamicValue, PartialEvaluator, ResolvedValue, ResolvedValueMap, StaticInterpreter } from '../src/ngtsc/partial_evaluator';
14
+ export { DynamicValue, PartialEvaluator, ResolvedValue, ResolvedValueMap, StaticInterpreter, } from '../src/ngtsc/partial_evaluator';
15
15
  export { reflectObjectLiteral, TypeScriptReflectionHost } from '../src/ngtsc/reflection';
16
- export { PotentialImport, PotentialImportKind, PotentialImportMode, TemplateTypeChecker } from '../src/ngtsc/typecheck/api';
16
+ export { PotentialImport, PotentialImportKind, PotentialImportMode, TemplateTypeChecker, } from '../src/ngtsc/typecheck/api';
@@ -23,9 +23,9 @@ export declare const CORE_MODULE = "@angular/core";
23
23
  export declare function valueReferenceToExpression(valueRef: LocalTypeValueReference | ImportedTypeValueReference): Expression;
24
24
  export declare function valueReferenceToExpression(valueRef: TypeValueReference): Expression | null;
25
25
  export declare function toR3Reference(origin: ts.Node, ref: Reference, context: ts.SourceFile, refEmitter: ReferenceEmitter): R3Reference;
26
- export declare function isAngularCore(decorator: Decorator): decorator is (Decorator & {
26
+ export declare function isAngularCore(decorator: Decorator): decorator is Decorator & {
27
27
  import: Import;
28
- });
28
+ };
29
29
  export declare function isAngularCoreReference(reference: Reference, symbolName: string): boolean;
30
30
  export declare function findAngularDecorator(decorators: Decorator[], name: string, isCore: boolean): Decorator | undefined;
31
31
  export declare function isAngularDecorator(decorator: Decorator, name: string, isCore: boolean): boolean;
@@ -23,7 +23,7 @@ export interface InitializerApiFunction {
23
23
  /** Module name where the initializer function is imported from. */
24
24
  owningModule: '@angular/core' | '@angular/core/rxjs-interop';
25
25
  /** Export name of the initializer function. */
26
- functionName: ('input' | 'model' | 'output' | 'outputFromObservable' | 'viewChild' | 'viewChildren' | 'contentChild' | 'contentChildren');
26
+ functionName: 'input' | 'model' | 'output' | 'outputFromObservable' | 'viewChild' | 'viewChildren' | 'contentChild' | 'contentChildren';
27
27
  /** Class member access levels compatible with the API. */
28
28
  allowedAccessLevels: ClassMemberAccessLevel[];
29
29
  }
@@ -49,4 +49,4 @@ export interface InitializerFunctionMetadata {
49
49
  */
50
50
  export declare function tryParseInitializerApi<Functions extends InitializerApiFunction[]>(functions: Functions, expression: ts.Expression, reflector: ReflectionHost, importTracker: ImportedSymbolsTracker): (InitializerFunctionMetadata & {
51
51
  api: Functions[number];
52
- } | null);
52
+ }) | null;
@@ -5,9 +5,9 @@
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
- export { forwardRefResolver, getAngularDecorators, isAngularDecorator, NoopReferencesRegistry, ReferencesRegistry, ResourceLoader, ResourceLoaderContext } from './common';
8
+ export { forwardRefResolver, getAngularDecorators, isAngularDecorator, NoopReferencesRegistry, ReferencesRegistry, ResourceLoader, ResourceLoaderContext, } from './common';
9
9
  export { ComponentDecoratorHandler } from './component';
10
- export { DirectiveDecoratorHandler, InitializerApiFunction, INPUT_INITIALIZER_FN, MODEL_INITIALIZER_FN, OUTPUT_INITIALIZER_FNS, QUERY_INITIALIZER_FNS, queryDecoratorNames, QueryFunctionName, tryParseInitializerApi, tryParseInitializerBasedOutput, tryParseSignalInputMapping, tryParseSignalModelMapping, tryParseSignalQueryFromInitializer } from './directive';
10
+ export { DirectiveDecoratorHandler, InitializerApiFunction, INPUT_INITIALIZER_FN, MODEL_INITIALIZER_FN, OUTPUT_INITIALIZER_FNS, QUERY_INITIALIZER_FNS, queryDecoratorNames, QueryFunctionName, tryParseInitializerApi, tryParseInitializerBasedOutput, tryParseSignalInputMapping, tryParseSignalModelMapping, tryParseSignalQueryFromInitializer, } from './directive';
11
11
  export { NgModuleDecoratorHandler } from './ng_module';
12
12
  export { InjectableDecoratorHandler } from './src/injectable';
13
13
  export { PipeDecoratorHandler } from './src/pipe';
@@ -6,4 +6,4 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  export { NgModuleDecoratorHandler, NgModuleSymbol } from './src/handler';
9
- export { createModuleWithProvidersResolver, isResolvedModuleWithProviders, ResolvedModuleWithProviders } from './src/module_with_providers';
9
+ export { createModuleWithProvidersResolver, isResolvedModuleWithProviders, ResolvedModuleWithProviders, } from './src/module_with_providers';
@@ -92,9 +92,9 @@ export declare class NgModuleDecoratorHandler implements DecoratorHandler<Decora
92
92
  symbol(node: ClassDeclaration, analysis: NgModuleAnalysis): NgModuleSymbol;
93
93
  register(node: ClassDeclaration, analysis: NgModuleAnalysis): void;
94
94
  resolve(node: ClassDeclaration, analysis: Readonly<NgModuleAnalysis>): ResolveResult<NgModuleResolution>;
95
- compileFull(node: ClassDeclaration, { inj, mod, fac, classMetadata, declarations, remoteScopesMayRequireCycleProtection }: Readonly<NgModuleAnalysis>, { injectorImports }: Readonly<NgModuleResolution>): CompileResult[];
95
+ compileFull(node: ClassDeclaration, { inj, mod, fac, classMetadata, declarations, remoteScopesMayRequireCycleProtection, }: Readonly<NgModuleAnalysis>, { injectorImports }: Readonly<NgModuleResolution>): CompileResult[];
96
96
  compilePartial(node: ClassDeclaration, { inj, fac, mod, classMetadata }: Readonly<NgModuleAnalysis>, { injectorImports }: Readonly<NgModuleResolution>): CompileResult[];
97
- compileLocal(node: ClassDeclaration, { inj, mod, fac, classMetadata, declarations, remoteScopesMayRequireCycleProtection }: Readonly<NgModuleAnalysis>): CompileResult[];
97
+ compileLocal(node: ClassDeclaration, { inj, mod, fac, classMetadata, declarations, remoteScopesMayRequireCycleProtection, }: Readonly<NgModuleAnalysis>): CompileResult[];
98
98
  /**
99
99
  * Add class metadata statements, if provided, to the `ngModuleStatements`.
100
100
  */
@@ -6,7 +6,7 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  export { COMPILER_ERRORS_WITH_GUIDES } from './src/docs';
9
- export { addDiagnosticChain, FatalDiagnosticError, isFatalDiagnosticError, isLocalCompilationDiagnostics, makeDiagnostic, makeDiagnosticChain, makeRelatedInformation } from './src/error';
9
+ export { addDiagnosticChain, FatalDiagnosticError, isFatalDiagnosticError, isLocalCompilationDiagnostics, makeDiagnostic, makeDiagnosticChain, makeRelatedInformation, } from './src/error';
10
10
  export { ErrorCode } from './src/error_code';
11
11
  export { ERROR_DETAILS_PAGE_BASE_URL } from './src/error_details_base_url';
12
12
  export { ExtendedTemplateDiagnosticName } from './src/extended_template_diagnostic_name';
@@ -6,8 +6,8 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  export { NgtscCompilerHost } from './src/compiler_host';
9
- export { absoluteFrom, absoluteFromSourceFile, basename, dirname, getFileSystem, isLocalRelativePath, isRoot, isRooted, join, relative, relativeFrom, resolve, setFileSystem, toRelativeImport } from './src/helpers';
9
+ export { absoluteFrom, absoluteFromSourceFile, basename, dirname, getFileSystem, isLocalRelativePath, isRoot, isRooted, join, relative, relativeFrom, resolve, setFileSystem, toRelativeImport, } from './src/helpers';
10
10
  export { LogicalFileSystem, LogicalProjectPath } from './src/logical';
11
11
  export { NodeJSFileSystem } from './src/node_js_file_system';
12
- export { AbsoluteFsPath, FileStats, FileSystem, PathManipulation, PathSegment, PathString, ReadonlyFileSystem } from './src/types';
12
+ export { AbsoluteFsPath, FileStats, FileSystem, PathManipulation, PathSegment, PathString, ReadonlyFileSystem, } from './src/types';
13
13
  export { getSourceFileOrError } from './src/util';
@@ -5,14 +5,14 @@
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
- export { AliasingHost, AliasStrategy, PrivateExportAliasingHost, UnifiedModulesAliasingHost } from './src/alias';
9
- export { ImportRewriter, NoopImportRewriter, R3SymbolsImportRewriter, validateAndRewriteCoreSymbol } from './src/core';
8
+ export { AliasingHost, AliasStrategy, PrivateExportAliasingHost, UnifiedModulesAliasingHost, } from './src/alias';
9
+ export { ImportRewriter, NoopImportRewriter, R3SymbolsImportRewriter, validateAndRewriteCoreSymbol, } from './src/core';
10
10
  export { DefaultImportTracker } from './src/default';
11
11
  export { DeferredSymbolTracker } from './src/deferred_symbol_tracker';
12
- export { AbsoluteModuleStrategy, assertSuccessfulReferenceEmit, EmittedReference, FailedEmitResult, ImportedFile, ImportFlags, LocalIdentifierStrategy, LogicalProjectStrategy, ReferenceEmitKind, ReferenceEmitResult, ReferenceEmitStrategy, ReferenceEmitter, RelativePathStrategy, UnifiedModulesStrategy } from './src/emitter';
12
+ export { AbsoluteModuleStrategy, assertSuccessfulReferenceEmit, EmittedReference, FailedEmitResult, ImportedFile, ImportFlags, LocalIdentifierStrategy, LogicalProjectStrategy, ReferenceEmitKind, ReferenceEmitResult, ReferenceEmitStrategy, ReferenceEmitter, RelativePathStrategy, UnifiedModulesStrategy, } from './src/emitter';
13
13
  export { ImportedSymbolsTracker } from './src/imported_symbols_tracker';
14
14
  export { LocalCompilationExtraImportsTracker } from './src/local_compilation_extra_imports_tracker';
15
- export { AliasImportDeclaration, isAliasImportDeclaration, loadIsReferencedAliasDeclarationPatch } from './src/patch_alias_reference_resolution';
15
+ export { AliasImportDeclaration, isAliasImportDeclaration, loadIsReferencedAliasDeclarationPatch, } from './src/patch_alias_reference_resolution';
16
16
  export { Reexport } from './src/reexport';
17
17
  export { OwningModule, Reference } from './src/references';
18
18
  export { ModuleResolver } from './src/resolver';
@@ -7,5 +7,5 @@
7
7
  */
8
8
  export { IncrementalCompilation } from './src/incremental';
9
9
  export { NOOP_INCREMENTAL_BUILD } from './src/noop';
10
- export { AnalyzedIncrementalState, DeltaIncrementalState, FreshIncrementalState, IncrementalState, IncrementalStateKind } from './src/state';
10
+ export { AnalyzedIncrementalState, DeltaIncrementalState, FreshIncrementalState, IncrementalState, IncrementalStateKind, } from './src/state';
11
11
  export * from './src/strategy';
@@ -7,5 +7,5 @@
7
7
  */
8
8
  export { SemanticReference, SemanticSymbol } from './src/api';
9
9
  export { SemanticDepGraph, SemanticDepGraphUpdater } from './src/graph';
10
- export { areTypeParametersEqual, extractSemanticTypeParameters, SemanticTypeParameter } from './src/type_parameters';
10
+ export { areTypeParametersEqual, extractSemanticTypeParameters, SemanticTypeParameter, } from './src/type_parameters';
11
11
  export { isArrayEqual, isReferenceEqual, isSetEqual, isSymbolEqual } from './src/util';
@@ -9,8 +9,8 @@ export * from './src/api';
9
9
  export { DtsMetadataReader } from './src/dts';
10
10
  export { flattenInheritedDirectiveMetadata } from './src/inheritance';
11
11
  export { CompoundMetadataRegistry, LocalMetadataRegistry } from './src/registry';
12
- export { ResourceRegistry, Resource, ComponentResources, isExternalResource, ExternalResource } from './src/resource_registry';
13
- export { extractDirectiveTypeCheckMeta, hasInjectableFields, CompoundMetadataReader, isHostDirectiveMetaForGlobalMode } from './src/util';
14
- export { BindingPropertyName, ClassPropertyMapping, ClassPropertyName, InputOrOutput } from './src/property_mapping';
12
+ export { ResourceRegistry, Resource, ComponentResources, isExternalResource, ExternalResource, } from './src/resource_registry';
13
+ export { extractDirectiveTypeCheckMeta, hasInjectableFields, CompoundMetadataReader, isHostDirectiveMetaForGlobalMode, } from './src/util';
14
+ export { BindingPropertyName, ClassPropertyMapping, ClassPropertyName, InputOrOutput, } from './src/property_mapping';
15
15
  export { ExportedProviderStatusResolver } from './src/providers';
16
16
  export { HostDirectivesResolver } from './src/host_directives_resolver';
@@ -9,5 +9,5 @@ export { describeResolvedType, traceDynamicValue } from './src/diagnostics';
9
9
  export { DynamicValue } from './src/dynamic';
10
10
  export { ForeignFunctionResolver, PartialEvaluator } from './src/interface';
11
11
  export { StaticInterpreter } from './src/interpreter';
12
- export { EnumValue, KnownFn, ResolvedValue, ResolvedValueArray, ResolvedValueMap } from './src/result';
12
+ export { EnumValue, KnownFn, ResolvedValue, ResolvedValueArray, ResolvedValueMap, } from './src/result';
13
13
  export { SyntheticValue } from './src/synthetic';
@@ -7,5 +7,5 @@
7
7
  */
8
8
  export * from './src/host';
9
9
  export { typeNodeToValueExpr, entityNameToValue } from './src/type_to_value';
10
- export { TypeScriptReflectionHost, filterToMembersWithDecorator, reflectIdentifierOfDeclaration, reflectNameOfDeclaration, reflectObjectLiteral, reflectTypeEntityToDeclaration } from './src/typescript';
11
- export { isNamedClassDeclaration, isNamedFunctionDeclaration, isNamedVariableDeclaration } from './src/util';
10
+ export { TypeScriptReflectionHost, filterToMembersWithDecorator, reflectIdentifierOfDeclaration, reflectNameOfDeclaration, reflectObjectLiteral, reflectTypeEntityToDeclaration, } from './src/typescript';
11
+ export { isNamedClassDeclaration, isNamedFunctionDeclaration, isNamedVariableDeclaration, } from './src/util';
@@ -5,7 +5,7 @@
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
- export { ComponentScopeKind, ComponentScopeReader, ExportScope, LocalModuleScope, ScopeData, StandaloneScope } from './src/api';
8
+ export { ComponentScopeKind, ComponentScopeReader, ExportScope, LocalModuleScope, ScopeData, StandaloneScope, } from './src/api';
9
9
  export { CompoundComponentScopeReader } from './src/component_scope';
10
10
  export { DtsModuleScopeResolver, MetadataDtsModuleScopeResolver } from './src/dependency';
11
11
  export { DeclarationData, LocalModuleScopeRegistry, LocalNgModuleData } from './src/local';
@@ -6,5 +6,5 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  export { ShimAdapter } from './src/adapter';
9
- export { copyFileShimData, isShim, retagAllTsFiles, retagTsFile, sfExtensionData, untagAllTsFiles, untagTsFile } from './src/expando';
9
+ export { copyFileShimData, isShim, retagAllTsFiles, retagTsFile, sfExtensionData, untagAllTsFiles, untagTsFile, } from './src/expando';
10
10
  export { ShimReferenceTagger } from './src/reference_tagger';
@@ -8,6 +8,6 @@
8
8
  export * from './src/api';
9
9
  export { aliasTransformFactory } from './src/alias';
10
10
  export { ClassRecord, TraitCompiler } from './src/compilation';
11
- export { declarationTransformFactory, DtsTransformRegistry, IvyDeclarationDtsTransform } from './src/declaration';
12
- export { AnalyzedTrait, PendingTrait, ResolvedTrait, SkippedTrait, Trait, TraitState } from './src/trait';
11
+ export { declarationTransformFactory, DtsTransformRegistry, IvyDeclarationDtsTransform, } from './src/declaration';
12
+ export { AnalyzedTrait, PendingTrait, ResolvedTrait, SkippedTrait, Trait, TraitState, } from './src/trait';
13
13
  export { ivyTransformFactory } from './src/transform';
@@ -5,12 +5,12 @@
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
- export { AstFactory, BinaryOperator, LeadingComment, ObjectLiteralProperty, SourceMapLocation, SourceMapRange, TemplateElement, TemplateLiteral, UnaryOperator, VariableDeclarationType } from './src/api/ast_factory';
8
+ export { AstFactory, BinaryOperator, LeadingComment, ObjectLiteralProperty, SourceMapLocation, SourceMapRange, TemplateElement, TemplateLiteral, UnaryOperator, VariableDeclarationType, } from './src/api/ast_factory';
9
9
  export { ImportGenerator, ImportRequest } from './src/api/import_generator';
10
10
  export { Context } from './src/context';
11
- export { ImportManager, ImportManagerConfig, presetImportManagerForceNamespaceImports } from './src/import_manager/import_manager';
12
- export { ExpressionTranslatorVisitor, RecordWrappedNodeFn, TranslatorOptions } from './src/translator';
11
+ export { ImportManager, ImportManagerConfig, presetImportManagerForceNamespaceImports, } from './src/import_manager/import_manager';
12
+ export { ExpressionTranslatorVisitor, RecordWrappedNodeFn, TranslatorOptions, } from './src/translator';
13
13
  export { canEmitType, TypeEmitter, TypeReferenceTranslator } from './src/type_emitter';
14
14
  export { translateType } from './src/type_translator';
15
- export { attachComments, createTemplateMiddle, createTemplateTail, TypeScriptAstFactory } from './src/typescript_ast_factory';
15
+ export { attachComments, createTemplateMiddle, createTemplateTail, TypeScriptAstFactory, } from './src/typescript_ast_factory';
16
16
  export { translateExpression, translateStatement } from './src/typescript_translator';
@@ -294,6 +294,10 @@ export interface TypeCheckingConfig {
294
294
  * Whether the type of two-way bindings should be widened to allow `WritableSignal`.
295
295
  */
296
296
  allowSignalsInTwoWayBindings: boolean;
297
+ /**
298
+ * Whether to descend into the bodies of control flow blocks (`@if`, `@switch` and `@for`).
299
+ */
300
+ checkControlFlowBodies: boolean;
297
301
  }
298
302
  export type TemplateSourceMapping = DirectTemplateSourceMapping | IndirectTemplateSourceMapping | ExternalTemplateSourceMapping;
299
303
  /**
@@ -13,4 +13,4 @@ export declare const NULL_AS_ANY: ts.AsExpression;
13
13
  * Convert an `AST` to TypeScript code directly, without going through an intermediate `Expression`
14
14
  * AST.
15
15
  */
16
- export declare function astToTypescript(ast: AST, maybeResolve: (ast: AST) => (ts.Expression | null), config: TypeCheckingConfig): ts.Expression;
16
+ export declare function astToTypescript(ast: AST, maybeResolve: (ast: AST) => ts.Expression | null, config: TypeCheckingConfig): ts.Expression;
@@ -30,7 +30,7 @@ export interface PerformCompilationResult {
30
30
  emitResult?: ts.EmitResult;
31
31
  }
32
32
  export declare function exitCodeFromResult(diags: ReadonlyArray<ts.Diagnostic> | undefined): number;
33
- export declare function performCompilation<CbEmitRes extends ts.EmitResult = ts.EmitResult>({ rootNames, options, host, oldProgram, emitCallback, mergeEmitResultsCallback, gatherDiagnostics, customTransformers, emitFlags, forceEmit, modifiedResourceFiles }: {
33
+ export declare function performCompilation<CbEmitRes extends ts.EmitResult = ts.EmitResult>({ rootNames, options, host, oldProgram, emitCallback, mergeEmitResultsCallback, gatherDiagnostics, customTransformers, emitFlags, forceEmit, modifiedResourceFiles, }: {
34
34
  rootNames: string[];
35
35
  options: api.CompilerOptions;
36
36
  host?: api.CompilerHost;
@@ -8,7 +8,7 @@
8
8
  import ts from 'typescript';
9
9
  import { CompilerHost, CompilerOptions } from './api';
10
10
  export declare function setWrapHostForTest(wrapFn: ((host: ts.CompilerHost) => ts.CompilerHost) | null): void;
11
- export declare function createCompilerHost({ options, tsHost }: {
11
+ export declare function createCompilerHost({ options, tsHost, }: {
12
12
  options: CompilerOptions;
13
13
  tsHost?: ts.CompilerHost;
14
14
  }): CompilerHost;
@@ -6,7 +6,7 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import { CompilerHost, CompilerOptions, Program } from './api';
9
- export declare function createProgram({ rootNames, options, host, oldProgram }: {
9
+ export declare function createProgram({ rootNames, options, host, oldProgram, }: {
10
10
  rootNames: ReadonlyArray<string>;
11
11
  options: CompilerOptions;
12
12
  host: CompilerHost;
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../packages/compiler-cli/src/ngtsc/file_system/src/util.ts", "../../../../../../packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.ts", "../../../../../../packages/compiler-cli/src/ngtsc/file_system/src/helpers.ts", "../../../../../../packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.ts", "../../../../../../packages/compiler-cli/src/ngtsc/file_system/src/logical.ts", "../../../../../../packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.ts"],
4
- "mappings": ";;;;;;;;;AAUA,IAAM,sBAAsB;AAKtB,SAAU,oBAAoB,MAAY;AAE9C,SAAO,KAAK,QAAQ,OAAO,GAAG;AAChC;AAKM,SAAU,eAAqC,MAAO;AAC1D,SAAO,KAAK,QAAQ,qBAAqB,EAAE;AAC7C;AAEM,SAAU,qBAAqB,SAAqB,UAAwB;AAChF,QAAM,KAAK,QAAQ,cAAc,QAAQ;AACzC,MAAI,OAAO,QAAW;AACpB,UAAM,IAAI,MAAM,6BAA6B,mCACzC,QAAQ,eAAc,EAAG,IAAI,CAAAA,QAAMA,IAAG,QAAQ,EAAE,KAAK,IAAI,GAAG;EAClE;AACA,SAAO;AACT;;;ACjBM,IAAO,oBAAP,MAAwB;EAC5B,OAAO,MAAoB;AACzB,UAAM,UAAS;EACjB;EACA,SAAS,MAAoB;AAC3B,UAAM,UAAS;EACjB;EACA,eAAe,MAAoB;AACjC,UAAM,UAAS;EACjB;EACA,UAAU,MAAsB,MAAyB,WAAmB;AAC1E,UAAM,UAAS;EACjB;EACA,WAAW,MAAoB;AAC7B,UAAM,UAAS;EACjB;EACA,QAAQ,QAAwB,MAAoB;AAClD,UAAM,UAAS;EACjB;EACA,QAAQ,MAAoB;AAC1B,UAAM,UAAS;EACjB;EACA,MAAM,MAAoB;AACxB,UAAM,UAAS;EACjB;EACA,KAAK,MAAoB;AACvB,UAAM,UAAS;EACjB;EACA,MAAG;AACD,UAAM,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