@angular/compiler-cli 16.2.0 → 17.0.0-next.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-OCDXYAWW.js → chunk-7AJOGEL7.js} +35 -34
- package/bundles/{chunk-OCDXYAWW.js.map → chunk-7AJOGEL7.js.map} +1 -1
- package/bundles/{chunk-K2U2VZ7S.js → chunk-EC5K6QPP.js} +7 -7
- package/bundles/{chunk-QIGPDWZI.js → chunk-FRSHP5TN.js} +31 -31
- package/bundles/{chunk-NAKFMYDD.js → chunk-FXPDGYDZ.js} +4 -4
- package/bundles/{chunk-OULZQUKT.js → chunk-GYHDNUIK.js} +7 -7
- package/bundles/{chunk-URH5LEAG.js → chunk-HJOPJLIM.js} +5 -5
- package/bundles/{chunk-RHKG65UV.js → chunk-O44BCL4P.js} +5 -5
- package/bundles/{chunk-G4NNAES4.js → chunk-P4NPKMGZ.js} +8 -8
- package/bundles/{chunk-CF2CT7RQ.js → chunk-SBDNBITT.js} +3 -3
- package/bundles/{chunk-QUGPFSIN.js → chunk-U7JQC45O.js} +2792 -2756
- package/bundles/chunk-U7JQC45O.js.map +6 -0
- package/bundles/{chunk-3O3O4L34.js → chunk-UHYH6BYB.js} +1 -1
- package/bundles/{chunk-NSJJNPPO.js → chunk-WFZNEQRO.js} +159 -109
- package/bundles/chunk-WFZNEQRO.js.map +6 -0
- package/bundles/index.js +13 -13
- package/bundles/linker/babel/index.js +13 -13
- package/bundles/linker/index.js +5 -5
- package/bundles/ngcc/index.js +1 -1
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +6 -6
- package/bundles/private/tooling.js +4 -4
- package/bundles/src/bin/ng_xi18n.js +11 -11
- package/bundles/src/bin/ngc.js +9 -9
- package/bundles_metadata.json +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/common/src/di.d.ts +3 -2
- package/src/ngtsc/annotations/common/src/metadata.d.ts +7 -0
- package/src/ngtsc/annotations/directive/src/handler.d.ts +3 -2
- package/src/ngtsc/annotations/directive/src/shared.d.ts +2 -1
- package/src/ngtsc/annotations/ng_module/src/handler.d.ts +1 -1
- package/src/ngtsc/annotations/src/injectable.d.ts +3 -2
- package/src/ngtsc/annotations/src/pipe.d.ts +3 -2
- package/bundles/chunk-NSJJNPPO.js.map +0 -6
- package/bundles/chunk-QUGPFSIN.js.map +0 -6
- /package/bundles/{chunk-K2U2VZ7S.js.map → chunk-EC5K6QPP.js.map} +0 -0
- /package/bundles/{chunk-QIGPDWZI.js.map → chunk-FRSHP5TN.js.map} +0 -0
- /package/bundles/{chunk-NAKFMYDD.js.map → chunk-FXPDGYDZ.js.map} +0 -0
- /package/bundles/{chunk-OULZQUKT.js.map → chunk-GYHDNUIK.js.map} +0 -0
- /package/bundles/{chunk-URH5LEAG.js.map → chunk-HJOPJLIM.js.map} +0 -0
- /package/bundles/{chunk-RHKG65UV.js.map → chunk-O44BCL4P.js.map} +0 -0
- /package/bundles/{chunk-G4NNAES4.js.map → chunk-P4NPKMGZ.js.map} +0 -0
- /package/bundles/{chunk-CF2CT7RQ.js.map → chunk-SBDNBITT.js.map} +0 -0
- /package/bundles/{chunk-3O3O4L34.js.map → chunk-UHYH6BYB.js.map} +0 -0
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
aliasTransformFactory,
|
|
37
37
|
declarationTransformFactory,
|
|
38
38
|
ivyTransformFactory
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-U7JQC45O.js";
|
|
40
40
|
import {
|
|
41
41
|
ImportManager,
|
|
42
42
|
translateExpression,
|
|
43
43
|
translateType
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-P4NPKMGZ.js";
|
|
45
45
|
import {
|
|
46
46
|
AbsoluteModuleStrategy,
|
|
47
47
|
AliasStrategy,
|
|
@@ -83,14 +83,14 @@ import {
|
|
|
83
83
|
relativePathBetween,
|
|
84
84
|
replaceTsWithNgInErrors,
|
|
85
85
|
toUnredirectedSourceFile
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-7AJOGEL7.js";
|
|
87
87
|
import {
|
|
88
88
|
ActivePerfRecorder,
|
|
89
89
|
DelegatingPerfRecorder,
|
|
90
90
|
PerfCheckpoint,
|
|
91
91
|
PerfEvent,
|
|
92
92
|
PerfPhase
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-HJOPJLIM.js";
|
|
94
94
|
import {
|
|
95
95
|
LogicalFileSystem,
|
|
96
96
|
absoluteFrom,
|
|
@@ -100,9 +100,9 @@ import {
|
|
|
100
100
|
getSourceFileOrError,
|
|
101
101
|
join,
|
|
102
102
|
resolve
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-EC5K6QPP.js";
|
|
104
104
|
|
|
105
|
-
// bazel-out/
|
|
105
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
106
106
|
var DEFAULT_ERROR_CODE = 100;
|
|
107
107
|
var UNKNOWN_ERROR_CODE = 500;
|
|
108
108
|
var SOURCE = "angular";
|
|
@@ -120,7 +120,7 @@ var EmitFlags;
|
|
|
120
120
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
121
121
|
})(EmitFlags || (EmitFlags = {}));
|
|
122
122
|
|
|
123
|
-
// bazel-out/
|
|
123
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
124
124
|
import ts from "typescript";
|
|
125
125
|
var wrapHostForTest = null;
|
|
126
126
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -130,11 +130,11 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
130
130
|
return tsHost;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
// bazel-out/
|
|
133
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
134
134
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
135
135
|
import ts32 from "typescript";
|
|
136
136
|
|
|
137
|
-
// bazel-out/
|
|
137
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
138
138
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
139
139
|
import * as path from "path";
|
|
140
140
|
function i18nGetExtension(formatName) {
|
|
@@ -185,10 +185,10 @@ function getPathNormalizer(basePath) {
|
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
// bazel-out/
|
|
188
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
189
189
|
import ts2 from "typescript";
|
|
190
190
|
|
|
191
|
-
// bazel-out/
|
|
191
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
192
192
|
function toNumbers(value) {
|
|
193
193
|
const suffixIndex = value.lastIndexOf("-");
|
|
194
194
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -223,7 +223,7 @@ function compareVersions(v1, v2) {
|
|
|
223
223
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
// bazel-out/
|
|
226
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
227
227
|
var MIN_TS_VERSION = "4.9.3";
|
|
228
228
|
var MAX_TS_VERSION = "5.2.0";
|
|
229
229
|
var tsVersion = ts2.version;
|
|
@@ -236,10 +236,10 @@ function verifySupportedTypeScriptVersion() {
|
|
|
236
236
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
// bazel-out/
|
|
239
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
240
240
|
import ts30 from "typescript";
|
|
241
241
|
|
|
242
|
-
// bazel-out/
|
|
242
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
243
243
|
var CycleAnalyzer = class {
|
|
244
244
|
constructor(importGraph) {
|
|
245
245
|
this.importGraph = importGraph;
|
|
@@ -310,7 +310,7 @@ var Cycle = class {
|
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
|
|
313
|
-
// bazel-out/
|
|
313
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
314
314
|
import ts3 from "typescript";
|
|
315
315
|
var ImportGraph = class {
|
|
316
316
|
constructor(checker, perf) {
|
|
@@ -402,7 +402,7 @@ var Found = class {
|
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
404
|
|
|
405
|
-
// bazel-out/
|
|
405
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
406
406
|
import ts4 from "typescript";
|
|
407
407
|
var FlatIndexGenerator = class {
|
|
408
408
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -427,7 +427,7 @@ export * from '${relativeEntryPoint}';
|
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
|
|
430
|
-
// bazel-out/
|
|
430
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
431
431
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
432
432
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
433
433
|
let resolvedEntryPoint = null;
|
|
@@ -443,7 +443,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
443
443
|
return resolvedEntryPoint;
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
// bazel-out/
|
|
446
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
447
447
|
import ts5 from "typescript";
|
|
448
448
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
449
449
|
const diagnostics = [];
|
|
@@ -523,7 +523,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
|
|
526
|
-
// bazel-out/
|
|
526
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
527
527
|
var ReferenceGraph = class {
|
|
528
528
|
constructor() {
|
|
529
529
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -577,7 +577,7 @@ var ReferenceGraph = class {
|
|
|
577
577
|
}
|
|
578
578
|
};
|
|
579
579
|
|
|
580
|
-
// bazel-out/
|
|
580
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
581
581
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
582
582
|
var UpdateMode;
|
|
583
583
|
(function(UpdateMode2) {
|
|
@@ -585,13 +585,13 @@ var UpdateMode;
|
|
|
585
585
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
586
586
|
})(UpdateMode || (UpdateMode = {}));
|
|
587
587
|
|
|
588
|
-
// bazel-out/
|
|
588
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
589
589
|
import ts7 from "typescript";
|
|
590
590
|
|
|
591
|
-
// bazel-out/
|
|
591
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
592
592
|
import ts6 from "typescript";
|
|
593
593
|
|
|
594
|
-
// bazel-out/
|
|
594
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
595
595
|
var NgExtension = Symbol("NgExtension");
|
|
596
596
|
function isExtended(sf) {
|
|
597
597
|
return sf[NgExtension] !== void 0;
|
|
@@ -651,13 +651,13 @@ function retagTsFile(sf) {
|
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
|
|
654
|
-
// bazel-out/
|
|
654
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
655
655
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
656
656
|
function makeShimFileName(fileName, suffix) {
|
|
657
657
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
// bazel-out/
|
|
660
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
661
661
|
var ShimAdapter = class {
|
|
662
662
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
663
663
|
this.delegate = delegate;
|
|
@@ -752,7 +752,7 @@ var ShimAdapter = class {
|
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
754
|
|
|
755
|
-
// bazel-out/
|
|
755
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
756
756
|
var ShimReferenceTagger = class {
|
|
757
757
|
constructor(shimExtensions) {
|
|
758
758
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -786,7 +786,7 @@ var ShimReferenceTagger = class {
|
|
|
786
786
|
}
|
|
787
787
|
};
|
|
788
788
|
|
|
789
|
-
// bazel-out/
|
|
789
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
790
790
|
var DelegatingCompilerHost = class {
|
|
791
791
|
constructor(delegate) {
|
|
792
792
|
this.delegate = delegate;
|
|
@@ -899,7 +899,7 @@ var TsCreateProgramDriver = class {
|
|
|
899
899
|
}
|
|
900
900
|
};
|
|
901
901
|
|
|
902
|
-
// bazel-out/
|
|
902
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
903
903
|
var FileDependencyGraph = class {
|
|
904
904
|
constructor() {
|
|
905
905
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -966,7 +966,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
966
966
|
return false;
|
|
967
967
|
}
|
|
968
968
|
|
|
969
|
-
// bazel-out/
|
|
969
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
970
970
|
var IncrementalStateKind;
|
|
971
971
|
(function(IncrementalStateKind2) {
|
|
972
972
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -974,7 +974,7 @@ var IncrementalStateKind;
|
|
|
974
974
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
975
975
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
976
976
|
|
|
977
|
-
// bazel-out/
|
|
977
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
978
978
|
var PhaseKind;
|
|
979
979
|
(function(PhaseKind2) {
|
|
980
980
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1175,7 +1175,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
|
-
// bazel-out/
|
|
1178
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1179
1179
|
var TrackedIncrementalBuildStrategy = class {
|
|
1180
1180
|
constructor() {
|
|
1181
1181
|
this.state = null;
|
|
@@ -1211,7 +1211,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1211
1211
|
};
|
|
1212
1212
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1213
1213
|
|
|
1214
|
-
// bazel-out/
|
|
1214
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1215
1215
|
var IdentifierKind;
|
|
1216
1216
|
(function(IdentifierKind2) {
|
|
1217
1217
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1229,7 +1229,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
};
|
|
1231
1231
|
|
|
1232
|
-
// bazel-out/
|
|
1232
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1233
1233
|
var IndexingContext = class {
|
|
1234
1234
|
constructor() {
|
|
1235
1235
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1239,11 +1239,11 @@ var IndexingContext = class {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
};
|
|
1241
1241
|
|
|
1242
|
-
// bazel-out/
|
|
1242
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1243
1243
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1244
1244
|
|
|
1245
|
-
// bazel-out/
|
|
1246
|
-
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1245
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1246
|
+
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1247
1247
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1248
1248
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
1249
1249
|
super();
|
|
@@ -1361,11 +1361,7 @@ var TemplateVisitor = class extends TmplAstRecursiveVisitor {
|
|
|
1361
1361
|
this.identifiers.add(variableIdentifier);
|
|
1362
1362
|
}
|
|
1363
1363
|
visitDeferredBlock(deferred) {
|
|
1364
|
-
|
|
1365
|
-
this.visitAll(deferred.children);
|
|
1366
|
-
(_a = deferred.placeholder) == null ? void 0 : _a.visit(this);
|
|
1367
|
-
(_b = deferred.loading) == null ? void 0 : _b.visit(this);
|
|
1368
|
-
(_c = deferred.error) == null ? void 0 : _c.visit(this);
|
|
1364
|
+
deferred.visitAll(this);
|
|
1369
1365
|
}
|
|
1370
1366
|
visitDeferredBlockPlaceholder(block) {
|
|
1371
1367
|
this.visitAll(block.children);
|
|
@@ -1376,6 +1372,35 @@ var TemplateVisitor = class extends TmplAstRecursiveVisitor {
|
|
|
1376
1372
|
visitDeferredBlockLoading(block) {
|
|
1377
1373
|
this.visitAll(block.children);
|
|
1378
1374
|
}
|
|
1375
|
+
visitDeferredTrigger(trigger) {
|
|
1376
|
+
if (trigger instanceof TmplAstBoundDeferredTrigger) {
|
|
1377
|
+
this.visitExpression(trigger.value);
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
visitSwitchBlock(block) {
|
|
1381
|
+
this.visitExpression(block.expression);
|
|
1382
|
+
this.visitAll(block.cases);
|
|
1383
|
+
}
|
|
1384
|
+
visitSwitchBlockCase(block) {
|
|
1385
|
+
block.expression && this.visitExpression(block.expression);
|
|
1386
|
+
this.visitAll(block.children);
|
|
1387
|
+
}
|
|
1388
|
+
visitForLoopBlock(block) {
|
|
1389
|
+
var _a;
|
|
1390
|
+
this.visitExpression(block.expression);
|
|
1391
|
+
this.visitAll(block.children);
|
|
1392
|
+
(_a = block.empty) == null ? void 0 : _a.visit(this);
|
|
1393
|
+
}
|
|
1394
|
+
visitForLoopBlockEmpty(block) {
|
|
1395
|
+
this.visitAll(block.children);
|
|
1396
|
+
}
|
|
1397
|
+
visitIfBlock(block) {
|
|
1398
|
+
this.visitAll(block.branches);
|
|
1399
|
+
}
|
|
1400
|
+
visitIfBlockBranch(block) {
|
|
1401
|
+
block.expression && this.visitExpression(block.expression);
|
|
1402
|
+
this.visitAll(block.children);
|
|
1403
|
+
}
|
|
1379
1404
|
elementOrTemplateToIdentifier(node) {
|
|
1380
1405
|
var _a;
|
|
1381
1406
|
if (this.elementAndTemplateIdentifierCache.has(node)) {
|
|
@@ -1495,7 +1520,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
1495
1520
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
1496
1521
|
}
|
|
1497
1522
|
|
|
1498
|
-
// bazel-out/
|
|
1523
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1499
1524
|
function generateAnalysis(context) {
|
|
1500
1525
|
const analysis = /* @__PURE__ */ new Map();
|
|
1501
1526
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -1531,7 +1556,7 @@ function generateAnalysis(context) {
|
|
|
1531
1556
|
return analysis;
|
|
1532
1557
|
}
|
|
1533
1558
|
|
|
1534
|
-
// bazel-out/
|
|
1559
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
1535
1560
|
var NgModuleIndexImpl = class {
|
|
1536
1561
|
constructor(metaReader, localReader) {
|
|
1537
1562
|
this.metaReader = metaReader;
|
|
@@ -1620,7 +1645,7 @@ var NgModuleIndexImpl = class {
|
|
|
1620
1645
|
}
|
|
1621
1646
|
};
|
|
1622
1647
|
|
|
1623
|
-
// bazel-out/
|
|
1648
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
1624
1649
|
import ts8 from "typescript";
|
|
1625
1650
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
1626
1651
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -1766,7 +1791,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
1766
1791
|
};
|
|
1767
1792
|
}
|
|
1768
1793
|
|
|
1769
|
-
// bazel-out/
|
|
1794
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
1770
1795
|
var StandaloneComponentScopeReader = class {
|
|
1771
1796
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
1772
1797
|
this.metaReader = metaReader;
|
|
@@ -1844,10 +1869,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
1844
1869
|
}
|
|
1845
1870
|
};
|
|
1846
1871
|
|
|
1847
|
-
// bazel-out/
|
|
1872
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
1848
1873
|
import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr } from "@angular/compiler";
|
|
1849
1874
|
|
|
1850
|
-
// bazel-out/
|
|
1875
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
1851
1876
|
import ts9 from "typescript";
|
|
1852
1877
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
1853
1878
|
var _a;
|
|
@@ -1954,7 +1979,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
1954
1979
|
return ts9.createSourceFile(fileName, template, ts9.ScriptTarget.Latest, false, ts9.ScriptKind.JSX);
|
|
1955
1980
|
}
|
|
1956
1981
|
|
|
1957
|
-
// bazel-out/
|
|
1982
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
1958
1983
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
1959
1984
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
1960
1985
|
function getTemplateId(clazz) {
|
|
@@ -1971,11 +1996,11 @@ function allocateTemplateId(sf) {
|
|
|
1971
1996
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
1972
1997
|
}
|
|
1973
1998
|
|
|
1974
|
-
// bazel-out/
|
|
1999
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
1975
2000
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
1976
2001
|
import ts11 from "typescript";
|
|
1977
2002
|
|
|
1978
|
-
// bazel-out/
|
|
2003
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
1979
2004
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
1980
2005
|
import ts10 from "typescript";
|
|
1981
2006
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -2105,7 +2130,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
2105
2130
|
}) || false;
|
|
2106
2131
|
}
|
|
2107
2132
|
|
|
2108
|
-
// bazel-out/
|
|
2133
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2109
2134
|
var CompletionEngine = class {
|
|
2110
2135
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
2111
2136
|
this.tcb = tcb;
|
|
@@ -2262,10 +2287,10 @@ var CompletionEngine = class {
|
|
|
2262
2287
|
}
|
|
2263
2288
|
};
|
|
2264
2289
|
|
|
2265
|
-
// bazel-out/
|
|
2290
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
2266
2291
|
import ts25 from "typescript";
|
|
2267
2292
|
|
|
2268
|
-
// bazel-out/
|
|
2293
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
2269
2294
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
2270
2295
|
import ts12 from "typescript";
|
|
2271
2296
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -2318,11 +2343,11 @@ var RegistryDomSchemaChecker = class {
|
|
|
2318
2343
|
}
|
|
2319
2344
|
};
|
|
2320
2345
|
|
|
2321
|
-
// bazel-out/
|
|
2346
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2322
2347
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2323
2348
|
import ts18 from "typescript";
|
|
2324
2349
|
|
|
2325
|
-
// bazel-out/
|
|
2350
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
2326
2351
|
import ts13 from "typescript";
|
|
2327
2352
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
2328
2353
|
ts13.SyntaxKind.ParenthesizedExpression,
|
|
@@ -2396,16 +2421,16 @@ function isAccessExpression(node) {
|
|
|
2396
2421
|
return ts13.isPropertyAccessExpression(node) || ts13.isElementAccessExpression(node);
|
|
2397
2422
|
}
|
|
2398
2423
|
|
|
2399
|
-
// bazel-out/
|
|
2424
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2400
2425
|
import ts17 from "typescript";
|
|
2401
2426
|
|
|
2402
|
-
// bazel-out/
|
|
2427
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2403
2428
|
import ts16 from "typescript";
|
|
2404
2429
|
|
|
2405
|
-
// bazel-out/
|
|
2430
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2406
2431
|
import ts15 from "typescript";
|
|
2407
2432
|
|
|
2408
|
-
// bazel-out/
|
|
2433
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
2409
2434
|
import ts14 from "typescript";
|
|
2410
2435
|
var INELIGIBLE = {};
|
|
2411
2436
|
function canEmitType(type, canEmit) {
|
|
@@ -2480,7 +2505,7 @@ var TypeEmitter = class {
|
|
|
2480
2505
|
}
|
|
2481
2506
|
};
|
|
2482
2507
|
|
|
2483
|
-
// bazel-out/
|
|
2508
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2484
2509
|
var TypeParameterEmitter = class {
|
|
2485
2510
|
constructor(typeParameters, reflector) {
|
|
2486
2511
|
this.typeParameters = typeParameters;
|
|
@@ -2557,7 +2582,7 @@ var TypeParameterEmitter = class {
|
|
|
2557
2582
|
}
|
|
2558
2583
|
};
|
|
2559
2584
|
|
|
2560
|
-
// bazel-out/
|
|
2585
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2561
2586
|
var TcbInliningRequirement;
|
|
2562
2587
|
(function(TcbInliningRequirement2) {
|
|
2563
2588
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -2637,7 +2662,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
2637
2662
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
2638
2663
|
}
|
|
2639
2664
|
|
|
2640
|
-
// bazel-out/
|
|
2665
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2641
2666
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
2642
2667
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
2643
2668
|
const rawType = ts17.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -2748,7 +2773,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
2748
2773
|
});
|
|
2749
2774
|
}
|
|
2750
2775
|
|
|
2751
|
-
// bazel-out/
|
|
2776
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2752
2777
|
var Environment = class {
|
|
2753
2778
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
2754
2779
|
this.config = config;
|
|
@@ -2842,7 +2867,7 @@ var Environment = class {
|
|
|
2842
2867
|
}
|
|
2843
2868
|
};
|
|
2844
2869
|
|
|
2845
|
-
// bazel-out/
|
|
2870
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
2846
2871
|
import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
|
|
2847
2872
|
import ts19 from "typescript";
|
|
2848
2873
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
@@ -2979,7 +3004,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
2979
3004
|
};
|
|
2980
3005
|
}
|
|
2981
3006
|
|
|
2982
|
-
// bazel-out/
|
|
3007
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
2983
3008
|
import ts20 from "typescript";
|
|
2984
3009
|
var TypeCheckShimGenerator = class {
|
|
2985
3010
|
constructor() {
|
|
@@ -2997,11 +3022,11 @@ var TypeCheckShimGenerator = class {
|
|
|
2997
3022
|
}
|
|
2998
3023
|
};
|
|
2999
3024
|
|
|
3000
|
-
// bazel-out/
|
|
3025
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3001
3026
|
import { BindingPipe, Call as Call2, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, SafeCall, SafePropertyRead as SafePropertyRead3, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstElement as TmplAstElement3, TmplAstIcu, TmplAstReference as TmplAstReference3, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable as TmplAstVariable2, TransplantedType } from "@angular/compiler";
|
|
3002
3027
|
import ts23 from "typescript";
|
|
3003
3028
|
|
|
3004
|
-
// bazel-out/
|
|
3029
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
3005
3030
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
3006
3031
|
import ts21 from "typescript";
|
|
3007
3032
|
function wrapForDiagnostics(expr) {
|
|
@@ -3047,7 +3072,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
3047
3072
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
3048
3073
|
}
|
|
3049
3074
|
|
|
3050
|
-
// bazel-out/
|
|
3075
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
3051
3076
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
3052
3077
|
import ts22 from "typescript";
|
|
3053
3078
|
var NULL_AS_ANY = ts22.factory.createAsExpression(ts22.factory.createNull(), ts22.factory.createKeywordTypeNode(ts22.SyntaxKind.AnyKeyword));
|
|
@@ -3380,7 +3405,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
3380
3405
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
3381
3406
|
})();
|
|
3382
3407
|
|
|
3383
|
-
// bazel-out/
|
|
3408
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
3384
3409
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
3385
3410
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
3386
3411
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -3404,7 +3429,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
3404
3429
|
}
|
|
3405
3430
|
};
|
|
3406
3431
|
|
|
3407
|
-
// bazel-out/
|
|
3432
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3408
3433
|
var TcbGenericContextBehavior;
|
|
3409
3434
|
(function(TcbGenericContextBehavior2) {
|
|
3410
3435
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -4531,7 +4556,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
4531
4556
|
}
|
|
4532
4557
|
};
|
|
4533
4558
|
|
|
4534
|
-
// bazel-out/
|
|
4559
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
4535
4560
|
import ts24 from "typescript";
|
|
4536
4561
|
var TypeCheckFile = class extends Environment {
|
|
4537
4562
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -4567,7 +4592,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
4567
4592
|
}
|
|
4568
4593
|
};
|
|
4569
4594
|
|
|
4570
|
-
// bazel-out/
|
|
4595
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
4571
4596
|
var InliningMode;
|
|
4572
4597
|
(function(InliningMode2) {
|
|
4573
4598
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -4804,10 +4829,10 @@ function splitStringAtPoints(str, points) {
|
|
|
4804
4829
|
return splits;
|
|
4805
4830
|
}
|
|
4806
4831
|
|
|
4807
|
-
// bazel-out/
|
|
4832
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4808
4833
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
4809
4834
|
|
|
4810
|
-
// bazel-out/
|
|
4835
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
4811
4836
|
var LF_CHAR = 10;
|
|
4812
4837
|
var CR_CHAR = 13;
|
|
4813
4838
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -4848,7 +4873,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
4848
4873
|
return low - 1;
|
|
4849
4874
|
}
|
|
4850
4875
|
|
|
4851
|
-
// bazel-out/
|
|
4876
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4852
4877
|
var TemplateSource = class {
|
|
4853
4878
|
constructor(mapping, file) {
|
|
4854
4879
|
this.mapping = mapping;
|
|
@@ -4899,7 +4924,7 @@ var TemplateSourceManager = class {
|
|
|
4899
4924
|
}
|
|
4900
4925
|
};
|
|
4901
4926
|
|
|
4902
|
-
// bazel-out/
|
|
4927
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
4903
4928
|
import { AST, ASTWithSource as ASTWithSource3, BindingPipe as BindingPipe2, PropertyRead as PropertyRead5, PropertyWrite as PropertyWrite4, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement4, TmplAstReference as TmplAstReference4, TmplAstTemplate as TmplAstTemplate3, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable3 } from "@angular/compiler";
|
|
4904
4929
|
import ts26 from "typescript";
|
|
4905
4930
|
var SymbolBuilder = class {
|
|
@@ -5383,7 +5408,7 @@ function sourceSpanEqual(a, b) {
|
|
|
5383
5408
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
5384
5409
|
}
|
|
5385
5410
|
|
|
5386
|
-
// bazel-out/
|
|
5411
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
5387
5412
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
5388
5413
|
var TemplateTypeCheckerImpl = class {
|
|
5389
5414
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -6080,11 +6105,11 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
6080
6105
|
}
|
|
6081
6106
|
};
|
|
6082
6107
|
|
|
6083
|
-
// bazel-out/
|
|
6108
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
6084
6109
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
6085
6110
|
|
|
6086
|
-
// bazel-out/
|
|
6087
|
-
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundDeferredTrigger } from "@angular/compiler";
|
|
6111
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
6112
|
+
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
6088
6113
|
var TemplateCheckWithVisitor = class {
|
|
6089
6114
|
run(ctx, component, template) {
|
|
6090
6115
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -6154,15 +6179,10 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
6154
6179
|
visitIcu(icu) {
|
|
6155
6180
|
}
|
|
6156
6181
|
visitDeferredBlock(deferred) {
|
|
6157
|
-
|
|
6158
|
-
this.visitAllNodes(deferred.triggers);
|
|
6159
|
-
this.visitAllNodes(deferred.prefetchTriggers);
|
|
6160
|
-
deferred.placeholder && this.visit(deferred.placeholder);
|
|
6161
|
-
deferred.loading && this.visit(deferred.loading);
|
|
6162
|
-
deferred.error && this.visit(deferred.error);
|
|
6182
|
+
deferred.visitAll(this);
|
|
6163
6183
|
}
|
|
6164
6184
|
visitDeferredTrigger(trigger) {
|
|
6165
|
-
if (trigger instanceof
|
|
6185
|
+
if (trigger instanceof TmplAstBoundDeferredTrigger2) {
|
|
6166
6186
|
this.visitAst(trigger.value);
|
|
6167
6187
|
}
|
|
6168
6188
|
}
|
|
@@ -6175,6 +6195,30 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
6175
6195
|
visitDeferredBlockLoading(block) {
|
|
6176
6196
|
this.visitAllNodes(block.children);
|
|
6177
6197
|
}
|
|
6198
|
+
visitSwitchBlock(block) {
|
|
6199
|
+
this.visitAst(block.expression);
|
|
6200
|
+
this.visitAllNodes(block.cases);
|
|
6201
|
+
}
|
|
6202
|
+
visitSwitchBlockCase(block) {
|
|
6203
|
+
block.expression && this.visitAst(block.expression);
|
|
6204
|
+
this.visitAllNodes(block.children);
|
|
6205
|
+
}
|
|
6206
|
+
visitForLoopBlock(block) {
|
|
6207
|
+
var _a;
|
|
6208
|
+
this.visitAst(block.expression);
|
|
6209
|
+
this.visitAllNodes(block.children);
|
|
6210
|
+
(_a = block.empty) == null ? void 0 : _a.visit(this);
|
|
6211
|
+
}
|
|
6212
|
+
visitForLoopBlockEmpty(block) {
|
|
6213
|
+
this.visitAllNodes(block.children);
|
|
6214
|
+
}
|
|
6215
|
+
visitIfBlock(block) {
|
|
6216
|
+
this.visitAllNodes(block.branches);
|
|
6217
|
+
}
|
|
6218
|
+
visitIfBlockBranch(block) {
|
|
6219
|
+
block.expression && this.visitAst(block.expression);
|
|
6220
|
+
this.visitAllNodes(block.children);
|
|
6221
|
+
}
|
|
6178
6222
|
getDiagnostics(template) {
|
|
6179
6223
|
this.diagnostics = [];
|
|
6180
6224
|
this.visitAllNodes(template);
|
|
@@ -6182,7 +6226,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
6182
6226
|
}
|
|
6183
6227
|
};
|
|
6184
6228
|
|
|
6185
|
-
// bazel-out/
|
|
6229
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
6186
6230
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
6187
6231
|
constructor() {
|
|
6188
6232
|
super(...arguments);
|
|
@@ -6207,7 +6251,7 @@ var factory = {
|
|
|
6207
6251
|
create: () => new InvalidBananaInBoxCheck()
|
|
6208
6252
|
};
|
|
6209
6253
|
|
|
6210
|
-
// bazel-out/
|
|
6254
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
6211
6255
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
6212
6256
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
6213
6257
|
["ngIf", "NgIf"],
|
|
@@ -6252,7 +6296,7 @@ var factory2 = {
|
|
|
6252
6296
|
}
|
|
6253
6297
|
};
|
|
6254
6298
|
|
|
6255
|
-
// bazel-out/
|
|
6299
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
6256
6300
|
import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
|
|
6257
6301
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
6258
6302
|
constructor() {
|
|
@@ -6285,7 +6329,7 @@ var factory3 = {
|
|
|
6285
6329
|
create: () => new MissingNgForOfLetCheck()
|
|
6286
6330
|
};
|
|
6287
6331
|
|
|
6288
|
-
// bazel-out/
|
|
6332
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
6289
6333
|
import { Binary } from "@angular/compiler";
|
|
6290
6334
|
import ts27 from "typescript";
|
|
6291
6335
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6330,7 +6374,7 @@ var factory4 = {
|
|
|
6330
6374
|
}
|
|
6331
6375
|
};
|
|
6332
6376
|
|
|
6333
|
-
// bazel-out/
|
|
6377
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
6334
6378
|
import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
|
|
6335
6379
|
import ts28 from "typescript";
|
|
6336
6380
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6376,7 +6420,7 @@ var factory5 = {
|
|
|
6376
6420
|
}
|
|
6377
6421
|
};
|
|
6378
6422
|
|
|
6379
|
-
// bazel-out/
|
|
6423
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
6380
6424
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
6381
6425
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
6382
6426
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6400,7 +6444,7 @@ var factory6 = {
|
|
|
6400
6444
|
create: () => new SuffixNotSupportedCheck()
|
|
6401
6445
|
};
|
|
6402
6446
|
|
|
6403
|
-
// bazel-out/
|
|
6447
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
6404
6448
|
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
6405
6449
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
6406
6450
|
constructor() {
|
|
@@ -6439,10 +6483,10 @@ var factory7 = {
|
|
|
6439
6483
|
create: () => new TextAttributeNotBindingSpec()
|
|
6440
6484
|
};
|
|
6441
6485
|
|
|
6442
|
-
// bazel-out/
|
|
6486
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
6443
6487
|
import ts29 from "typescript";
|
|
6444
6488
|
|
|
6445
|
-
// bazel-out/
|
|
6489
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
6446
6490
|
var DiagnosticCategoryLabel;
|
|
6447
6491
|
(function(DiagnosticCategoryLabel2) {
|
|
6448
6492
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -6450,7 +6494,7 @@ var DiagnosticCategoryLabel;
|
|
|
6450
6494
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
6451
6495
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
6452
6496
|
|
|
6453
|
-
// bazel-out/
|
|
6497
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
6454
6498
|
var ExtendedTemplateCheckerImpl = class {
|
|
6455
6499
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
6456
6500
|
var _a, _b, _c, _d, _e;
|
|
@@ -6503,7 +6547,7 @@ function assertNever(value) {
|
|
|
6503
6547
|
${value}`);
|
|
6504
6548
|
}
|
|
6505
6549
|
|
|
6506
|
-
// bazel-out/
|
|
6550
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
6507
6551
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
6508
6552
|
factory,
|
|
6509
6553
|
factory4,
|
|
@@ -6514,7 +6558,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
6514
6558
|
factory6
|
|
6515
6559
|
];
|
|
6516
6560
|
|
|
6517
|
-
// bazel-out/
|
|
6561
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
6518
6562
|
var CompilationTicketKind;
|
|
6519
6563
|
(function(CompilationTicketKind2) {
|
|
6520
6564
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -7069,9 +7113,9 @@ var NgCompiler = class {
|
|
|
7069
7113
|
}
|
|
7070
7114
|
const handlers = [
|
|
7071
7115
|
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.enabledBlockTypes, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, supportTestBed, compilationMode, deferredSymbolsTracker),
|
|
7072
|
-
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, supportTestBed),
|
|
7073
|
-
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed),
|
|
7074
|
-
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed),
|
|
7116
|
+
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
7117
|
+
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
7118
|
+
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
7075
7119
|
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (_c = this.options.onlyPublishPublicTypingsForNgModules) != null ? _c : false, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, supportJitMode, compilationMode)
|
|
7076
7120
|
];
|
|
7077
7121
|
const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
|
|
@@ -7259,7 +7303,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
7259
7303
|
return versions;
|
|
7260
7304
|
}
|
|
7261
7305
|
|
|
7262
|
-
// bazel-out/
|
|
7306
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
7263
7307
|
import ts31 from "typescript";
|
|
7264
7308
|
var DelegatingCompilerHost2 = class {
|
|
7265
7309
|
constructor(delegate) {
|
|
@@ -7392,7 +7436,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
7392
7436
|
}
|
|
7393
7437
|
};
|
|
7394
7438
|
|
|
7395
|
-
// bazel-out/
|
|
7439
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
7396
7440
|
var NgtscProgram = class {
|
|
7397
7441
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
7398
7442
|
this.options = options;
|
|
@@ -7401,6 +7445,9 @@ var NgtscProgram = class {
|
|
|
7401
7445
|
if (!options.disableTypeScriptVersionCheck) {
|
|
7402
7446
|
verifySupportedTypeScriptVersion();
|
|
7403
7447
|
}
|
|
7448
|
+
if (options.compilationMode === "experimental-local") {
|
|
7449
|
+
options.noEmitOnError = false;
|
|
7450
|
+
}
|
|
7404
7451
|
const reuseProgram = oldProgram == null ? void 0 : oldProgram.compiler.getCurrentProgram();
|
|
7405
7452
|
this.host = NgCompilerHost.wrap(delegateHost, rootNames, options, reuseProgram != null ? reuseProgram : null);
|
|
7406
7453
|
if (reuseProgram !== void 0) {
|
|
@@ -7469,6 +7516,9 @@ var NgtscProgram = class {
|
|
|
7469
7516
|
});
|
|
7470
7517
|
}
|
|
7471
7518
|
getTsSemanticDiagnostics(sourceFile, cancellationToken) {
|
|
7519
|
+
if (this.options.compilationMode === "experimental-local") {
|
|
7520
|
+
return [];
|
|
7521
|
+
}
|
|
7472
7522
|
return this.compiler.perfRecorder.inPhase(PerfPhase.TypeScriptDiagnostics, () => {
|
|
7473
7523
|
const ignoredFiles = this.compiler.ignoreForDiagnostics;
|
|
7474
7524
|
let res;
|
|
@@ -7610,15 +7660,15 @@ function mergeEmitResults(emitResults) {
|
|
|
7610
7660
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
7611
7661
|
}
|
|
7612
7662
|
|
|
7613
|
-
// bazel-out/
|
|
7663
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
7614
7664
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
7615
7665
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
7616
7666
|
}
|
|
7617
7667
|
|
|
7618
|
-
// bazel-out/
|
|
7668
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
7619
7669
|
import ts34 from "typescript";
|
|
7620
7670
|
|
|
7621
|
-
// bazel-out/
|
|
7671
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
7622
7672
|
import ts33 from "typescript";
|
|
7623
7673
|
function createMessageDiagnostic(messageText) {
|
|
7624
7674
|
return {
|
|
@@ -7632,7 +7682,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
7632
7682
|
};
|
|
7633
7683
|
}
|
|
7634
7684
|
|
|
7635
|
-
// bazel-out/
|
|
7685
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
7636
7686
|
var defaultFormatHost = {
|
|
7637
7687
|
getCurrentDirectory: () => ts34.sys.getCurrentDirectory(),
|
|
7638
7688
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -7846,4 +7896,4 @@ export {
|
|
|
7846
7896
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7847
7897
|
* found in the LICENSE file at https://angular.io/license
|
|
7848
7898
|
*/
|
|
7849
|
-
//# sourceMappingURL=chunk-
|
|
7899
|
+
//# sourceMappingURL=chunk-WFZNEQRO.js.map
|