@angular/compiler-cli 20.0.0-rc.1 → 20.0.0-rc.2
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-TTRWAZF3.js → chunk-6KZLR5QB.js} +27 -17
- package/bundles/chunk-6KZLR5QB.js.map +6 -0
- package/bundles/{chunk-GU2OJWV5.js → chunk-EQBHFEMJ.js} +2 -2
- package/bundles/{chunk-BGRGIORD.js → chunk-KO3EYK2V.js} +2 -2
- package/bundles/{chunk-GTZJJ3FS.js → chunk-N2PFGKJK.js} +2 -2
- package/bundles/{chunk-UWOD5VHW.js → chunk-Q5HXNOYJ.js} +3 -3
- package/bundles/chunk-TQ6LMH6Y.js +1 -1
- 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/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +3 -3
- package/src/ngtsc/typecheck/src/checker.d.ts +2 -1
- package/bundles/chunk-TTRWAZF3.js.map +0 -6
- /package/bundles/{chunk-GU2OJWV5.js.map → chunk-EQBHFEMJ.js.map} +0 -0
- /package/bundles/{chunk-BGRGIORD.js.map → chunk-KO3EYK2V.js.map} +0 -0
- /package/bundles/{chunk-GTZJJ3FS.js.map → chunk-N2PFGKJK.js.map} +0 -0
- /package/bundles/{chunk-UWOD5VHW.js.map → chunk-Q5HXNOYJ.js.map} +0 -0
|
@@ -3651,7 +3651,7 @@ function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompi
|
|
|
3651
3651
|
metaCtorParameters = new ArrowFunctionExpr([], new LiteralArrayExpr(ctorParameters));
|
|
3652
3652
|
}
|
|
3653
3653
|
let metaPropDecorators = null;
|
|
3654
|
-
const classMembers = reflection.getMembersOfClass(clazz).filter((member) => !member.isStatic && member.decorators !== null && member.decorators.length > 0);
|
|
3654
|
+
const classMembers = reflection.getMembersOfClass(clazz).filter((member) => !member.isStatic && member.decorators !== null && member.decorators.length > 0 && member.accessLevel !== ClassMemberAccessLevel.EcmaScriptPrivate);
|
|
3655
3655
|
const duplicateDecoratedMembers = classMembers.filter((member, i, arr) => arr.findIndex((arrayMember) => arrayMember.name === member.name) < i);
|
|
3656
3656
|
if (duplicateDecoratedMembers.length > 0) {
|
|
3657
3657
|
throw new FatalDiagnosticError(ErrorCode.DUPLICATE_DECORATED_PROPERTIES, (_a = duplicateDecoratedMembers[0].nameNode) != null ? _a : clazz, `Duplicate decorated properties found on class '${clazz.name.text}': ` + duplicateDecoratedMembers.map((member) => member.name).join(", "));
|
|
@@ -12177,6 +12177,7 @@ var TemplateTypeCheckerImpl = class {
|
|
|
12177
12177
|
scopeCache = /* @__PURE__ */ new Map();
|
|
12178
12178
|
elementTagCache = /* @__PURE__ */ new Map();
|
|
12179
12179
|
isComplete = false;
|
|
12180
|
+
priorResultsAdopted = false;
|
|
12180
12181
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
12181
12182
|
this.originalProgram = originalProgram;
|
|
12182
12183
|
this.programDriver = programDriver;
|
|
@@ -12414,25 +12415,35 @@ var TemplateTypeCheckerImpl = class {
|
|
|
12414
12415
|
this.completionCache.set(component, engine);
|
|
12415
12416
|
return engine;
|
|
12416
12417
|
}
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
if (this.state.has(sfPath)) {
|
|
12420
|
-
const existingResults = this.state.get(sfPath);
|
|
12421
|
-
if (existingResults.isComplete) {
|
|
12422
|
-
return;
|
|
12423
|
-
}
|
|
12424
|
-
}
|
|
12425
|
-
const previousResults = this.priorBuild.priorTypeCheckingResultsFor(sf);
|
|
12426
|
-
if (previousResults === null || !previousResults.isComplete) {
|
|
12418
|
+
maybeAdoptPriorResults() {
|
|
12419
|
+
if (this.priorResultsAdopted) {
|
|
12427
12420
|
return;
|
|
12428
12421
|
}
|
|
12429
|
-
this.
|
|
12430
|
-
|
|
12422
|
+
for (const sf of this.originalProgram.getSourceFiles()) {
|
|
12423
|
+
if (sf.isDeclarationFile || isShim(sf)) {
|
|
12424
|
+
continue;
|
|
12425
|
+
}
|
|
12426
|
+
const sfPath = absoluteFromSourceFile(sf);
|
|
12427
|
+
if (this.state.has(sfPath)) {
|
|
12428
|
+
const existingResults = this.state.get(sfPath);
|
|
12429
|
+
if (existingResults.isComplete) {
|
|
12430
|
+
continue;
|
|
12431
|
+
}
|
|
12432
|
+
}
|
|
12433
|
+
const previousResults = this.priorBuild.priorTypeCheckingResultsFor(sf);
|
|
12434
|
+
if (previousResults === null || !previousResults.isComplete) {
|
|
12435
|
+
continue;
|
|
12436
|
+
}
|
|
12437
|
+
this.perf.eventCount(PerfEvent.ReuseTypeCheckFile);
|
|
12438
|
+
this.state.set(sfPath, previousResults);
|
|
12439
|
+
}
|
|
12440
|
+
this.priorResultsAdopted = true;
|
|
12431
12441
|
}
|
|
12432
12442
|
ensureAllShimsForAllFiles() {
|
|
12433
12443
|
if (this.isComplete) {
|
|
12434
12444
|
return;
|
|
12435
12445
|
}
|
|
12446
|
+
this.maybeAdoptPriorResults();
|
|
12436
12447
|
this.perf.inPhase(PerfPhase.TcbGeneration, () => {
|
|
12437
12448
|
const host = new WholeProgramTypeCheckingHost(this);
|
|
12438
12449
|
const ctx = this.newContext(host);
|
|
@@ -12440,7 +12451,6 @@ var TemplateTypeCheckerImpl = class {
|
|
|
12440
12451
|
if (sf.isDeclarationFile || isShim(sf)) {
|
|
12441
12452
|
continue;
|
|
12442
12453
|
}
|
|
12443
|
-
this.maybeAdoptPriorResultsForFile(sf);
|
|
12444
12454
|
const sfPath = absoluteFromSourceFile(sf);
|
|
12445
12455
|
const fileData = this.getFileData(sfPath);
|
|
12446
12456
|
if (fileData.isComplete) {
|
|
@@ -12454,8 +12464,8 @@ var TemplateTypeCheckerImpl = class {
|
|
|
12454
12464
|
});
|
|
12455
12465
|
}
|
|
12456
12466
|
ensureAllShimsForOneFile(sf) {
|
|
12467
|
+
this.maybeAdoptPriorResults();
|
|
12457
12468
|
this.perf.inPhase(PerfPhase.TcbGeneration, () => {
|
|
12458
|
-
this.maybeAdoptPriorResultsForFile(sf);
|
|
12459
12469
|
const sfPath = absoluteFromSourceFile(sf);
|
|
12460
12470
|
const fileData = this.getFileData(sfPath);
|
|
12461
12471
|
if (fileData.isComplete) {
|
|
@@ -12469,10 +12479,10 @@ var TemplateTypeCheckerImpl = class {
|
|
|
12469
12479
|
});
|
|
12470
12480
|
}
|
|
12471
12481
|
ensureShimForComponent(component) {
|
|
12482
|
+
this.maybeAdoptPriorResults();
|
|
12472
12483
|
const sf = component.getSourceFile();
|
|
12473
12484
|
const sfPath = absoluteFromSourceFile(sf);
|
|
12474
12485
|
const shimPath = TypeCheckShimGenerator.shimFor(sfPath);
|
|
12475
|
-
this.maybeAdoptPriorResultsForFile(sf);
|
|
12476
12486
|
const fileData = this.getFileData(sfPath);
|
|
12477
12487
|
if (fileData.shimData.has(shimPath)) {
|
|
12478
12488
|
return;
|
|
@@ -16388,4 +16398,4 @@ export {
|
|
|
16388
16398
|
* Use of this source code is governed by an MIT-style license that can be
|
|
16389
16399
|
* found in the LICENSE file at https://angular.dev/license
|
|
16390
16400
|
*/
|
|
16391
|
-
//# sourceMappingURL=chunk-
|
|
16401
|
+
//# sourceMappingURL=chunk-6KZLR5QB.js.map
|