@angular/compiler-cli 20.2.0-next.0 → 20.2.0-next.1

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 (49) hide show
  1. package/bundles/{chunk-SEKYV57I.js → chunk-6HOSNZU5.js} +2 -3
  2. package/bundles/{chunk-FPHHL4UV.js → chunk-BPDNYZBC.js} +253 -49
  3. package/bundles/chunk-DWRM7PIK.js +14 -0
  4. package/bundles/{chunk-JXYBFWGA.js → chunk-F7QVREVY.js} +19 -7
  5. package/bundles/{chunk-TPEB2IXF.js → chunk-GWZQLAGK.js} +35 -7
  6. package/bundles/{chunk-PML5JK7B.js → chunk-HYJ2H3FU.js} +120 -7
  7. package/bundles/{chunk-6ECVYRSU.js → chunk-I2BHWRAU.js} +11 -6
  8. package/bundles/{chunk-5TMRGUHP.js → chunk-PLUBZWSY.js} +27 -11
  9. package/bundles/{chunk-5JF7HF3W.js → chunk-SZY7NM6F.js} +2 -3
  10. package/bundles/{chunk-UZOSFHTN.js → chunk-TMIC4MKN.js} +2312 -736
  11. package/bundles/{chunk-YNE6T2TY.js → chunk-U3R42CLJ.js} +569 -103
  12. package/bundles/index.js +34 -19
  13. package/bundles/linker/babel/index.js +70 -18
  14. package/bundles/linker/index.js +11 -5
  15. package/bundles/private/localize.js +5 -6
  16. package/bundles/private/migrations.js +5 -6
  17. package/bundles/private/tooling.js +27 -11
  18. package/bundles/src/bin/ng_xi18n.js +11 -12
  19. package/bundles/src/bin/ngc.js +9 -10
  20. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  21. package/package.json +3 -3
  22. package/src/ngtsc/perf/src/api.d.ts +24 -16
  23. package/src/ngtsc/typecheck/api/api.d.ts +1 -1
  24. package/src/ngtsc/typecheck/api/checker.d.ts +15 -0
  25. package/src/ngtsc/typecheck/diagnostics/src/diagnostic.d.ts +7 -1
  26. package/src/ngtsc/typecheck/src/checker.d.ts +2 -0
  27. package/src/ngtsc/typecheck/src/ts_util.d.ts +7 -0
  28. package/bundles/chunk-2FHBFXPC.js +0 -34
  29. package/bundles/chunk-2FHBFXPC.js.map +0 -6
  30. package/bundles/chunk-5JF7HF3W.js.map +0 -6
  31. package/bundles/chunk-5TMRGUHP.js.map +0 -6
  32. package/bundles/chunk-6ECVYRSU.js.map +0 -6
  33. package/bundles/chunk-FPHHL4UV.js.map +0 -6
  34. package/bundles/chunk-JXYBFWGA.js.map +0 -6
  35. package/bundles/chunk-KPQ72R34.js +0 -23
  36. package/bundles/chunk-KPQ72R34.js.map +0 -6
  37. package/bundles/chunk-PML5JK7B.js.map +0 -6
  38. package/bundles/chunk-SEKYV57I.js.map +0 -6
  39. package/bundles/chunk-TPEB2IXF.js.map +0 -6
  40. package/bundles/chunk-UZOSFHTN.js.map +0 -6
  41. package/bundles/chunk-YNE6T2TY.js.map +0 -6
  42. package/bundles/index.js.map +0 -6
  43. package/bundles/linker/babel/index.js.map +0 -6
  44. package/bundles/linker/index.js.map +0 -6
  45. package/bundles/private/localize.js.map +0 -6
  46. package/bundles/private/migrations.js.map +0 -6
  47. package/bundles/private/tooling.js.map +0 -6
  48. package/bundles/src/bin/ng_xi18n.js.map +0 -6
  49. package/bundles/src/bin/ngc.js.map +0 -6
