@angular/compiler-cli 18.1.0-next.3 → 18.1.0-rc.0
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-VBH4SN7I.js → chunk-2T3WTZXW.js} +5 -4
- package/bundles/{chunk-VBH4SN7I.js.map → chunk-2T3WTZXW.js.map} +1 -1
- package/bundles/{chunk-54G5EVKM.js → chunk-3W345P4E.js} +2 -5
- package/bundles/chunk-3W345P4E.js.map +6 -0
- package/bundles/{chunk-HLA6H3PC.js → chunk-LM7LLDVD.js} +2 -2
- package/bundles/{chunk-QL7ORWNN.js → chunk-OZ2N4CUX.js} +68 -17
- package/bundles/chunk-OZ2N4CUX.js.map +6 -0
- package/bundles/{chunk-F7RSDLI3.js → chunk-S6XWL3LN.js} +26 -21
- package/bundles/{chunk-F7RSDLI3.js.map → chunk-S6XWL3LN.js.map} +1 -1
- package/bundles/{chunk-BRUTQYO2.js → chunk-TNEE4FUS.js} +6 -5
- package/bundles/{chunk-BRUTQYO2.js.map → chunk-TNEE4FUS.js.map} +1 -1
- package/bundles/{chunk-C5LPGSDY.js → chunk-WTQ7UQOL.js} +5 -3
- package/bundles/chunk-WTQ7UQOL.js.map +6 -0
- package/bundles/index.js +7 -9
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +3 -3
- package/bundles/linker/index.js +3 -3
- package/bundles/private/localize.js +1 -1
- package/bundles/private/migrations.js +3 -3
- package/bundles/private/tooling.js +4 -4
- package/bundles/src/bin/ng_xi18n.js +5 -5
- package/bundles/src/bin/ngc.js +5 -5
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/main.d.ts +1 -1
- package/src/ngtsc/core/src/host.d.ts +9 -9
- package/src/ngtsc/diagnostics/src/error_code.d.ts +14 -2
- package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +1 -0
- package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +7 -7
- package/src/ngtsc/reflection/src/host.d.ts +1 -3
- package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +7 -7
- package/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.d.ts +10 -0
- package/src/ngtsc/typecheck/src/oob.d.ts +5 -6
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +2 -0
- package/bundles/chunk-54G5EVKM.js.map +0 -6
- package/bundles/chunk-C5LPGSDY.js.map +0 -6
- package/bundles/chunk-QL7ORWNN.js.map +0 -6
- /package/bundles/{chunk-HLA6H3PC.js.map → chunk-LM7LLDVD.js.map} +0 -0
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
translateStatement,
|
|
46
46
|
translateType,
|
|
47
47
|
typeNodeToValueExpr
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WTQ7UQOL.js";
|
|
49
49
|
import {
|
|
50
50
|
PerfCheckpoint,
|
|
51
51
|
PerfEvent,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
absoluteFromSourceFile,
|
|
57
57
|
getSourceFileOrError,
|
|
58
58
|
relative
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-3W345P4E.js";
|
|
60
60
|
|
|
61
61
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
62
62
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
@@ -7353,10 +7353,7 @@ var TsCreateProgramDriver = class {
|
|
|
7353
7353
|
this.sfMap.clear();
|
|
7354
7354
|
}
|
|
7355
7355
|
for (const [filePath, { newText, originalFile }] of contents.entries()) {
|
|
7356
|
-
const sf = ts27.createSourceFile(filePath, newText,
|
|
7357
|
-
impliedNodeFormat: void 0,
|
|
7358
|
-
languageVersion: ts27.ScriptTarget.Latest
|
|
7359
|
-
}, true);
|
|
7356
|
+
const sf = ts27.createSourceFile(filePath, newText, ts27.ScriptTarget.Latest, true);
|
|
7360
7357
|
if (originalFile !== null) {
|
|
7361
7358
|
sf[NgOriginalFile] = originalFile;
|
|
7362
7359
|
}
|
|
@@ -7372,7 +7369,6 @@ var TsCreateProgramDriver = class {
|
|
|
7372
7369
|
oldProgram
|
|
7373
7370
|
});
|
|
7374
7371
|
host.postProgramCreationCleanup();
|
|
7375
|
-
untagAllTsFiles(this.program);
|
|
7376
7372
|
untagAllTsFiles(oldProgram);
|
|
7377
7373
|
}
|
|
7378
7374
|
};
|
|
@@ -9556,10 +9552,10 @@ Deferred blocks can only access triggers in same view, a parent embedded view or
|
|
|
9556
9552
|
}
|
|
9557
9553
|
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.LET_USED_BEFORE_DEFINITION), `Cannot read @let declaration '${target.name}' before it has been defined.`));
|
|
9558
9554
|
}
|
|
9559
|
-
|
|
9555
|
+
conflictingDeclaration(templateId, decl) {
|
|
9560
9556
|
const mapping = this.resolver.getSourceMapping(templateId);
|
|
9561
|
-
const errorMsg = `Cannot declare @let called '${
|
|
9562
|
-
this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping,
|
|
9557
|
+
const errorMsg = `Cannot declare @let called '${decl.name}' as there is another symbol in the template with the same name.`;
|
|
9558
|
+
this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, decl.sourceSpan, ts37.DiagnosticCategory.Error, ngErrorCode(ErrorCode.CONFLICTING_LET_DECLARATION), errorMsg));
|
|
9563
9559
|
}
|
|
9564
9560
|
};
|
|
9565
9561
|
function makeInlineDiagnostic(templateId, code, node, messageText, relatedInformation) {
|
|
@@ -10960,14 +10956,12 @@ var _Scope = class {
|
|
|
10960
10956
|
}
|
|
10961
10957
|
for (const node of children) {
|
|
10962
10958
|
scope.appendNode(node);
|
|
10963
|
-
|
|
10964
|
-
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
|
|
10968
|
-
|
|
10969
|
-
}
|
|
10970
|
-
}
|
|
10959
|
+
}
|
|
10960
|
+
for (const variable of scope.varMap.keys()) {
|
|
10961
|
+
_Scope.checkConflictingLet(scope, variable);
|
|
10962
|
+
}
|
|
10963
|
+
for (const ref of scope.referenceOpMap.keys()) {
|
|
10964
|
+
_Scope.checkConflictingLet(scope, ref);
|
|
10971
10965
|
}
|
|
10972
10966
|
return scope;
|
|
10973
10967
|
}
|
|
@@ -11031,7 +11025,7 @@ var _Scope = class {
|
|
|
11031
11025
|
if (ref instanceof TmplAstReference2 && this.referenceOpMap.has(ref)) {
|
|
11032
11026
|
return this.resolveOp(this.referenceOpMap.get(ref));
|
|
11033
11027
|
} else if (ref instanceof TmplAstLetDeclaration2 && this.letDeclOpMap.has(ref.name)) {
|
|
11034
|
-
return this.resolveOp(this.letDeclOpMap.get(ref.name));
|
|
11028
|
+
return this.resolveOp(this.letDeclOpMap.get(ref.name).opIndex);
|
|
11035
11029
|
} else if (ref instanceof TmplAstVariable && this.varMap.has(ref)) {
|
|
11036
11030
|
const opIndexOrNode = this.varMap.get(ref);
|
|
11037
11031
|
return typeof opIndexOrNode === "number" ? this.resolveOp(opIndexOrNode) : opIndexOrNode;
|
|
@@ -11107,6 +11101,13 @@ var _Scope = class {
|
|
|
11107
11101
|
this.appendIcuExpressions(node);
|
|
11108
11102
|
} else if (node instanceof TmplAstContent) {
|
|
11109
11103
|
this.appendChildren(node);
|
|
11104
|
+
} else if (node instanceof TmplAstLetDeclaration2) {
|
|
11105
|
+
const opIndex = this.opQueue.push(new TcbLetDeclarationOp(this.tcb, this, node)) - 1;
|
|
11106
|
+
if (this.isLocal(node)) {
|
|
11107
|
+
this.tcb.oobRecorder.conflictingDeclaration(this.tcb.id, node);
|
|
11108
|
+
} else {
|
|
11109
|
+
this.letDeclOpMap.set(node.name, { opIndex, node });
|
|
11110
|
+
}
|
|
11110
11111
|
}
|
|
11111
11112
|
}
|
|
11112
11113
|
appendChildren(node) {
|
|
@@ -11272,6 +11273,11 @@ var _Scope = class {
|
|
|
11272
11273
|
this.tcb.oobRecorder.inaccessibleDeferredTriggerElement(this.tcb.id, trigger);
|
|
11273
11274
|
}
|
|
11274
11275
|
}
|
|
11276
|
+
static checkConflictingLet(scope, node) {
|
|
11277
|
+
if (scope.letDeclOpMap.has(node.name)) {
|
|
11278
|
+
scope.tcb.oobRecorder.conflictingDeclaration(scope.tcb.id, scope.letDeclOpMap.get(node.name).node);
|
|
11279
|
+
}
|
|
11280
|
+
}
|
|
11275
11281
|
};
|
|
11276
11282
|
var Scope = _Scope;
|
|
11277
11283
|
(() => {
|
|
@@ -14684,7 +14690,6 @@ export {
|
|
|
14684
14690
|
NgModuleDecoratorHandler,
|
|
14685
14691
|
NgOriginalFile,
|
|
14686
14692
|
isShim,
|
|
14687
|
-
untagAllTsFiles,
|
|
14688
14693
|
retagAllTsFiles,
|
|
14689
14694
|
ShimAdapter,
|
|
14690
14695
|
ShimReferenceTagger,
|
|
@@ -14713,4 +14718,4 @@ export {
|
|
|
14713
14718
|
* Use of this source code is governed by an MIT-style license that can be
|
|
14714
14719
|
* found in the LICENSE file at https://angular.io/license
|
|
14715
14720
|
*/
|
|
14716
|
-
//# sourceMappingURL=chunk-
|
|
14721
|
+
//# sourceMappingURL=chunk-S6XWL3LN.js.map
|