@angular/compiler-cli 18.0.1 → 18.0.3

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 (40) hide show
  1. package/bundles/{chunk-ZLHOM56K.js → chunk-7E6Q23KF.js} +172 -39
  2. package/bundles/chunk-7E6Q23KF.js.map +6 -0
  3. package/bundles/{chunk-LDI6GWO5.js → chunk-DYQ2FDEK.js} +2 -2
  4. package/bundles/{chunk-CDSIZK6E.js → chunk-E2VPC2QT.js} +18 -17
  5. package/bundles/{chunk-CDSIZK6E.js.map → chunk-E2VPC2QT.js.map} +1 -1
  6. package/bundles/{chunk-27KMND5I.js → chunk-KBGMAHKE.js} +3 -3
  7. package/bundles/{chunk-6AZ42I2O.js → chunk-SFKDQKE5.js} +3 -1
  8. package/bundles/{chunk-6AZ42I2O.js.map → chunk-SFKDQKE5.js.map} +1 -1
  9. package/bundles/{chunk-TPUY2KMQ.js → chunk-VE7PCF6B.js} +4 -1
  10. package/bundles/chunk-VE7PCF6B.js.map +6 -0
  11. package/bundles/{chunk-IFIN3A3P.js → chunk-Y4KWPMGX.js} +3 -3
  12. package/bundles/index.js +6 -6
  13. package/bundles/linker/babel/index.js +2 -2
  14. package/bundles/linker/index.js +2 -2
  15. package/bundles/private/migrations.js +3 -3
  16. package/bundles/private/tooling.js +3 -3
  17. package/bundles/src/bin/ng_xi18n.js +5 -5
  18. package/bundles/src/bin/ngc.js +5 -5
  19. package/bundles_metadata.json +1 -1
  20. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  21. package/package.json +4 -4
  22. package/src/ngtsc/annotations/component/src/handler.d.ts +2 -1
  23. package/src/ngtsc/annotations/component/src/resources.d.ts +1 -0
  24. package/src/ngtsc/core/src/compiler.d.ts +1 -0
  25. package/src/ngtsc/diagnostics/src/error_code.d.ts +6 -0
  26. package/src/ngtsc/docs/src/entities.d.ts +1 -0
  27. package/src/ngtsc/indexer/src/api.d.ts +8 -3
  28. package/src/ngtsc/typecheck/api/checker.d.ts +2 -2
  29. package/src/ngtsc/typecheck/api/completion.d.ts +15 -4
  30. package/src/ngtsc/typecheck/api/symbols.d.ts +28 -3
  31. package/src/ngtsc/typecheck/src/checker.d.ts +2 -2
  32. package/src/ngtsc/typecheck/src/oob.d.ts +16 -1
  33. package/src/ngtsc/typecheck/src/template_symbol_builder.d.ts +4 -3
  34. package/src/ngtsc/typecheck/src/ts_util.d.ts +1 -1
  35. package/src/ngtsc/typecheck/src/type_check_block.d.ts +13 -2
  36. package/bundles/chunk-TPUY2KMQ.js.map +0 -6
  37. package/bundles/chunk-ZLHOM56K.js.map +0 -6
  38. /package/bundles/{chunk-LDI6GWO5.js.map → chunk-DYQ2FDEK.js.map} +0 -0
  39. /package/bundles/{chunk-27KMND5I.js.map → chunk-KBGMAHKE.js.map} +0 -0
  40. /package/bundles/{chunk-IFIN3A3P.js.map → chunk-Y4KWPMGX.js.map} +0 -0
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-ZLHOM56K.js";
15
+ } from "./chunk-7E6Q23KF.js";
16
16
 
17
17
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/main.mjs
18
18
  import ts2 from "typescript";