package/bundles/index.js CHANGED
@@ -28,21 +28,16 @@ import {
28
28
  isTsDiagnostic,
29
29
  performCompilation,
30
30
  readConfiguration
31
- } from "./chunk-YNE6T2TY.js";
31
+ } from "./chunk-U3R42CLJ.js";
32
32
  import {
33
33
  ConsoleLogger,
34
34
  LogLevel
35
- } from "./chunk-SEKYV57I.js";
36
- import {
37
- GLOBAL_DEFS_FOR_TERSER,
38
- GLOBAL_DEFS_FOR_TERSER_WITH_AOT,
39
- constructorParametersDownlevelTransform
40
- } from "./chunk-2FHBFXPC.js";
35
+ } from "./chunk-6HOSNZU5.js";
41
36
  import {
42
37
  angularJitApplicationTransform,
43
38
  getDownlevelDecoratorsTransform,
44
39
  getInitializerApiJitTransform
45
- } from "./chunk-5TMRGUHP.js";
40
+ } from "./chunk-PLUBZWSY.js";
46
41
  import {
47
42
  ActivePerfRecorder,
48
43
  ErrorCode,
@@ -51,8 +46,8 @@ import {
51
46
  TsCreateProgramDriver,
52
47
  isLocalCompilationDiagnostics,
53
48
  ngErrorCode
54
- } from "./chunk-UZOSFHTN.js";
55
- import "./chunk-6ECVYRSU.js";
49
+ } from "./chunk-TMIC4MKN.js";
50
+ import "./chunk-I2BHWRAU.js";
56
51
  import {
57
52
  InvalidFileSystem,
58
53
  LogicalFileSystem,
@@ -74,17 +69,30 @@ import {
74
69
  resolve,
75
70
  setFileSystem,
76
71
  toRelativeImport
77
- } from "./chunk-TPEB2IXF.js";
72
+ } from "./chunk-GWZQLAGK.js";
78
73
  import {
79
74
  NodeJSFileSystem
80
- } from "./chunk-5JF7HF3W.js";
81
- import "./chunk-KPQ72R34.js";
75
+ } from "./chunk-SZY7NM6F.js";
76
+ import "./chunk-DWRM7PIK.js";
82
77
 
83
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.js
78
+ // packages/compiler-cli/src/version.js
84
79
  import { Version } from "@angular/compiler";
85
- var VERSION = new Version("20.2.0-next.0");
80
+ var VERSION = new Version("20.2.0-next.1");
81
+
82
+ // packages/compiler-cli/private/tooling.js
83
+ var GLOBAL_DEFS_FOR_TERSER = {
84
+ ngDevMode: false,
85
+ ngI18nClosureMode: false
86
+ };
87
+ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = {
88
+ ...GLOBAL_DEFS_FOR_TERSER,
89
+ ngJitMode: false
90
+ };
91
+ var constructorParametersDownlevelTransform = (program, isCore = false) => {
92
+ return angularJitApplicationTransform(program, isCore);
93
+ };
86
94
 
87
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/tsc_plugin.js
95
+ // packages/compiler-cli/src/ngtsc/tsc_plugin.js
88
96
  var NgTscPlugin = class {
89
97
  ngOptions;
90
98
  name = "ngtsc";
@@ -103,7 +111,13 @@ var NgTscPlugin = class {
103
111
  }
104
112
  wrapHost(host, inputFiles, options) {
105
113
  this.options = { ...this.ngOptions, ...options };
106
- this.host = NgCompilerHost.wrap(host, inputFiles, this.options, null);
114
+ this.host = NgCompilerHost.wrap(
115
+ host,
116
+ inputFiles,
117
+ this.options,
118
+ /* oldProgram */
119
+ null
120
+ );
107
121
  return this.host;
108
122
  }
109
123
  setupCompilation(program, oldProgram) {
@@ -129,7 +143,9 @@ var NgTscPlugin = class {
129
143
  strategy,
130
144
  programDriver,
131
145
  perfRecorder,
146
+ /* enableTemplateTypeChecker */
132
147
  false,
148
+ /* usePoisonedData */
133
149
  false
134
150
  );
135
151
  } else {
@@ -160,7 +176,7 @@ var NgTscPlugin = class {
160
176
  }
161
177
  };
162
178
 
163
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/index.js
179
+ // packages/compiler-cli/index.ts
164
180
  setFileSystem(new NodeJSFileSystem());
165
181
  export {
166
182
  ConsoleLogger,
@@ -226,4 +242,3 @@ export {
226
242
  * Use of this source code is governed by an MIT-style license that can be
227
243
  * found in the LICENSE file at https://angular.dev/license
228
244
  */
229
- //# sourceMappingURL=index.js.map
@@ -8,22 +8,22 @@ import {
8
8
  LinkerEnvironment,
9
9
  assert,
10
10
  isFatalLinkerError
11
- } from "../../chunk-FPHHL4UV.js";
11
+ } from "../../chunk-BPDNYZBC.js";
12
12
  import {
13
13
  ConsoleLogger,
14
14
  LogLevel
15
- } from "../../chunk-SEKYV57I.js";
16
- import "../../chunk-PML5JK7B.js";
17
- import "../../chunk-6ECVYRSU.js";
15
+ } from "../../chunk-6HOSNZU5.js";
16
+ import "../../chunk-HYJ2H3FU.js";
17
+ import "../../chunk-I2BHWRAU.js";
18
18
  import {
19
19
  NodeJSFileSystem
20
- } from "../../chunk-5JF7HF3W.js";
21
- import "../../chunk-KPQ72R34.js";
20
+ } from "../../chunk-SZY7NM6F.js";
21
+ import "../../chunk-DWRM7PIK.js";
22
22
 
