@angular/compiler-cli 20.0.5 → 20.0.7
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.
- package/bundles/{chunk-RYBZ5OMY.js → chunk-3NCSABOU.js} +2 -2
- package/bundles/{chunk-SILQIVD4.js → chunk-GCHW2XJY.js} +17 -7
- package/bundles/chunk-GCHW2XJY.js.map +6 -0
- package/bundles/chunk-LYJARAHL.js +1 -1
- package/bundles/{chunk-ZWSVOOGU.js → chunk-M367SQSJ.js} +3 -3
- package/bundles/{chunk-M7MXAQMK.js → chunk-URR6DYPK.js} +2 -2
- package/bundles/{chunk-7FGS2TFN.js → chunk-YVUHHBTB.js} +2 -2
- package/bundles/index.js +5 -5
- package/bundles/private/migrations.js +1 -1
- package/bundles/private/tooling.js +3 -3
- package/bundles/src/bin/ng_xi18n.js +4 -4
- package/bundles/src/bin/ngc.js +4 -4
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +3 -3
- package/bundles/chunk-SILQIVD4.js.map +0 -6
- /package/bundles/{chunk-RYBZ5OMY.js.map → chunk-3NCSABOU.js.map} +0 -0
- /package/bundles/{chunk-ZWSVOOGU.js.map → chunk-M367SQSJ.js.map} +0 -0
- /package/bundles/{chunk-M7MXAQMK.js.map → chunk-URR6DYPK.js.map} +0 -0
- /package/bundles/{chunk-7FGS2TFN.js.map → chunk-YVUHHBTB.js.map} +0 -0
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
formatDiagnostics,
|
|
13
13
|
performCompilation,
|
|
14
14
|
readConfiguration
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-M367SQSJ.js";
|
|
16
16
|
|
|
17
17
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/main.js
|
|
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.dev/license
|
|
365
365
|
*/
|
|
366
|
-
//# sourceMappingURL=chunk-
|
|
366
|
+
//# sourceMappingURL=chunk-3NCSABOU.js.map
|
|
@@ -3116,10 +3116,10 @@ function createGenerateUniqueIdentifierHelper() {
|
|
|
3116
3116
|
const markIdentifierAsGenerated = (sf, identifierName) => generatedIdentifiers.add(`${sf.fileName}@@${identifierName}`);
|
|
3117
3117
|
return (sourceFile, symbolName) => {
|
|
3118
3118
|
const sf = sourceFile;
|
|
3119
|
-
if (sf
|
|
3119
|
+
if (sf["identifiers"] === void 0) {
|
|
3120
3120
|
throw new Error("Source file unexpectedly lacks map of parsed `identifiers`.");
|
|
3121
3121
|
}
|
|
3122
|
-
const isUniqueIdentifier = (name2) => !sf
|
|
3122
|
+
const isUniqueIdentifier = (name2) => !sf["identifiers"].has(name2) && !isGeneratedIdentifier(sf, name2);
|
|
3123
3123
|
if (isUniqueIdentifier(symbolName)) {
|
|
3124
3124
|
markIdentifierAsGenerated(sf, symbolName);
|
|
3125
3125
|
return null;
|
|
@@ -9237,13 +9237,23 @@ function makeTemplateDiagnostic(id, mapping, span, category, code, messageText,
|
|
|
9237
9237
|
relatedInformation
|
|
9238
9238
|
};
|
|
9239
9239
|
}
|
|
9240
|
+
let typeForMessage;
|
|
9241
|
+
if (category === ts45.DiagnosticCategory.Warning) {
|
|
9242
|
+
typeForMessage = "Warning";
|
|
9243
|
+
} else if (category === ts45.DiagnosticCategory.Suggestion) {
|
|
9244
|
+
typeForMessage = "Suggestion";
|
|
9245
|
+
} else if (category === ts45.DiagnosticCategory.Message) {
|
|
9246
|
+
typeForMessage = "Message";
|
|
9247
|
+
} else {
|
|
9248
|
+
typeForMessage = "Error";
|
|
9249
|
+
}
|
|
9240
9250
|
relatedInformation.push({
|
|
9241
9251
|
category: ts45.DiagnosticCategory.Message,
|
|
9242
9252
|
code: 0,
|
|
9243
9253
|
file: componentSf,
|
|
9244
9254
|
start: mapping.node.getStart(),
|
|
9245
9255
|
length: mapping.node.getEnd() - mapping.node.getStart(),
|
|
9246
|
-
messageText:
|
|
9256
|
+
messageText: `${typeForMessage} occurs in the template of component ${componentName}.`
|
|
9247
9257
|
});
|
|
9248
9258
|
return {
|
|
9249
9259
|
source: "ngtsc",
|
|
@@ -13322,12 +13332,12 @@ var _Scope = class {
|
|
|
13322
13332
|
const firstDecl = varMap.get(v.name);
|
|
13323
13333
|
tcb.oobRecorder.duplicateTemplateVar(tcb.id, v, firstDecl);
|
|
13324
13334
|
}
|
|
13325
|
-
|
|
13335
|
+
_Scope.registerVariable(scope, v, new TcbTemplateVariableOp(tcb, scope, scopedNode, v));
|
|
13326
13336
|
}
|
|
13327
13337
|
} else if (scopedNode instanceof TmplAstIfBlockBranch) {
|
|
13328
13338
|
const { expression, expressionAlias } = scopedNode;
|
|
13329
13339
|
if (expression !== null && expressionAlias !== null) {
|
|
13330
|
-
|
|
13340
|
+
_Scope.registerVariable(scope, expressionAlias, new TcbBlockVariableOp(tcb, scope, tcbExpression(expression, tcb, scope), expressionAlias));
|
|
13331
13341
|
}
|
|
13332
13342
|
} else if (scopedNode instanceof TmplAstForLoopBlock) {
|
|
13333
13343
|
const loopInitializer = tcb.allocateId();
|
|
@@ -13338,7 +13348,7 @@ var _Scope = class {
|
|
|
13338
13348
|
throw new Error(`Unrecognized for loop context variable ${variable.name}`);
|
|
13339
13349
|
}
|
|
13340
13350
|
const type = ts59.factory.createKeywordTypeNode(this.forLoopContextVariableTypes.get(variable.value));
|
|
13341
|
-
|
|
13351
|
+
_Scope.registerVariable(scope, variable, new TcbBlockImplicitVariableOp(tcb, scope, type, variable));
|
|
13342
13352
|
}
|
|
13343
13353
|
} else if (scopedNode instanceof TmplAstHostElement2) {
|
|
13344
13354
|
scope.appendNode(scopedNode);
|
|
@@ -19412,4 +19422,4 @@ export {
|
|
|
19412
19422
|
* Use of this source code is governed by an MIT-style license that can be
|
|
19413
19423
|
* found in the LICENSE file at https://angular.dev/license
|
|
19414
19424
|
*/
|
|
19415
|
-
//# sourceMappingURL=chunk-
|
|
19425
|
+
//# sourceMappingURL=chunk-GCHW2XJY.js.map
|