@angular/compiler-cli 20.2.0-next.2 → 20.2.0-next.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.
@@ -455,7 +455,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
455
455
  // packages/compiler-cli/linker/src/file_linker/partial_linkers/util.js
456
456
  import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
457
457
  import semver from "semver";
458
- var PLACEHOLDER_VERSION = "20.2.0-next.2";
458
+ var PLACEHOLDER_VERSION = "20.2.0-next.3";
459
459
  function wrapReference(wrapped) {
460
460
  return { value: wrapped, type: wrapped };
461
461
  }
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-MQ6W6B7H.js";
15
+ } from "./chunk-ILJUWTJN.js";
16
16
 
17
17
  // packages/compiler-cli/src/main.js
18
18
  import ts2 from "typescript";
@@ -3428,29 +3428,25 @@ var UninvokedFunctionInTextInterpolation = class extends TemplateCheckWithVisito
3428
3428
  code = ErrorCode.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION;
3429
3429
  visitNode(ctx, component, node) {
3430
3430
  if (node instanceof Interpolation2) {
3431
- return node.expressions.flatMap((item) => assertExpressionInvoked2(item, component, node.sourceSpan, ctx));
3431
+ return node.expressions.flatMap((item) => assertExpressionInvoked2(item, component, ctx));
3432
3432
  }
3433
3433
  return [];
3434
3434
  }
3435
3435
  };
3436
- function assertExpressionInvoked2(expression, component, sourceSpan, ctx) {
3436
+ function assertExpressionInvoked2(expression, component, ctx) {
3437
3437
  if (!(expression instanceof PropertyRead5) && !(expression instanceof SafePropertyRead4)) {
3438
3438
  return [];
3439
3439
  }
3440
3440
  const symbol = ctx.templateTypeChecker.getSymbolOfNode(expression, component);
3441
3441
  if (symbol !== null && symbol.kind === SymbolKind.Expression) {
3442
3442
  if (symbol.tsType.getCallSignatures()?.length > 0) {
3443
- const fullExpressionText = generateStringFromExpression3(expression, sourceSpan.toString());
3444
- const errorString = `Function in text interpolation should be invoked: ${fullExpressionText}()`;
3443
+ const errorString = `Function in text interpolation should be invoked: ${expression.name}()`;
3445
3444
  const templateMapping = ctx.templateTypeChecker.getSourceMappingAtTcbLocation(symbol.tcbLocation);
3446
3445
  return [ctx.makeTemplateDiagnostic(templateMapping.span, errorString)];
3447
3446
  }
3448
3447
  }
3449
3448
  return [];
3450
3449
  }
3451
- function generateStringFromExpression3(expression, source) {
3452
- return source.substring(expression.span.start, expression.span.end);
3453
- }
3454
3450
  var factory15 = {
3455
3451
  code: ErrorCode.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,
3456
3452
  name: ExtendedTemplateDiagnosticName.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,
package/bundles/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  isTsDiagnostic,
29
29
  performCompilation,
30
30
  readConfiguration
31
- } from "./chunk-MQ6W6B7H.js";
31
+ } from "./chunk-ILJUWTJN.js";
32
32
  import {
33
33
  ConsoleLogger,
34
34
  LogLevel
@@ -77,7 +77,7 @@ import "./chunk-DWRM7PIK.js";
77
77
 
78
78
  // packages/compiler-cli/src/version.js
79
79
  import { Version } from "@angular/compiler";
80
- var VERSION = new Version("20.2.0-next.2");
80
+ var VERSION = new Version("20.2.0-next.3");
81
81
 
82
82
  // packages/compiler-cli/private/tooling.js
83
83
  var GLOBAL_DEFS_FOR_TERSER = {
@@ -6,10 +6,10 @@
6
6
  import {
7
7
  main,
8
8
  readCommandLineAndConfiguration
9
- } from "../../chunk-UVWZGTBX.js";
9
+ } from "../../chunk-HMCJWY2O.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-MQ6W6B7H.js";
12
+ } from "../../chunk-ILJUWTJN.js";
13
13
  import "../../chunk-56QTHZ7G.js";
14
14
  import "../../chunk-5LTXARS2.js";
15
15
  import "../../chunk-I2BHWRAU.js";
@@ -5,8 +5,8 @@
5
5
 
6
6
  import {
7
7
  main
8
- } from "../../chunk-UVWZGTBX.js";
9
- import "../../chunk-MQ6W6B7H.js";
8
+ } from "../../chunk-HMCJWY2O.js";
9
+ import "../../chunk-ILJUWTJN.js";
10
10
  import "../../chunk-56QTHZ7G.js";
11
11
  import "../../chunk-5LTXARS2.js";
12
12
  import "../../chunk-I2BHWRAU.js";
@@ -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 = "20.2.0-next.2";
10
+ export declare const PLACEHOLDER_VERSION = "20.2.0-next.3";
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": "20.2.0-next.2",
3
+ "version": "20.2.0-next.3",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -48,7 +48,7 @@
48
48
  "yargs": "^18.0.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@angular/compiler": "20.2.0-next.2",
51
+ "@angular/compiler": "20.2.0-next.3",
52
52
  "typescript": ">=5.8 <6.0"
53
53
  },
54
54
  "peerDependenciesMeta": {