@@ -363,4 +363,4 @@ export {
363
363
  * Use of this source code is governed by an MIT-style license that can be
364
364
  * found in the LICENSE file at https://angular.io/license
365
365
  */
366
- //# sourceMappingURL=chunk-LDI6GWO5.js.map
366
+ //# sourceMappingURL=chunk-DYQ2FDEK.js.map
@@ -34,7 +34,7 @@ import {
34
34
  translateStatement,
35
35
  translateType,
36
36
  typeNodeToValueExpr
37
- } from "./chunk-TPUY2KMQ.js";
37
+ } from "./chunk-VE7PCF6B.js";
38
38
  import {
39
39
  PerfEvent,
40
40
  PerfPhase
@@ -6590,27 +6590,25 @@ function extractTemplate(node, template, evaluator, depTracker, resourceLoader,
6590
6590
  }
6591
6591
  function parseExtractedTemplate(template, sourceStr, sourceParseRange, escapedString, sourceMapUrl, options) {
6592
6592
  const i18nNormalizeLineEndingsInICUs = escapedString || options.i18nNormalizeLineEndingsInICUs;
6593
- const parsedTemplate = parseTemplate(sourceStr, sourceMapUrl != null ? sourceMapUrl : "", {
6594
- preserveWhitespaces: template.preserveWhitespaces,
6593
+ const commonParseOptions = {
6595
6594
  interpolationConfig: template.interpolationConfig,
6596
6595
  range: sourceParseRange != null ? sourceParseRange : void 0,
6597
- escapedString,
6598
6596
  enableI18nLegacyMessageIdFormat: options.enableI18nLegacyMessageIdFormat,
6599
6597
  i18nNormalizeLineEndingsInICUs,
6600
6598
  alwaysAttemptHtmlToR3AstConversion: options.usePoisonedData,
6601
- enableBlockSyntax: options.enableBlockSyntax
6599
+ escapedString,
6600
+ enableBlockSyntax: options.enableBlockSyntax,
6601
+ enableLetSyntax: options.enableLetSyntax
6602
+ };
6603
+ const parsedTemplate = parseTemplate(sourceStr, sourceMapUrl != null ? sourceMapUrl : "", {
6604
+ ...commonParseOptions,
6605
+ preserveWhitespaces: template.preserveWhitespaces
6602
6606
  });
6603
6607
  const { nodes: diagNodes } = parseTemplate(sourceStr, sourceMapUrl != null ? sourceMapUrl : "", {
6608
+ ...commonParseOptions,
6604
6609
  preserveWhitespaces: true,
6605
6610
  preserveLineEndings: true,
6606
- interpolationConfig: template.interpolationConfig,
6607
- range: sourceParseRange != null ? sourceParseRange : void 0,
6608
- escapedString,
6609
- enableI18nLegacyMessageIdFormat: options.enableI18nLegacyMessageIdFormat,
6610
- i18nNormalizeLineEndingsInICUs,
6611
- leadingTriviaChars: [],
6612
- alwaysAttemptHtmlToR3AstConversion: options.usePoisonedData,
6613
- enableBlockSyntax: options.enableBlockSyntax
6611
+ leadingTriviaChars: []
6614
6612
  });
6615
6613
  return {
6616
6614
  ...parsedTemplate,
@@ -6993,7 +6991,7 @@ var EMPTY_ARRAY2 = [];
6993
6991
  var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
6994
6992
  var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
6995
6993
  var ComponentDecoratorHandler = class {
6996
- constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, importTracker, includeClassMetadata, compilationMode, deferredSymbolTracker, forbidOrphanRendering, enableBlockSyntax, localCompilationExtraImportsTracker) {
6994
+ constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, importTracker, includeClassMetadata, compilationMode, deferredSymbolTracker, forbidOrphanRendering, enableBlockSyntax, enableLetSyntax, localCompilationExtraImportsTracker) {
6997
6995
  this.reflector = reflector;
6998
6996
  this.evaluator = evaluator;
6999
6997
  this.metaRegistry = metaRegistry;
@@ -7029,6 +7027,7 @@ var ComponentDecoratorHandler = class {
7029
7027
  this.deferredSymbolTracker = deferredSymbolTracker;
7030
7028
  this.forbidOrphanRendering = forbidOrphanRendering;
7031
7029
  this.enableBlockSyntax = enableBlockSyntax;
7030
+ this.enableLetSyntax = enableLetSyntax;
7032
7031
  this.localCompilationExtraImportsTracker = localCompilationExtraImportsTracker;
7033
7032
  this.literalCache = /* @__PURE__ */ new Map();
7034
7033
  this.elementSchemaRegistry = new DomElementSchemaRegistry();
@@ -7040,7 +7039,8 @@ var ComponentDecoratorHandler = class {
7040
7039
  enableI18nLegacyMessageIdFormat: this.enableI18nLegacyMessageIdFormat,
7041
7040
  i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
7042
7041
  usePoisonedData: this.usePoisonedData,
7043
- enableBlockSyntax: this.enableBlockSyntax
7042
+ enableBlockSyntax: this.enableBlockSyntax,
7043
+ enableLetSyntax: this.enableLetSyntax
7044
7044
  };
7045
7045
  }
7046
7046
  detect(node, decorators) {
@@ -7211,7 +7211,8 @@ var ComponentDecoratorHandler = class {
7211
7211
  enableI18nLegacyMessageIdFormat: this.enableI18nLegacyMessageIdFormat,
7212
7212
  i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
7213
7213
  usePoisonedData: this.usePoisonedData,
7214
- enableBlockSyntax: this.enableBlockSyntax
7214
+ enableBlockSyntax: this.enableBlockSyntax,
7215
+ enableLetSyntax: this.enableLetSyntax
7215
7216
  }, this.compilationMode);
7216
7217
  }
7217
7218
  const templateResource = template.declaration.isInline ? { path: null, expression: component.get("template") } : {
@@ -8450,4 +8451,4 @@ export {
8450
8451
  * Use of this source code is governed by an MIT-style license that can be
8451
8452
  * found in the LICENSE file at https://angular.io/license
8452
8453
  */
8453
- //# sourceMappingURL=chunk-CDSIZK6E.js.map
8454
+ //# sourceMappingURL=chunk-E2VPC2QT.js.map