23
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/es2015_linker_plugin.js
23
+ // packages/compiler-cli/linker/babel/src/es2015_linker_plugin.js
24
24
  import { types as t4 } from "@babel/core";
25
25
 
26
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/ast/babel_ast_factory.js
26
+ // packages/compiler-cli/linker/babel/src/ast/babel_ast_factory.js
27
27
  import { types as t } from "@babel/core";
28
28
  var BabelAstFactory = class {
29
29
  sourceUrl;
@@ -66,13 +66,24 @@ var BabelAstFactory = class {
66
66
  createCallExpression(callee, args, pure) {
67
67
  const call = t.callExpression(callee, args);
68
68
  if (pure) {
69
- t.addComment(call, "leading", " @__PURE__ ", false);
69
+ t.addComment(
70
+ call,
71
+ "leading",
72
+ " @__PURE__ ",
73
+ /* line */
74
+ false
75
+ );
70
76
  }
71
77
  return call;
72
78
  }
73
79
  createConditional = t.conditionalExpression;
74
80
  createElementAccess(expression, element) {
75
- return t.memberExpression(expression, element, true);
81
+ return t.memberExpression(
82
+ expression,
83
+ element,
84
+ /* computed */
85
+ true
86
+ );
76
87
  }
77
88
  createExpressionStatement = t.expressionStatement;
78
89
  createFunctionDeclaration(functionName, parameters, body) {
@@ -93,7 +104,12 @@ var BabelAstFactory = class {
93
104
  createIdentifier = t.identifier;
94
105
  createIfStatement = t.ifStatement;
95
106
  createDynamicImport(url) {
96
- return this.createCallExpression(t.import(), [typeof url === "string" ? t.stringLiteral(url) : url], false);
107
+ return this.createCallExpression(
108
+ t.import(),
109
+ [typeof url === "string" ? t.stringLiteral(url) : url],
110
+ false
111
+ /* pure */
112
+ );
97
113
  }
98
114
  createLiteral(value) {
99
115
  if (typeof value === "string") {
@@ -119,7 +135,12 @@ var BabelAstFactory = class {
119
135
  }
120
136
  createParenthesizedExpression = t.parenthesizedExpression;
121
137
  createPropertyAccess(expression, propertyName) {
122
- return t.memberExpression(expression, t.identifier(propertyName), false);
138
+ return t.memberExpression(
139
+ expression,
140
+ t.identifier(propertyName),
141
+ /* computed */
142
+ false
143
+ );
123
144
  }
124
145
  createReturnStatement = t.returnStatement;
125
146
  createTaggedTemplate(tag, template) {
@@ -147,13 +168,18 @@ var BabelAstFactory = class {
147
168
  return node;
148
169
  }
149
170
  node.loc = {
171
+ // Add in the filename so that we can map to external template files.
172
+ // Note that Babel gets confused if you specify a filename when it is the original source
173
+ // file. This happens when the template is inline, in which case just use `undefined`.
150
174
  filename: sourceMapRange.url !== this.sourceUrl ? sourceMapRange.url : void 0,
151
175
  start: {
152
176
  line: sourceMapRange.start.line + 1,
177
+ // lines are 1-based in Babel.
153
178
  column: sourceMapRange.start.column
154
179
  },
155
180
  end: {
156
181
  line: sourceMapRange.end.line + 1,
182
+ // lines are 1-based in Babel.
157
183
  column: sourceMapRange.end.column
158
184
  }
159
185
  };
@@ -166,7 +192,7 @@ function isLExpression(expr) {
166
192
  return t.isLVal(expr);
167
193
  }
168
194
 
169
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/ast/babel_ast_host.js
195
+ // packages/compiler-cli/linker/babel/src/ast/babel_ast_host.js
170
196
  import { types as t2 } from "@babel/core";
171
197
  var BabelAstHost = class {
172
198
  getSymbolName(node) {
@@ -270,6 +296,7 @@ var BabelAstHost = class {
270
296
  }
271
297
  return {
272
298
  startLine: node.loc.start.line - 1,
299
+ // Babel lines are 1-based
273
300
  startCol: node.loc.start.column,
274
301
  startPos: node.start,
275
302
  endPos: node.end
@@ -292,13 +319,28 @@ function isMinifiedBooleanLiteral(node) {
292
319
  return t2.isUnaryExpression(node) && node.prefix && node.operator === "!" && t2.isNumericLiteral(node.argument) && (node.argument.value === 0 || node.argument.value === 1);
293
320
  }
294
321
 
295
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/babel_declaration_scope.js
322
+ // packages/compiler-cli/linker/babel/src/babel_declaration_scope.js
296
323
  import { types as t3 } from "@babel/core";
297
324
  var BabelDeclarationScope = class {
298
325
  declarationScope;
326
+ /**
327
+ * Construct a new `BabelDeclarationScope`.
328
+ *
329
+ * @param declarationScope the Babel scope containing the declaration call expression.
330
+ */
299
331
  constructor(declarationScope) {
300
332
  this.declarationScope = declarationScope;
301
333
  }
334
+ /**
335
+ * Compute the Babel `NodePath` that can be used to reference the lexical scope where any
336
+ * shared constant statements would be inserted.
337
+ *
338
+ * There will only be a shared constant scope if the expression is in an ECMAScript module, or a
339
+ * UMD module. Otherwise `null` is returned to indicate that constant statements must be emitted
340
+ * locally to the generated linked definition, to avoid polluting the global scope.
341
+ *
342
+ * @param expression the expression that points to the Angular core framework import.
343
+ */
302
344
  getConstantScopeRef(expression) {
303
345
  let bindingExpression = expression;
304
346
  while (t3.isMemberExpression(bindingExpression)) {
@@ -319,12 +361,15 @@ var BabelDeclarationScope = class {
319
361
  }
320
362
  };
321
363
 
322
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/es2015_linker_plugin.js
364
+ // packages/compiler-cli/linker/babel/src/es2015_linker_plugin.js
323
365
  function createEs2015LinkerPlugin({ fileSystem, logger, ...options }) {
324
366
  let fileLinker = null;
325
367
  return {
326
368
  visitor: {
327
369
  Program: {
370
+ /**
371
+ * Create a new `FileLinker` as we enter each file (`t.Program` in Babel).
372
+ */
328
373
  enter(_, state) {
329
374
  assertNull(fileLinker);
330
375
  const file = state.file;
@@ -336,6 +381,10 @@ function createEs2015LinkerPlugin({ fileSystem, logger, ...options }) {
336
381
  const linkerEnvironment = LinkerEnvironment.create(fileSystem, logger, new BabelAstHost(), new BabelAstFactory(sourceUrl), options);
337
382
  fileLinker = new FileLinker(linkerEnvironment, sourceUrl, file.code);
338
383
  },
384
+ /**
385
+ * On exiting the file, insert any shared constant statements that were generated during
386
+ * linking of the partial declarations.
387
+ */
339
388
  exit() {
340
389
  assertNotNull(fileLinker);
341
390
  for (const { constantScope, statements } of fileLinker.getConstantStatements()) {
@@ -344,6 +393,10 @@ function createEs2015LinkerPlugin({ fileSystem, logger, ...options }) {
344
393
  fileLinker = null;
345
394
  }
346
395
  },
396
+ /**
397
+ * Test each call expression to see if it is a partial declaration; it if is then replace it
398
+ * with the results of linking the declaration.
399
+ */
347
400
  CallExpression(call, state) {
348
401
  if (fileLinker === null) {
349
402
  return;
@@ -419,7 +472,7 @@ function buildCodeFrameError(file, message, node) {
419
472
  return `${filename}: ${error.message}`;
420
473
  }
421
474
 
422
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/babel_plugin.js
475
+ // packages/compiler-cli/linker/babel/src/babel_plugin.js
423
476
  function defaultLinkerPlugin(api, options) {
424
477
  api.assertVersion(7);
425
478
  return createEs2015LinkerPlugin({
@@ -429,7 +482,7 @@ function defaultLinkerPlugin(api, options) {
429
482
  });
430
483
  }
431
484
 
432
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/index.js
485
+ // packages/compiler-cli/linker/babel/index.ts
433
486
  var babel_default = defaultLinkerPlugin;
434
487
  export {
435
488
  createEs2015LinkerPlugin,
@@ -442,4 +495,3 @@ export {
442
495
  * Use of this source code is governed by an MIT-style license that can be
443
496
  * found in the LICENSE file at https://angular.dev/license
444
497
  */
445
- //# sourceMappingURL=index.js.map
@@ -10,10 +10,10 @@ import {
10
10
  assert,
11
11
  isFatalLinkerError,
12
12
  needsLinking
13
- } from "../chunk-FPHHL4UV.js";
14
- import "../chunk-PML5JK7B.js";
15
- import "../chunk-6ECVYRSU.js";
16
- import "../chunk-KPQ72R34.js";
13
+ } from "../chunk-BPDNYZBC.js";
14
+ import "../chunk-HYJ2H3FU.js";
15
+ import "../chunk-I2BHWRAU.js";
16
+ import "../chunk-DWRM7PIK.js";
17
17
  export {
18
18
  DEFAULT_LINKER_OPTIONS,
19
19
  FatalLinkerError,
@@ -23,4 +23,10 @@ export {
23
23
  isFatalLinkerError,
24
24
  needsLinking
25
25
  };
26
- //# sourceMappingURL=index.js.map
26
+ /**
27
+ * @license
28
+ * Copyright Google LLC All Rights Reserved.
29
+ *
30
+ * Use of this source code is governed by an MIT-style license that can be
31
+ * found in the LICENSE file at https://angular.dev/license
32
+ */
@@ -5,11 +5,11 @@
5
5
  import {
6
6
  ConsoleLogger,
7
7
  LogLevel
8
- } from "../chunk-SEKYV57I.js";
8
+ } from "../chunk-6HOSNZU5.js";
9
9
  import {
10
10
  SourceFile,
11
11
  SourceFileLoader
12
- } from "../chunk-PML5JK7B.js";
12
+ } from "../chunk-HYJ2H3FU.js";
13
13
  import {
14
14
  InvalidFileSystem,
15
15
  LogicalFileSystem,
@@ -31,11 +31,11 @@ import {
31
31
  resolve,
32
32
  setFileSystem,
33
33
  toRelativeImport
34
- } from "../chunk-TPEB2IXF.js";
34
+ } from "../chunk-GWZQLAGK.js";
35
35
  import {
36
36
  NodeJSFileSystem
37
- } from "../chunk-5JF7HF3W.js";
38
- import "../chunk-KPQ72R34.js";
37
+ } from "../chunk-SZY7NM6F.js";
38
+ import "../chunk-DWRM7PIK.js";
39
39
  export {
40
40
  ConsoleLogger,
41
41
  InvalidFileSystem,
@@ -70,4 +70,3 @@ export {
70
70
  * Use of this source code is governed by an MIT-style license that can be
71
71
  * found in the LICENSE file at https://angular.dev/license
72
72
  */
73
- //# sourceMappingURL=localize.js.map
@@ -13,11 +13,11 @@ import {
13
13
  TypeScriptReflectionHost,
14
14
  createForwardRefResolver,
15
15
  reflectObjectLiteral
16
- } from "../chunk-UZOSFHTN.js";
17
- import "../chunk-6ECVYRSU.js";
18
- import "../chunk-TPEB2IXF.js";
19
- import "../chunk-5JF7HF3W.js";
20
- import "../chunk-KPQ72R34.js";
16
+ } from "../chunk-TMIC4MKN.js";
17
+ import "../chunk-I2BHWRAU.js";
18
+ import "../chunk-GWZQLAGK.js";
19
+ import "../chunk-SZY7NM6F.js";
20
+ import "../chunk-DWRM7PIK.js";
21
21
  export {
22
22
  DynamicValue,
23
23
  ImportManager,
@@ -37,4 +37,3 @@ export {
37
37
  * Use of this source code is governed by an MIT-style license that can be
38
38
  * found in the LICENSE file at https://angular.dev/license
39
39
  */
40
- //# sourceMappingURL=migrations.js.map
@@ -3,19 +3,35 @@
3
3
  const require = __cjsCompatRequire(import.meta.url);
4
4
 
5
5
  import {
6
- GLOBAL_DEFS_FOR_TERSER,
7
- GLOBAL_DEFS_FOR_TERSER_WITH_AOT,
8
- constructorParametersDownlevelTransform
9
- } from "../chunk-2FHBFXPC.js";
10
- import "../chunk-5TMRGUHP.js";
11
- import "../chunk-UZOSFHTN.js";
12
- import "../chunk-6ECVYRSU.js";
13
- import "../chunk-TPEB2IXF.js";
14
- import "../chunk-5JF7HF3W.js";
15
- import "../chunk-KPQ72R34.js";
6
+ angularJitApplicationTransform
7
+ } from "../chunk-PLUBZWSY.js";
8
+ import "../chunk-TMIC4MKN.js";
9
+ import "../chunk-I2BHWRAU.js";
10
+ import "../chunk-GWZQLAGK.js";
11
+ import "../chunk-SZY7NM6F.js";
12
+ import "../chunk-DWRM7PIK.js";
13
+
14
+ // packages/compiler-cli/private/tooling.ts
15
+ var GLOBAL_DEFS_FOR_TERSER = {
16
+ ngDevMode: false,
17
+ ngI18nClosureMode: false
18
+ };
19
+ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = {
20
+ ...GLOBAL_DEFS_FOR_TERSER,
21
+ ngJitMode: false
22
+ };
23
+ var constructorParametersDownlevelTransform = (program, isCore = false) => {
24
+ return angularJitApplicationTransform(program, isCore);
25
+ };
16
26
  export {
17
27
  GLOBAL_DEFS_FOR_TERSER,
18
28
  GLOBAL_DEFS_FOR_TERSER_WITH_AOT,
19
29
  constructorParametersDownlevelTransform
20
30
  };
21
- //# sourceMappingURL=tooling.js.map
31
+ /**
32
+ * @license
33
+ * Copyright Google LLC All Rights Reserved.
34
+ *
35
+ * Use of this source code is governed by an MIT-style license that can be
36
+ * found in the LICENSE file at https://angular.dev/license
37
+ */
@@ -6,25 +6,25 @@
6
6
  import {
7
7
  main,
8
8
  readCommandLineAndConfiguration
9
- } from "../../chunk-JXYBFWGA.js";
9
+ } from "../../chunk-F7QVREVY.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-YNE6T2TY.js";
13
- import "../../chunk-5TMRGUHP.js";
14
- import "../../chunk-UZOSFHTN.js";
15
- import "../../chunk-6ECVYRSU.js";
12
+ } from "../../chunk-U3R42CLJ.js";
13
+ import "../../chunk-PLUBZWSY.js";
14
+ import "../../chunk-TMIC4MKN.js";
15
+ import "../../chunk-I2BHWRAU.js";
16
16
  import {
17
17
  setFileSystem
18
- } from "../../chunk-TPEB2IXF.js";
18
+ } from "../../chunk-GWZQLAGK.js";
19
19
  import {
20
20
  NodeJSFileSystem
21
- } from "../../chunk-5JF7HF3W.js";
22
- import "../../chunk-KPQ72R34.js";
21
+ } from "../../chunk-SZY7NM6F.js";
22
+ import "../../chunk-DWRM7PIK.js";
23
23
 
24
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.js
24
+ // packages/compiler-cli/src/bin/ng_xi18n.ts
25
25
  import "reflect-metadata";
26
26
 
27
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/extract_i18n.js
27
+ // packages/compiler-cli/src/extract_i18n.js
28
28
  import yargs from "yargs";
29
29
  function mainXi18n(args2, consoleError = console.error) {
30
30
  const config = readXi18nCommandLineAndConfiguration(args2);
@@ -47,7 +47,7 @@ function readXi18nCommandLineAndConfiguration(args2) {
47
47
  return { ...config, emitFlags: EmitFlags.I18nBundle };
48
48
  }
49
49
 
50
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.js
50
+ // packages/compiler-cli/src/bin/ng_xi18n.ts
51
51
  process.title = "Angular i18n Message Extractor (ng-xi18n)";
52
52
  var args = process.argv.slice(2);
53
53
  setFileSystem(new NodeJSFileSystem());
@@ -59,4 +59,3 @@ process.exitCode = mainXi18n(args);
59
59
  * Use of this source code is governed by an MIT-style license that can be
60
60
  * found in the LICENSE file at https://angular.dev/license
61
61
  */
62
- //# sourceMappingURL=ng_xi18n.js.map
@@ -5,20 +5,20 @@
5
5
 
6
6
  import {
7
7
  main
8
- } from "../../chunk-JXYBFWGA.js";
9
- import "../../chunk-YNE6T2TY.js";
10
- import "../../chunk-5TMRGUHP.js";
11
- import "../../chunk-UZOSFHTN.js";
12
- import "../../chunk-6ECVYRSU.js";
8
+ } from "../../chunk-F7QVREVY.js";
9
+ import "../../chunk-U3R42CLJ.js";
10
+ import "../../chunk-PLUBZWSY.js";
11
+ import "../../chunk-TMIC4MKN.js";
12
+ import "../../chunk-I2BHWRAU.js";
13
13
  import {
14
14
  setFileSystem
15
- } from "../../chunk-TPEB2IXF.js";
15
+ } from "../../chunk-GWZQLAGK.js";
16
16
  import {
17
17
  NodeJSFileSystem
18
- } from "../../chunk-5JF7HF3W.js";
19
- import "../../chunk-KPQ72R34.js";
18
+ } from "../../chunk-SZY7NM6F.js";
19
+ import "../../chunk-DWRM7PIK.js";
20
20
 
21
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/bin/ngc.js
21
+ // packages/compiler-cli/src/bin/ngc.ts
22
22
  import "reflect-metadata";
23
23
  async function runNgcComamnd() {
24
24
  process.title = "Angular Compiler (ngc)";
@@ -37,4 +37,3 @@ runNgcComamnd().catch((e) => {
37
37
  * Use of this source code is governed by an MIT-style license that can be
38
38
  * found in the LICENSE file at https://angular.dev/license
39
39
  */
40
- //# sourceMappingURL=ngc.js.map
@@ -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.0";
10
+ export declare const PLACEHOLDER_VERSION = "20.2.0-next.1";
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.0",
3
+ "version": "20.2.0-next.1",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -48,8 +48,8 @@
48
48
  "yargs": "^18.0.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@angular/compiler": "20.2.0-next.0",
52
- "typescript": ">=5.8 <5.9"
51
+ "@angular/compiler": "20.2.0-next.1",
52
+ "typescript": ">=5.8 <6.0"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "typescript": {
@@ -83,75 +83,83 @@ export declare enum PerfPhase {
83
83
  * Time spent computing template type-checking diagnostics.
84
84
  */
85
85
  TtcDiagnostics = 14,
86
+ /**
87
+ * Time spent computing template type-checking suggestion diagnostics.
88
+ */
89
+ TtcSuggestionDiagnostics = 15,
86
90
  /**
87
91
  * Time spent getting a `Symbol` from the `TemplateTypeChecker`.
88
92
  */
89
- TtcSymbol = 15,
93
+ TtcSymbol = 16,
90
94
  /**
91
95
  * Time spent by the Angular Language Service calculating a "get references" or a renaming
92
96
  * operation.
93
97
  */
94
- LsReferencesAndRenames = 16,
98
+ LsReferencesAndRenames = 17,
95
99
  /**
96
100
  * Time spent by the Angular Language Service calculating a "quick info" operation.
97
101
  */
98
- LsQuickInfo = 17,
102
+ LsQuickInfo = 18,
99
103
  /**
100
104
  * Time spent by the Angular Language Service calculating a "get type definition" or "get
101
105
  * definition" operation.
102
106
  */
103
- LsDefinition = 18,
107
+ LsDefinition = 19,
104
108
  /**
105
109
  * Time spent by the Angular Language Service calculating a "get completions" (AKA autocomplete)
106
110
  * operation.
107
111
  */
108
- LsCompletions = 19,
112
+ LsCompletions = 20,
109
113
  /**
110
114
  * Time spent by the Angular Language Service calculating a "view template typecheck block"
111
115
  * operation.
112
116
  */
113
- LsTcb = 20,
117
+ LsTcb = 21,
114
118
  /**
115
119
  * Time spent by the Angular Language Service calculating diagnostics.
116
120
  */
117
- LsDiagnostics = 21,
121
+ LsDiagnostics = 22,
122
+ /**
123
+ * Time spent by the Angular Language Service calculating suggestion diagnostics.
124
+ */
125
+ LsSuggestionDiagnostics = 23,
118
126
  /**
119
127
  * Time spent by the Angular Language Service calculating a "get component locations for template"
120
128
  * operation.
121
129
  */
122
- LsComponentLocations = 22,
130
+ LsComponentLocations = 24,
123
131
  /**
124
132
  * Time spent by the Angular Language Service calculating signature help.
125
133
  */
126
- LsSignatureHelp = 23,
134
+ LsSignatureHelp = 25,
127
135
  /**
128
136
  * Time spent by the Angular Language Service calculating outlining spans.
129
137
  */
130
- OutliningSpans = 24,
138
+ OutliningSpans = 26,
131
139
  /**
132
140
  * Time spent by the Angular Language Service calculating code fixes.
133
141
  */
134
- LsCodeFixes = 25,
142
+ LsCodeFixes = 27,
135
143
  /**
136
144
  * Time spent by the Angular Language Service to fix all detected same type errors.
137
145
  */
138
- LsCodeFixesAll = 26,
146
+ LsCodeFixesAll = 28,
139
147
  /**
140
148
  * Time spent computing possible Angular refactorings.
141
149
  */
142
- LSComputeApplicableRefactorings = 27,
150
+ LSComputeApplicableRefactorings = 29,
143
151
  /**
144
152
  * Time spent computing changes for applying a given refactoring.
145
153
  */
146
- LSApplyRefactoring = 28,
154
+ LSApplyRefactoring = 30,
147
155
  /**
148
156
  * Time spent by the Angular Language Service calculating semantic classifications.
149
157
  */
150
- LSSemanticClassification = 29,
158
+ LSSemanticClassification = 31,
151
159
  /**
152
160
  * Tracks the number of `PerfPhase`s, and must appear at the end of the list.
153
161
  */
154
- LAST = 30
162
+ LAST = 32
155
163
  }
156
164
  /**
157
165
  * Represents some occurrence during compilation, and is tracked with a counter.
@@ -35,7 +35,7 @@ export type TypeCheckId = string & {
35
35
  * A `ts.Diagnostic` with additional information about the diagnostic related to template
36
36
  * type-checking.
37
37
  */
38
- export interface TemplateDiagnostic extends ts.Diagnostic {
38
+ export interface TemplateDiagnostic extends ts.DiagnosticWithLocation {
39
39
  /**
40
40
  * The component with the template that resulted in this diagnostic.
41
41
  */