@angular/compiler-cli 17.0.7 → 17.0.9

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.
@@ -267,7 +267,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
267
267
 
268
268
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/util.mjs
269
269
  import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
270
- var PLACEHOLDER_VERSION = "17.0.7";
270
+ var PLACEHOLDER_VERSION = "17.0.9";
271
271
  function wrapReference(wrapped) {
272
272
  return { value: wrapped, type: wrapped };
273
273
  }
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-KDLK7PF4.js";
15
+ } from "./chunk-LDXHWSVM.js";
16
16
 
17
17
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/main.mjs
18
18
  import ts2 from "typescript";
@@ -342,4 +342,4 @@ export {
342
342
  * Use of this source code is governed by an MIT-style license that can be
343
343
  * found in the LICENSE file at https://angular.io/license
344
344
  */
345
- //# sourceMappingURL=chunk-T6CN22EQ.js.map
345
+ //# sourceMappingURL=chunk-HVFATYMH.js.map
@@ -7154,10 +7154,12 @@ var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
7154
7154
  return [];
7155
7155
  }
7156
7156
  };
7157
+ function isSignal(symbol) {
7158
+ return ((symbol == null ? void 0 : symbol.escapedName) === "WritableSignal" || (symbol == null ? void 0 : symbol.escapedName) === "Signal") && symbol.parent.escapedName.includes("@angular/core");
7159
+ }
7157
7160
  function buildDiagnosticForSignal(ctx, node, component) {
7158
- var _a, _b;
7159
7161
  const symbol = ctx.templateTypeChecker.getSymbolOfNode(node, component);
7160
- if ((symbol == null ? void 0 : symbol.kind) === SymbolKind.Expression && (((_a = symbol.tsType.symbol) == null ? void 0 : _a.escapedName) === "WritableSignal" || ((_b = symbol.tsType.symbol) == null ? void 0 : _b.escapedName) === "Signal") && symbol.tsType.symbol.parent.escapedName.includes("@angular/core")) {
7162
+ if ((symbol == null ? void 0 : symbol.kind) === SymbolKind.Expression && (isSignal(symbol.tsType.symbol) || isSignal(symbol.tsType.aliasSymbol))) {
7161
7163
  const templateMapping = ctx.templateTypeChecker.getTemplateMappingAtTcbLocation(symbol.tcbLocation);
7162
7164
  const errorString = `${node.name} is a function and should be invoked: ${node.name}()`;
7163
7165
  const diagnostic = ctx.makeTemplateDiagnostic(templateMapping.span, errorString);
@@ -8869,4 +8871,4 @@ export {
8869
8871
  * Use of this source code is governed by an MIT-style license that can be
8870
8872
  * found in the LICENSE file at https://angular.io/license
8871
8873
  */
8872
- //# sourceMappingURL=chunk-KDLK7PF4.js.map
8874
+ //# sourceMappingURL=chunk-LDXHWSVM.js.map