@angular/compiler-cli 17.0.0-next.6 → 17.0.0-next.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-DQ4T2KWL.js → chunk-3NXCUQ44.js} +8 -8
- package/bundles/{chunk-YPVFT2MR.js → chunk-C4TR4DIO.js} +4 -4
- package/bundles/{chunk-W653LDC7.js → chunk-CSOLWS7O.js} +7 -7
- package/bundles/{chunk-OULZQUKT.js → chunk-GYHDNUIK.js} +7 -7
- package/bundles/{chunk-URH5LEAG.js → chunk-HJOPJLIM.js} +5 -5
- package/bundles/{chunk-6MV5LVGW.js → chunk-I3FLXBLP.js} +84 -88
- package/bundles/{chunk-6MV5LVGW.js.map → chunk-I3FLXBLP.js.map} +1 -1
- package/bundles/{chunk-7HFK25CM.js → chunk-PAPUMJUA.js} +27 -27
- package/bundles/{chunk-7YXJWQNF.js → chunk-PBDWVP2J.js} +158 -138
- package/bundles/chunk-PBDWVP2J.js.map +6 -0
- package/bundles/{chunk-HICXNP7M.js → chunk-PYIYPY3X.js} +44 -40
- package/bundles/chunk-PYIYPY3X.js.map +6 -0
- package/bundles/{chunk-CF2CT7RQ.js → chunk-SBDNBITT.js} +3 -3
- package/bundles/{chunk-3O3O4L34.js → chunk-UHYH6BYB.js} +1 -1
- package/bundles/{chunk-T6QZTHEE.js → chunk-W3AMRN7J.js} +5 -5
- 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/linker/src/file_linker/partial_linkers/partial_component_linker_1.d.ts +1 -1
- package/linker/src/file_linker/partial_linkers/partial_linker.d.ts +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -0
- package/package.json +2 -2
- package/src/ngtsc/annotations/component/src/handler.d.ts +1 -2
- package/src/ngtsc/annotations/component/src/resources.d.ts +0 -1
- package/src/ngtsc/core/src/compiler.d.ts +0 -1
- package/src/ngtsc/docs/src/class_extractor.d.ts +3 -1
- package/src/ngtsc/docs/src/entities.d.ts +2 -0
- package/src/ngtsc/docs/src/function_extractor.d.ts +1 -1
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +5 -4
- package/bundles/chunk-7YXJWQNF.js.map +0 -6
- package/bundles/chunk-HICXNP7M.js.map +0 -6
- /package/bundles/{chunk-DQ4T2KWL.js.map → chunk-3NXCUQ44.js.map} +0 -0
- /package/bundles/{chunk-YPVFT2MR.js.map → chunk-C4TR4DIO.js.map} +0 -0
- /package/bundles/{chunk-W653LDC7.js.map → chunk-CSOLWS7O.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-7HFK25CM.js.map → chunk-PAPUMJUA.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
- /package/bundles/{chunk-T6QZTHEE.js.map → chunk-W3AMRN7J.js.map} +0 -0
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
aliasTransformFactory,
|
|
37
37
|
declarationTransformFactory,
|
|
38
38
|
ivyTransformFactory
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-I3FLXBLP.js";
|
|
40
40
|
import {
|
|
41
41
|
ImportManager,
|
|
42
42
|
translateExpression,
|
|
43
43
|
translateType
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3NXCUQ44.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-PAPUMJUA.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-CSOLWS7O.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,7 +130,7 @@ 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/docs/src/entities.mjs
|
|
134
134
|
var EntryType;
|
|
135
135
|
(function(EntryType2) {
|
|
136
136
|
EntryType2["Block"] = "Block";
|
|
@@ -165,11 +165,11 @@ var MemberTags;
|
|
|
165
165
|
MemberTags2["Output"] = "output";
|
|
166
166
|
})(MemberTags || (MemberTags = {}));
|
|
167
167
|
|
|
168
|
-
// bazel-out/
|
|
168
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
169
169
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
170
170
|
import ts36 from "typescript";
|
|
171
171
|
|
|
172
|
-
// bazel-out/
|
|
172
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
173
173
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
174
174
|
import * as path from "path";
|
|
175
175
|
function i18nGetExtension(formatName) {
|
|
@@ -220,10 +220,10 @@ function getPathNormalizer(basePath) {
|
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
// bazel-out/
|
|
223
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
224
224
|
import ts2 from "typescript";
|
|
225
225
|
|
|
226
|
-
// bazel-out/
|
|
226
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
227
227
|
function toNumbers(value) {
|
|
228
228
|
const suffixIndex = value.lastIndexOf("-");
|
|
229
229
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -258,7 +258,7 @@ function compareVersions(v1, v2) {
|
|
|
258
258
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
// bazel-out/
|
|
261
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
262
262
|
var MIN_TS_VERSION = "5.2.0";
|
|
263
263
|
var MAX_TS_VERSION = "5.3.0";
|
|
264
264
|
var tsVersion = ts2.version;
|
|
@@ -271,10 +271,10 @@ function verifySupportedTypeScriptVersion() {
|
|
|
271
271
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
// bazel-out/
|
|
274
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
275
275
|
import ts34 from "typescript";
|
|
276
276
|
|
|
277
|
-
// bazel-out/
|
|
277
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
278
278
|
var CycleAnalyzer = class {
|
|
279
279
|
constructor(importGraph) {
|
|
280
280
|
this.importGraph = importGraph;
|
|
@@ -345,7 +345,7 @@ var Cycle = class {
|
|
|
345
345
|
}
|
|
346
346
|
};
|
|
347
347
|
|
|
348
|
-
// bazel-out/
|
|
348
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
349
349
|
import ts3 from "typescript";
|
|
350
350
|
var ImportGraph = class {
|
|
351
351
|
constructor(checker, perf) {
|
|
@@ -437,7 +437,7 @@ var Found = class {
|
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
439
|
|
|
440
|
-
// bazel-out/
|
|
440
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
|
|
441
441
|
import ts4 from "typescript";
|
|
442
442
|
function extractJsDocTags(node) {
|
|
443
443
|
return ts4.getJSDocTags(node).map((t) => {
|
|
@@ -461,12 +461,12 @@ function extractRawJsDoc(node) {
|
|
|
461
461
|
return (_b = (_a = ts4.getJSDocCommentsAndTags(node).find(ts4.isJSDoc)) == null ? void 0 : _a.getFullText()) != null ? _b : "";
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
-
// bazel-out/
|
|
464
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
|
|
465
465
|
function extractResolvedTypeString(node, checker) {
|
|
466
466
|
return checker.typeToString(checker.getTypeAtLocation(node));
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
// bazel-out/
|
|
469
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
470
470
|
import ts5 from "typescript";
|
|
471
471
|
function extractEnum(declaration, typeChecker) {
|
|
472
472
|
return {
|
|
@@ -495,7 +495,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
495
495
|
return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
// bazel-out/
|
|
498
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
499
499
|
var FunctionExtractor = class {
|
|
500
500
|
constructor(declaration, typeChecker) {
|
|
501
501
|
this.declaration = declaration;
|
|
@@ -525,21 +525,20 @@ var FunctionExtractor = class {
|
|
|
525
525
|
}
|
|
526
526
|
};
|
|
527
527
|
|
|
528
|
-
// bazel-out/
|
|
528
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
529
529
|
import ts7 from "typescript";
|
|
530
530
|
|
|
531
|
-
// bazel-out/
|
|
531
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
532
532
|
import ts6 from "typescript";
|
|
533
533
|
var ClassExtractor = class {
|
|
534
|
-
constructor(declaration,
|
|
534
|
+
constructor(declaration, typeChecker) {
|
|
535
535
|
this.declaration = declaration;
|
|
536
|
-
this.reference = reference;
|
|
537
536
|
this.typeChecker = typeChecker;
|
|
538
537
|
}
|
|
539
538
|
extract() {
|
|
540
539
|
return {
|
|
541
540
|
name: this.declaration.name.text,
|
|
542
|
-
entryType: EntryType.UndecoratedClass,
|
|
541
|
+
entryType: ts6.isInterfaceDeclaration(this.declaration) ? EntryType.Interface : EntryType.UndecoratedClass,
|
|
543
542
|
members: this.extractAllClassMembers(this.declaration),
|
|
544
543
|
description: extractJsDocDescription(this.declaration),
|
|
545
544
|
jsdocTags: extractJsDocTags(this.declaration),
|
|
@@ -559,9 +558,9 @@ var ClassExtractor = class {
|
|
|
559
558
|
return members;
|
|
560
559
|
}
|
|
561
560
|
extractClassMember(memberDeclaration) {
|
|
562
|
-
if (
|
|
561
|
+
if (this.isMethod(memberDeclaration)) {
|
|
563
562
|
return this.extractMethod(memberDeclaration);
|
|
564
|
-
} else if (
|
|
563
|
+
} else if (this.isProperty(memberDeclaration)) {
|
|
565
564
|
return this.extractClassProperty(memberDeclaration);
|
|
566
565
|
} else if (ts6.isAccessor(memberDeclaration)) {
|
|
567
566
|
return this.extractGetterSetter(memberDeclaration);
|
|
@@ -626,12 +625,19 @@ var ClassExtractor = class {
|
|
|
626
625
|
return !member.name || !this.isDocumentableMember(member) || !!((_a = member.modifiers) == null ? void 0 : _a.some((mod) => mod.kind === ts6.SyntaxKind.PrivateKeyword));
|
|
627
626
|
}
|
|
628
627
|
isDocumentableMember(member) {
|
|
629
|
-
return
|
|
628
|
+
return this.isMethod(member) || this.isProperty(member) || ts6.isAccessor(member);
|
|
629
|
+
}
|
|
630
|
+
isProperty(member) {
|
|
631
|
+
return ts6.isPropertyDeclaration(member) || ts6.isPropertySignature(member);
|
|
632
|
+
}
|
|
633
|
+
isMethod(member) {
|
|
634
|
+
return ts6.isMethodDeclaration(member) || ts6.isMethodSignature(member);
|
|
630
635
|
}
|
|
631
636
|
};
|
|
632
637
|
var DirectiveExtractor = class extends ClassExtractor {
|
|
633
638
|
constructor(declaration, reference, metadata, checker) {
|
|
634
|
-
super(declaration,
|
|
639
|
+
super(declaration, checker);
|
|
640
|
+
this.reference = reference;
|
|
635
641
|
this.metadata = metadata;
|
|
636
642
|
}
|
|
637
643
|
extract() {
|
|
@@ -671,7 +677,8 @@ var DirectiveExtractor = class extends ClassExtractor {
|
|
|
671
677
|
};
|
|
672
678
|
var PipeExtractor = class extends ClassExtractor {
|
|
673
679
|
constructor(declaration, reference, metadata, typeChecker) {
|
|
674
|
-
super(declaration,
|
|
680
|
+
super(declaration, typeChecker);
|
|
681
|
+
this.reference = reference;
|
|
675
682
|
this.metadata = metadata;
|
|
676
683
|
}
|
|
677
684
|
extract() {
|
|
@@ -685,7 +692,8 @@ var PipeExtractor = class extends ClassExtractor {
|
|
|
685
692
|
};
|
|
686
693
|
var NgModuleExtractor = class extends ClassExtractor {
|
|
687
694
|
constructor(declaration, reference, metadata, typeChecker) {
|
|
688
|
-
super(declaration,
|
|
695
|
+
super(declaration, typeChecker);
|
|
696
|
+
this.reference = reference;
|
|
689
697
|
this.metadata = metadata;
|
|
690
698
|
}
|
|
691
699
|
extract() {
|
|
@@ -708,12 +716,16 @@ function extractClass(classDeclaration, metadataReader, typeChecker) {
|
|
|
708
716
|
} else if (ngModuleMetadata) {
|
|
709
717
|
extractor = new NgModuleExtractor(classDeclaration, ref, ngModuleMetadata, typeChecker);
|
|
710
718
|
} else {
|
|
711
|
-
extractor = new ClassExtractor(classDeclaration,
|
|
719
|
+
extractor = new ClassExtractor(classDeclaration, typeChecker);
|
|
712
720
|
}
|
|
713
721
|
return extractor.extract();
|
|
714
722
|
}
|
|
723
|
+
function extractInterface(declaration, typeChecker) {
|
|
724
|
+
const extractor = new ClassExtractor(declaration, typeChecker);
|
|
725
|
+
return extractor.extract();
|
|
726
|
+
}
|
|
715
727
|
|
|
716
|
-
// bazel-out/
|
|
728
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
717
729
|
function extractConstant(declaration, typeChecker) {
|
|
718
730
|
const resolvedType = typeChecker.getBaseTypeOfLiteralType(typeChecker.getTypeAtLocation(declaration));
|
|
719
731
|
const variableStatement = declaration.parent.parent;
|
|
@@ -731,7 +743,7 @@ function isSyntheticAngularConstant(declaration) {
|
|
|
731
743
|
return declaration.name.getText() === "USED_FOR_NG_TYPE_CHECKING";
|
|
732
744
|
}
|
|
733
745
|
|
|
734
|
-
// bazel-out/
|
|
746
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
735
747
|
var DocsExtractor = class {
|
|
736
748
|
constructor(typeChecker, metadataReader) {
|
|
737
749
|
this.typeChecker = typeChecker;
|
|
@@ -748,6 +760,9 @@ var DocsExtractor = class {
|
|
|
748
760
|
if (isNamedClassDeclaration(node)) {
|
|
749
761
|
entry = extractClass(node, this.metadataReader, this.typeChecker);
|
|
750
762
|
}
|
|
763
|
+
if (ts7.isInterfaceDeclaration(node)) {
|
|
764
|
+
entry = extractInterface(node, this.typeChecker);
|
|
765
|
+
}
|
|
751
766
|
if (ts7.isFunctionDeclaration(node)) {
|
|
752
767
|
const functionExtractor = new FunctionExtractor(node, this.typeChecker);
|
|
753
768
|
entry = functionExtractor.extract();
|
|
@@ -767,7 +782,7 @@ var DocsExtractor = class {
|
|
|
767
782
|
}
|
|
768
783
|
};
|
|
769
784
|
|
|
770
|
-
// bazel-out/
|
|
785
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
771
786
|
import ts8 from "typescript";
|
|
772
787
|
var FlatIndexGenerator = class {
|
|
773
788
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -792,7 +807,7 @@ export * from '${relativeEntryPoint}';
|
|
|
792
807
|
}
|
|
793
808
|
};
|
|
794
809
|
|
|
795
|
-
// bazel-out/
|
|
810
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
796
811
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
797
812
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
798
813
|
let resolvedEntryPoint = null;
|
|
@@ -808,7 +823,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
808
823
|
return resolvedEntryPoint;
|
|
809
824
|
}
|
|
810
825
|
|
|
811
|
-
// bazel-out/
|
|
826
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
812
827
|
import ts9 from "typescript";
|
|
813
828
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
814
829
|
const diagnostics = [];
|
|
@@ -888,7 +903,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
888
903
|
}
|
|
889
904
|
}
|
|
890
905
|
|
|
891
|
-
// bazel-out/
|
|
906
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
892
907
|
var ReferenceGraph = class {
|
|
893
908
|
constructor() {
|
|
894
909
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -942,7 +957,7 @@ var ReferenceGraph = class {
|
|
|
942
957
|
}
|
|
943
958
|
};
|
|
944
959
|
|
|
945
|
-
// bazel-out/
|
|
960
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
946
961
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
947
962
|
var UpdateMode;
|
|
948
963
|
(function(UpdateMode2) {
|
|
@@ -950,13 +965,13 @@ var UpdateMode;
|
|
|
950
965
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
951
966
|
})(UpdateMode || (UpdateMode = {}));
|
|
952
967
|
|
|
953
|
-
// bazel-out/
|
|
968
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
954
969
|
import ts11 from "typescript";
|
|
955
970
|
|
|
956
|
-
// bazel-out/
|
|
971
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
957
972
|
import ts10 from "typescript";
|
|
958
973
|
|
|
959
|
-
// bazel-out/
|
|
974
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
960
975
|
var NgExtension = Symbol("NgExtension");
|
|
961
976
|
function isExtended(sf) {
|
|
962
977
|
return sf[NgExtension] !== void 0;
|
|
@@ -1016,13 +1031,13 @@ function retagTsFile(sf) {
|
|
|
1016
1031
|
}
|
|
1017
1032
|
}
|
|
1018
1033
|
|
|
1019
|
-
// bazel-out/
|
|
1034
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
1020
1035
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
1021
1036
|
function makeShimFileName(fileName, suffix) {
|
|
1022
1037
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
1023
1038
|
}
|
|
1024
1039
|
|
|
1025
|
-
// bazel-out/
|
|
1040
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
1026
1041
|
var ShimAdapter = class {
|
|
1027
1042
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
1028
1043
|
this.delegate = delegate;
|
|
@@ -1117,7 +1132,7 @@ var ShimAdapter = class {
|
|
|
1117
1132
|
}
|
|
1118
1133
|
};
|
|
1119
1134
|
|
|
1120
|
-
// bazel-out/
|
|
1135
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
1121
1136
|
var ShimReferenceTagger = class {
|
|
1122
1137
|
constructor(shimExtensions) {
|
|
1123
1138
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -1151,7 +1166,7 @@ var ShimReferenceTagger = class {
|
|
|
1151
1166
|
}
|
|
1152
1167
|
};
|
|
1153
1168
|
|
|
1154
|
-
// bazel-out/
|
|
1169
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1155
1170
|
var DelegatingCompilerHost = class {
|
|
1156
1171
|
constructor(delegate) {
|
|
1157
1172
|
this.delegate = delegate;
|
|
@@ -1264,7 +1279,7 @@ var TsCreateProgramDriver = class {
|
|
|
1264
1279
|
}
|
|
1265
1280
|
};
|
|
1266
1281
|
|
|
1267
|
-
// bazel-out/
|
|
1282
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1268
1283
|
var FileDependencyGraph = class {
|
|
1269
1284
|
constructor() {
|
|
1270
1285
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1331,7 +1346,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1331
1346
|
return false;
|
|
1332
1347
|
}
|
|
1333
1348
|
|
|
1334
|
-
// bazel-out/
|
|
1349
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1335
1350
|
var IncrementalStateKind;
|
|
1336
1351
|
(function(IncrementalStateKind2) {
|
|
1337
1352
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1339,7 +1354,7 @@ var IncrementalStateKind;
|
|
|
1339
1354
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1340
1355
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1341
1356
|
|
|
1342
|
-
// bazel-out/
|
|
1357
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1343
1358
|
var PhaseKind;
|
|
1344
1359
|
(function(PhaseKind2) {
|
|
1345
1360
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1540,7 +1555,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1540
1555
|
}
|
|
1541
1556
|
}
|
|
1542
1557
|
|
|
1543
|
-
// bazel-out/
|
|
1558
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1544
1559
|
var TrackedIncrementalBuildStrategy = class {
|
|
1545
1560
|
constructor() {
|
|
1546
1561
|
this.state = null;
|
|
@@ -1576,7 +1591,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1576
1591
|
};
|
|
1577
1592
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1578
1593
|
|
|
1579
|
-
// bazel-out/
|
|
1594
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1580
1595
|
var IdentifierKind;
|
|
1581
1596
|
(function(IdentifierKind2) {
|
|
1582
1597
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1594,7 +1609,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1594
1609
|
}
|
|
1595
1610
|
};
|
|
1596
1611
|
|
|
1597
|
-
// bazel-out/
|
|
1612
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1598
1613
|
var IndexingContext = class {
|
|
1599
1614
|
constructor() {
|
|
1600
1615
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1604,10 +1619,10 @@ var IndexingContext = class {
|
|
|
1604
1619
|
}
|
|
1605
1620
|
};
|
|
1606
1621
|
|
|
1607
|
-
// bazel-out/
|
|
1622
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1608
1623
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1609
1624
|
|
|
1610
|
-
// bazel-out/
|
|
1625
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1611
1626
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1612
1627
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1613
1628
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -1889,7 +1904,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
1889
1904
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
1890
1905
|
}
|
|
1891
1906
|
|
|
1892
|
-
// bazel-out/
|
|
1907
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1893
1908
|
function generateAnalysis(context) {
|
|
1894
1909
|
const analysis = /* @__PURE__ */ new Map();
|
|
1895
1910
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -1925,7 +1940,7 @@ function generateAnalysis(context) {
|
|
|
1925
1940
|
return analysis;
|
|
1926
1941
|
}
|
|
1927
1942
|
|
|
1928
|
-
// bazel-out/
|
|
1943
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
1929
1944
|
var NgModuleIndexImpl = class {
|
|
1930
1945
|
constructor(metaReader, localReader) {
|
|
1931
1946
|
this.metaReader = metaReader;
|
|
@@ -2014,7 +2029,7 @@ var NgModuleIndexImpl = class {
|
|
|
2014
2029
|
}
|
|
2015
2030
|
};
|
|
2016
2031
|
|
|
2017
|
-
// bazel-out/
|
|
2032
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2018
2033
|
import ts12 from "typescript";
|
|
2019
2034
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2020
2035
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -2160,7 +2175,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2160
2175
|
};
|
|
2161
2176
|
}
|
|
2162
2177
|
|
|
2163
|
-
// bazel-out/
|
|
2178
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2164
2179
|
var StandaloneComponentScopeReader = class {
|
|
2165
2180
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
2166
2181
|
this.metaReader = metaReader;
|
|
@@ -2238,10 +2253,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2238
2253
|
}
|
|
2239
2254
|
};
|
|
2240
2255
|
|
|
2241
|
-
// bazel-out/
|
|
2256
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
2242
2257
|
import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr } from "@angular/compiler";
|
|
2243
2258
|
|
|
2244
|
-
// bazel-out/
|
|
2259
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
2245
2260
|
import ts13 from "typescript";
|
|
2246
2261
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
2247
2262
|
var _a;
|
|
@@ -2348,7 +2363,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
2348
2363
|
return ts13.createSourceFile(fileName, template, ts13.ScriptTarget.Latest, false, ts13.ScriptKind.JSX);
|
|
2349
2364
|
}
|
|
2350
2365
|
|
|
2351
|
-
// bazel-out/
|
|
2366
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
2352
2367
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
2353
2368
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
2354
2369
|
function getTemplateId(clazz) {
|
|
@@ -2365,11 +2380,11 @@ function allocateTemplateId(sf) {
|
|
|
2365
2380
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
2366
2381
|
}
|
|
2367
2382
|
|
|
2368
|
-
// bazel-out/
|
|
2383
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2369
2384
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2370
2385
|
import ts15 from "typescript";
|
|
2371
2386
|
|
|
2372
|
-
// bazel-out/
|
|
2387
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
2373
2388
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
2374
2389
|
import ts14 from "typescript";
|
|
2375
2390
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -2499,7 +2514,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
2499
2514
|
}) || false;
|
|
2500
2515
|
}
|
|
2501
2516
|
|
|
2502
|
-
// bazel-out/
|
|
2517
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2503
2518
|
var CompletionEngine = class {
|
|
2504
2519
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
2505
2520
|
this.tcb = tcb;
|
|
@@ -2656,10 +2671,10 @@ var CompletionEngine = class {
|
|
|
2656
2671
|
}
|
|
2657
2672
|
};
|
|
2658
2673
|
|
|
2659
|
-
// bazel-out/
|
|
2674
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
2660
2675
|
import ts29 from "typescript";
|
|
2661
2676
|
|
|
2662
|
-
// bazel-out/
|
|
2677
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
2663
2678
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
2664
2679
|
import ts16 from "typescript";
|
|
2665
2680
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -2712,11 +2727,11 @@ var RegistryDomSchemaChecker = class {
|
|
|
2712
2727
|
}
|
|
2713
2728
|
};
|
|
2714
2729
|
|
|
2715
|
-
// bazel-out/
|
|
2730
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2716
2731
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2717
2732
|
import ts22 from "typescript";
|
|
2718
2733
|
|
|
2719
|
-
// bazel-out/
|
|
2734
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
2720
2735
|
import ts17 from "typescript";
|
|
2721
2736
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
2722
2737
|
ts17.SyntaxKind.ParenthesizedExpression,
|
|
@@ -2790,16 +2805,16 @@ function isAccessExpression(node) {
|
|
|
2790
2805
|
return ts17.isPropertyAccessExpression(node) || ts17.isElementAccessExpression(node);
|
|
2791
2806
|
}
|
|
2792
2807
|
|
|
2793
|
-
// bazel-out/
|
|
2808
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2794
2809
|
import ts21 from "typescript";
|
|
2795
2810
|
|
|
2796
|
-
// bazel-out/
|
|
2811
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2797
2812
|
import ts20 from "typescript";
|
|
2798
2813
|
|
|
2799
|
-
// bazel-out/
|
|
2814
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2800
2815
|
import ts19 from "typescript";
|
|
2801
2816
|
|
|
2802
|
-
// bazel-out/
|
|
2817
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
2803
2818
|
import ts18 from "typescript";
|
|
2804
2819
|
var INELIGIBLE = {};
|
|
2805
2820
|
function canEmitType(type, canEmit) {
|
|
@@ -2874,7 +2889,7 @@ var TypeEmitter = class {
|
|
|
2874
2889
|
}
|
|
2875
2890
|
};
|
|
2876
2891
|
|
|
2877
|
-
// bazel-out/
|
|
2892
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2878
2893
|
var TypeParameterEmitter = class {
|
|
2879
2894
|
constructor(typeParameters, reflector) {
|
|
2880
2895
|
this.typeParameters = typeParameters;
|
|
@@ -2951,7 +2966,7 @@ var TypeParameterEmitter = class {
|
|
|
2951
2966
|
}
|
|
2952
2967
|
};
|
|
2953
2968
|
|
|
2954
|
-
// bazel-out/
|
|
2969
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2955
2970
|
var TcbInliningRequirement;
|
|
2956
2971
|
(function(TcbInliningRequirement2) {
|
|
2957
2972
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -3031,7 +3046,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
3031
3046
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
3032
3047
|
}
|
|
3033
3048
|
|
|
3034
|
-
// bazel-out/
|
|
3049
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
3035
3050
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
3036
3051
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
3037
3052
|
const rawType = ts21.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -3142,7 +3157,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
3142
3157
|
});
|
|
3143
3158
|
}
|
|
3144
3159
|
|
|
3145
|
-
// bazel-out/
|
|
3160
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
3146
3161
|
var Environment = class {
|
|
3147
3162
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
3148
3163
|
this.config = config;
|
|
@@ -3236,7 +3251,7 @@ var Environment = class {
|
|
|
3236
3251
|
}
|
|
3237
3252
|
};
|
|
3238
3253
|
|
|
3239
|
-
// bazel-out/
|
|
3254
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
3240
3255
|
import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
|
|
3241
3256
|
import ts23 from "typescript";
|
|
3242
3257
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
@@ -3392,7 +3407,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
3392
3407
|
};
|
|
3393
3408
|
}
|
|
3394
3409
|
|
|
3395
|
-
// bazel-out/
|
|
3410
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
3396
3411
|
import ts24 from "typescript";
|
|
3397
3412
|
var TypeCheckShimGenerator = class {
|
|
3398
3413
|
constructor() {
|
|
@@ -3410,11 +3425,11 @@ var TypeCheckShimGenerator = class {
|
|
|
3410
3425
|
}
|
|
3411
3426
|
};
|
|
3412
3427
|
|
|
3413
|
-
// bazel-out/
|
|
3428
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3414
3429
|
import { BindingPipe, Call as Call2, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, SafeCall, SafePropertyRead as SafePropertyRead3, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstDeferredBlock, TmplAstElement as TmplAstElement3, TmplAstForLoopBlock, TmplAstIcu, TmplAstIfBlock, TmplAstIfBlockBranch, TmplAstReference as TmplAstReference3, TmplAstSwitchBlock, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable as TmplAstVariable2, TransplantedType } from "@angular/compiler";
|
|
3415
3430
|
import ts27 from "typescript";
|
|
3416
3431
|
|
|
3417
|
-
// bazel-out/
|
|
3432
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
3418
3433
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
3419
3434
|
import ts25 from "typescript";
|
|
3420
3435
|
function wrapForDiagnostics(expr) {
|
|
@@ -3460,7 +3475,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
3460
3475
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
3461
3476
|
}
|
|
3462
3477
|
|
|
3463
|
-
// bazel-out/
|
|
3478
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
3464
3479
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
3465
3480
|
import ts26 from "typescript";
|
|
3466
3481
|
var NULL_AS_ANY = ts26.factory.createAsExpression(ts26.factory.createNull(), ts26.factory.createKeywordTypeNode(ts26.SyntaxKind.AnyKeyword));
|
|
@@ -3793,7 +3808,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
3793
3808
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
3794
3809
|
})();
|
|
3795
3810
|
|
|
3796
|
-
// bazel-out/
|
|
3811
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
3797
3812
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
3798
3813
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
3799
3814
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -3817,7 +3832,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
3817
3832
|
}
|
|
3818
3833
|
};
|
|
3819
3834
|
|
|
3820
|
-
// bazel-out/
|
|
3835
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3821
3836
|
var TcbGenericContextBehavior;
|
|
3822
3837
|
(function(TcbGenericContextBehavior2) {
|
|
3823
3838
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -3826,7 +3841,7 @@ var TcbGenericContextBehavior;
|
|
|
3826
3841
|
})(TcbGenericContextBehavior || (TcbGenericContextBehavior = {}));
|
|
3827
3842
|
function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecorder, genericContextBehavior) {
|
|
3828
3843
|
const tcb = new Context(env, domSchemaChecker, oobRecorder, meta.id, meta.boundTarget, meta.pipes, meta.schemas, meta.isStandalone);
|
|
3829
|
-
const scope = Scope.forNodes(tcb, null, tcb.boundTarget.target.template, null);
|
|
3844
|
+
const scope = Scope.forNodes(tcb, null, null, tcb.boundTarget.target.template, null);
|
|
3830
3845
|
const ctxRawType = env.referenceType(ref);
|
|
3831
3846
|
if (!ts27.isTypeReferenceNode(ctxRawType)) {
|
|
3832
3847
|
throw new Error(`Expected TypeReferenceNode when referencing the ctx param for ${ref.debugName}`);
|
|
@@ -3988,7 +4003,7 @@ var TcbTemplateBodyOp = class extends TcbOp {
|
|
|
3988
4003
|
if (directiveGuards.length > 0) {
|
|
3989
4004
|
guard = directiveGuards.reduce((expr, dirGuard) => ts27.factory.createBinaryExpression(expr, ts27.SyntaxKind.AmpersandAmpersandToken, dirGuard), directiveGuards.pop());
|
|
3990
4005
|
}
|
|
3991
|
-
const tmplScope = Scope.forNodes(this.tcb, this.scope, this.template, guard);
|
|
4006
|
+
const tmplScope = Scope.forNodes(this.tcb, this.scope, this.template, this.template.children, guard);
|
|
3992
4007
|
const statements = tmplScope.render();
|
|
3993
4008
|
if (statements.length === 0) {
|
|
3994
4009
|
return null;
|
|
@@ -4493,8 +4508,20 @@ var TcbIfOp = class extends TcbOp {
|
|
|
4493
4508
|
if (!branch) {
|
|
4494
4509
|
return void 0;
|
|
4495
4510
|
}
|
|
4496
|
-
|
|
4497
|
-
|
|
4511
|
+
if (branch.expression === null) {
|
|
4512
|
+
const branchScope2 = Scope.forNodes(this.tcb, this.scope, null, branch.children, null);
|
|
4513
|
+
return ts27.factory.createBlock(branchScope2.render());
|
|
4514
|
+
}
|
|
4515
|
+
let branchParentScope;
|
|
4516
|
+
if (branch.expressionAlias === null) {
|
|
4517
|
+
branchParentScope = this.scope;
|
|
4518
|
+
} else {
|
|
4519
|
+
branchParentScope = Scope.forNodes(this.tcb, this.scope, branch, [], null);
|
|
4520
|
+
branchParentScope.render().forEach((stmt) => this.scope.addStatement(stmt));
|
|
4521
|
+
}
|
|
4522
|
+
const branchScope = Scope.forNodes(this.tcb, branchParentScope, null, branch.children, null);
|
|
4523
|
+
const expression = branch.expressionAlias === null ? tcbExpression(branch.expression, this.tcb, branchScope) : branchScope.resolve(branch.expressionAlias);
|
|
4524
|
+
return ts27.factory.createIfStatement(expression, ts27.factory.createBlock(branchScope.render()), this.generateBranch(index + 1));
|
|
4498
4525
|
}
|
|
4499
4526
|
};
|
|
4500
4527
|
var TcbSwitchOp = class extends TcbOp {
|
|
@@ -4511,7 +4538,7 @@ var TcbSwitchOp = class extends TcbOp {
|
|
|
4511
4538
|
const clauses = [];
|
|
4512
4539
|
for (const current of this.block.cases) {
|
|
4513
4540
|
const breakStatement = ts27.factory.createBreakStatement();
|
|
4514
|
-
const clauseScope = Scope.forNodes(this.tcb, this.scope, current.children, null);
|
|
4541
|
+
const clauseScope = Scope.forNodes(this.tcb, this.scope, null, current.children, null);
|
|
4515
4542
|
if (current.expression === null) {
|
|
4516
4543
|
clauses.push(ts27.factory.createDefaultClause([...clauseScope.render(), breakStatement]));
|
|
4517
4544
|
} else {
|
|
@@ -4533,9 +4560,9 @@ var TcbForOfOp = class extends TcbOp {
|
|
|
4533
4560
|
return false;
|
|
4534
4561
|
}
|
|
4535
4562
|
execute() {
|
|
4536
|
-
const loopScope = Scope.forNodes(this.tcb, this.scope, this.block, null);
|
|
4563
|
+
const loopScope = Scope.forNodes(this.tcb, this.scope, this.block, this.block.children, null);
|
|
4537
4564
|
const initializer = ts27.factory.createVariableDeclarationList([ts27.factory.createVariableDeclaration(this.block.item.name)], ts27.NodeFlags.Const);
|
|
4538
|
-
const expression = tcbExpression(this.block.expression, this.tcb, loopScope);
|
|
4565
|
+
const expression = ts27.factory.createNonNullExpression(tcbExpression(this.block.expression, this.tcb, loopScope));
|
|
4539
4566
|
const trackTranslator = new TcbForLoopTrackTranslator(this.tcb, loopScope, this.block);
|
|
4540
4567
|
const trackExpression = trackTranslator.translate(this.block.trackBy);
|
|
4541
4568
|
const statements = [
|
|
@@ -4582,39 +4609,33 @@ var Scope = class {
|
|
|
4582
4609
|
this.varMap = /* @__PURE__ */ new Map();
|
|
4583
4610
|
this.statements = [];
|
|
4584
4611
|
}
|
|
4585
|
-
static forNodes(tcb,
|
|
4586
|
-
const scope = new Scope(tcb,
|
|
4587
|
-
if (
|
|
4612
|
+
static forNodes(tcb, parentScope, scopedNode, children, guard) {
|
|
4613
|
+
const scope = new Scope(tcb, parentScope, guard);
|
|
4614
|
+
if (parentScope === null && tcb.env.config.enableTemplateTypeChecker) {
|
|
4588
4615
|
scope.opQueue.push(new TcbComponentContextCompletionOp(scope));
|
|
4589
4616
|
}
|
|
4590
|
-
|
|
4591
|
-
if (blockOrNodes instanceof TmplAstTemplate2) {
|
|
4617
|
+
if (scopedNode instanceof TmplAstTemplate2) {
|
|
4592
4618
|
const varMap = /* @__PURE__ */ new Map();
|
|
4593
|
-
for (const v of
|
|
4619
|
+
for (const v of scopedNode.variables) {
|
|
4594
4620
|
if (!varMap.has(v.name)) {
|
|
4595
4621
|
varMap.set(v.name, v);
|
|
4596
4622
|
} else {
|
|
4597
4623
|
const firstDecl = varMap.get(v.name);
|
|
4598
4624
|
tcb.oobRecorder.duplicateTemplateVar(tcb.id, v, firstDecl);
|
|
4599
4625
|
}
|
|
4600
|
-
this.registerVariable(scope, v, new TcbTemplateVariableOp(tcb, scope,
|
|
4626
|
+
this.registerVariable(scope, v, new TcbTemplateVariableOp(tcb, scope, scopedNode, v));
|
|
4601
4627
|
}
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
const { expression, expressionAlias } = blockOrNodes;
|
|
4628
|
+
} else if (scopedNode instanceof TmplAstIfBlockBranch) {
|
|
4629
|
+
const { expression, expressionAlias } = scopedNode;
|
|
4605
4630
|
if (expression !== null && expressionAlias !== null) {
|
|
4606
4631
|
this.registerVariable(scope, expressionAlias, new TcbBlockVariableOp(tcb, scope, tcbExpression(expression, tcb, scope), expressionAlias));
|
|
4607
4632
|
}
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
for (const variable of Object.values(blockOrNodes.contextVariables)) {
|
|
4633
|
+
} else if (scopedNode instanceof TmplAstForLoopBlock) {
|
|
4634
|
+
this.registerVariable(scope, scopedNode.item, new TcbBlockVariableOp(tcb, scope, ts27.factory.createIdentifier(scopedNode.item.name), scopedNode.item));
|
|
4635
|
+
for (const variable of Object.values(scopedNode.contextVariables)) {
|
|
4612
4636
|
const type = ts27.factory.createKeywordTypeNode(ts27.SyntaxKind.NumberKeyword);
|
|
4613
4637
|
this.registerVariable(scope, variable, new TcbBlockImplicitVariableOp(tcb, scope, type, variable));
|
|
4614
4638
|
}
|
|
4615
|
-
children = blockOrNodes.children;
|
|
4616
|
-
} else {
|
|
4617
|
-
children = blockOrNodes;
|
|
4618
4639
|
}
|
|
4619
4640
|
for (const node of children) {
|
|
4620
4641
|
scope.appendNode(node);
|
|
@@ -5129,7 +5150,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
5129
5150
|
}
|
|
5130
5151
|
};
|
|
5131
5152
|
|
|
5132
|
-
// bazel-out/
|
|
5153
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
5133
5154
|
import ts28 from "typescript";
|
|
5134
5155
|
var TypeCheckFile = class extends Environment {
|
|
5135
5156
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -5165,7 +5186,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
5165
5186
|
}
|
|
5166
5187
|
};
|
|
5167
5188
|
|
|
5168
|
-
// bazel-out/
|
|
5189
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
5169
5190
|
var InliningMode;
|
|
5170
5191
|
(function(InliningMode2) {
|
|
5171
5192
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -5402,10 +5423,10 @@ function splitStringAtPoints(str, points) {
|
|
|
5402
5423
|
return splits;
|
|
5403
5424
|
}
|
|
5404
5425
|
|
|
5405
|
-
// bazel-out/
|
|
5426
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
5406
5427
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
5407
5428
|
|
|
5408
|
-
// bazel-out/
|
|
5429
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
5409
5430
|
var LF_CHAR = 10;
|
|
5410
5431
|
var CR_CHAR = 13;
|
|
5411
5432
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -5446,7 +5467,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
5446
5467
|
return low - 1;
|
|
5447
5468
|
}
|
|
5448
5469
|
|
|
5449
|
-
// bazel-out/
|
|
5470
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
5450
5471
|
var TemplateSource = class {
|
|
5451
5472
|
constructor(mapping, file) {
|
|
5452
5473
|
this.mapping = mapping;
|
|
@@ -5497,7 +5518,7 @@ var TemplateSourceManager = class {
|
|
|
5497
5518
|
}
|
|
5498
5519
|
};
|
|
5499
5520
|
|
|
5500
|
-
// bazel-out/
|
|
5521
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
5501
5522
|
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";
|
|
5502
5523
|
import ts30 from "typescript";
|
|
5503
5524
|
var SymbolBuilder = class {
|
|
@@ -5981,7 +6002,7 @@ function sourceSpanEqual(a, b) {
|
|
|
5981
6002
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
5982
6003
|
}
|
|
5983
6004
|
|
|
5984
|
-
// bazel-out/
|
|
6005
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
5985
6006
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
5986
6007
|
var TemplateTypeCheckerImpl = class {
|
|
5987
6008
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -6678,10 +6699,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
6678
6699
|
}
|
|
6679
6700
|
};
|
|
6680
6701
|
|
|
6681
|
-
// bazel-out/
|
|
6702
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
6682
6703
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
6683
6704
|
|
|
6684
|
-
// bazel-out/
|
|
6705
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
6685
6706
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
6686
6707
|
var TemplateCheckWithVisitor = class {
|
|
6687
6708
|
run(ctx, component, template) {
|
|
@@ -6803,7 +6824,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
6803
6824
|
}
|
|
6804
6825
|
};
|
|
6805
6826
|
|
|
6806
|
-
// bazel-out/
|
|
6827
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
6807
6828
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
6808
6829
|
constructor() {
|
|
6809
6830
|
super(...arguments);
|
|
@@ -6828,7 +6849,7 @@ var factory = {
|
|
|
6828
6849
|
create: () => new InvalidBananaInBoxCheck()
|
|
6829
6850
|
};
|
|
6830
6851
|
|
|
6831
|
-
// bazel-out/
|
|
6852
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
6832
6853
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
6833
6854
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
6834
6855
|
["ngIf", "NgIf"],
|
|
@@ -6873,7 +6894,7 @@ var factory2 = {
|
|
|
6873
6894
|
}
|
|
6874
6895
|
};
|
|
6875
6896
|
|
|
6876
|
-
// bazel-out/
|
|
6897
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
6877
6898
|
import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
|
|
6878
6899
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
6879
6900
|
constructor() {
|
|
@@ -6906,7 +6927,7 @@ var factory3 = {
|
|
|
6906
6927
|
create: () => new MissingNgForOfLetCheck()
|
|
6907
6928
|
};
|
|
6908
6929
|
|
|
6909
|
-
// bazel-out/
|
|
6930
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
6910
6931
|
import { Binary } from "@angular/compiler";
|
|
6911
6932
|
import ts31 from "typescript";
|
|
6912
6933
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6951,7 +6972,7 @@ var factory4 = {
|
|
|
6951
6972
|
}
|
|
6952
6973
|
};
|
|
6953
6974
|
|
|
6954
|
-
// bazel-out/
|
|
6975
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
6955
6976
|
import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
|
|
6956
6977
|
import ts32 from "typescript";
|
|
6957
6978
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6997,7 +7018,7 @@ var factory5 = {
|
|
|
6997
7018
|
}
|
|
6998
7019
|
};
|
|
6999
7020
|
|
|
7000
|
-
// bazel-out/
|
|
7021
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
7001
7022
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
7002
7023
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
7003
7024
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7021,7 +7042,7 @@ var factory6 = {
|
|
|
7021
7042
|
create: () => new SuffixNotSupportedCheck()
|
|
7022
7043
|
};
|
|
7023
7044
|
|
|
7024
|
-
// bazel-out/
|
|
7045
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
7025
7046
|
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
7026
7047
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
7027
7048
|
constructor() {
|
|
@@ -7060,10 +7081,10 @@ var factory7 = {
|
|
|
7060
7081
|
create: () => new TextAttributeNotBindingSpec()
|
|
7061
7082
|
};
|
|
7062
7083
|
|
|
7063
|
-
// bazel-out/
|
|
7084
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
7064
7085
|
import ts33 from "typescript";
|
|
7065
7086
|
|
|
7066
|
-
// bazel-out/
|
|
7087
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
7067
7088
|
var DiagnosticCategoryLabel;
|
|
7068
7089
|
(function(DiagnosticCategoryLabel2) {
|
|
7069
7090
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -7071,7 +7092,7 @@ var DiagnosticCategoryLabel;
|
|
|
7071
7092
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
7072
7093
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
7073
7094
|
|
|
7074
|
-
// bazel-out/
|
|
7095
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
7075
7096
|
var ExtendedTemplateCheckerImpl = class {
|
|
7076
7097
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
7077
7098
|
var _a, _b, _c, _d, _e;
|
|
@@ -7124,7 +7145,7 @@ function assertNever(value) {
|
|
|
7124
7145
|
${value}`);
|
|
7125
7146
|
}
|
|
7126
7147
|
|
|
7127
|
-
// bazel-out/
|
|
7148
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
7128
7149
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
7129
7150
|
factory,
|
|
7130
7151
|
factory4,
|
|
@@ -7135,7 +7156,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
7135
7156
|
factory6
|
|
7136
7157
|
];
|
|
7137
7158
|
|
|
7138
|
-
// bazel-out/
|
|
7159
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
7139
7160
|
var CompilationTicketKind;
|
|
7140
7161
|
(function(CompilationTicketKind2) {
|
|
7141
7162
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -7207,7 +7228,7 @@ var NgCompiler = class {
|
|
|
7207
7228
|
}
|
|
7208
7229
|
}
|
|
7209
7230
|
constructor(adapter, options, inputProgram, programDriver, incrementalStrategy, incrementalCompilation, enableTemplateTypeChecker, usePoisonedData, livePerfRecorder) {
|
|
7210
|
-
var _a
|
|
7231
|
+
var _a;
|
|
7211
7232
|
this.adapter = adapter;
|
|
7212
7233
|
this.options = options;
|
|
7213
7234
|
this.inputProgram = inputProgram;
|
|
@@ -7221,7 +7242,6 @@ var NgCompiler = class {
|
|
|
7221
7242
|
this.nonTemplateDiagnostics = null;
|
|
7222
7243
|
this.delegatingPerfRecorder = new DelegatingPerfRecorder(this.perfRecorder);
|
|
7223
7244
|
this.enableTemplateTypeChecker = enableTemplateTypeChecker || ((_a = options["_enableTemplateTypeChecker"]) != null ? _a : false);
|
|
7224
|
-
this.enabledBlockTypes = new Set((_b = options["_enabledBlockTypes"]) != null ? _b : []);
|
|
7225
7245
|
this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options));
|
|
7226
7246
|
this.currentProgram = inputProgram;
|
|
7227
7247
|
this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
|
|
@@ -7701,7 +7721,7 @@ var NgCompiler = class {
|
|
|
7701
7721
|
throw new Error('JIT mode support ("supportJitMode" option) cannot be disabled in partial compilation mode.');
|
|
7702
7722
|
}
|
|
7703
7723
|
const handlers = [
|
|
7704
|
-
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.
|
|
7724
|
+
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.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, supportTestBed, compilationMode, deferredSymbolsTracker),
|
|
7705
7725
|
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
7706
7726
|
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
7707
7727
|
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
@@ -7892,7 +7912,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
7892
7912
|
return versions;
|
|
7893
7913
|
}
|
|
7894
7914
|
|
|
7895
|
-
// bazel-out/
|
|
7915
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
7896
7916
|
import ts35 from "typescript";
|
|
7897
7917
|
var DelegatingCompilerHost2 = class {
|
|
7898
7918
|
constructor(delegate) {
|
|
@@ -8025,7 +8045,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
8025
8045
|
}
|
|
8026
8046
|
};
|
|
8027
8047
|
|
|
8028
|
-
// bazel-out/
|
|
8048
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
8029
8049
|
var NgtscProgram = class {
|
|
8030
8050
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
8031
8051
|
this.options = options;
|
|
@@ -8252,15 +8272,15 @@ function mergeEmitResults(emitResults) {
|
|
|
8252
8272
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
8253
8273
|
}
|
|
8254
8274
|
|
|
8255
|
-
// bazel-out/
|
|
8275
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
8256
8276
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
8257
8277
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
8258
8278
|
}
|
|
8259
8279
|
|
|
8260
|
-
// bazel-out/
|
|
8280
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
8261
8281
|
import ts38 from "typescript";
|
|
8262
8282
|
|
|
8263
|
-
// bazel-out/
|
|
8283
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
8264
8284
|
import ts37 from "typescript";
|
|
8265
8285
|
function createMessageDiagnostic(messageText) {
|
|
8266
8286
|
return {
|
|
@@ -8274,7 +8294,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
8274
8294
|
};
|
|
8275
8295
|
}
|
|
8276
8296
|
|
|
8277
|
-
// bazel-out/
|
|
8297
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
8278
8298
|
var defaultFormatHost = {
|
|
8279
8299
|
getCurrentDirectory: () => ts38.sys.getCurrentDirectory(),
|
|
8280
8300
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -8491,4 +8511,4 @@ export {
|
|
|
8491
8511
|
* Use of this source code is governed by an MIT-style license that can be
|
|
8492
8512
|
* found in the LICENSE file at https://angular.io/license
|
|
8493
8513
|
*/
|
|
8494
|
-
//# sourceMappingURL=chunk-
|
|
8514
|
+
//# sourceMappingURL=chunk-PBDWVP2J.js.map
|