@angular/compiler-cli 19.0.0-next.9 → 19.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/{chunk-5W3ITOS7.js → chunk-4W4CWRSP.js} +5 -5
- package/bundles/{chunk-3Z25BX6N.js → chunk-5UDS2TPQ.js} +25 -18
- package/bundles/chunk-5UDS2TPQ.js.map +6 -0
- package/bundles/{chunk-RT2QTF73.js → chunk-GBKXY6BH.js} +4 -3
- package/bundles/{chunk-RT2QTF73.js.map → chunk-GBKXY6BH.js.map} +1 -1
- package/bundles/{chunk-XSNUHRLJ.js → chunk-I6R3GL3L.js} +12 -6
- package/bundles/{chunk-XSNUHRLJ.js.map → chunk-I6R3GL3L.js.map} +1 -1
- package/bundles/{chunk-XI2RTGAL.js → chunk-KPQ72R34.js} +9 -2
- package/bundles/{chunk-XP6IMCQP.js → chunk-NS33RCEE.js} +12 -12
- package/bundles/{chunk-JF4LKQQP.js → chunk-PXQLBKVP.js} +88 -51
- package/bundles/chunk-PXQLBKVP.js.map +6 -0
- package/bundles/{chunk-GCXHOI3T.js → chunk-S2JI2WY5.js} +948 -365
- package/bundles/chunk-S2JI2WY5.js.map +6 -0
- package/bundles/{chunk-UJ2J6WV4.js → chunk-STORTTKY.js} +16 -14
- package/bundles/chunk-STORTTKY.js.map +6 -0
- package/bundles/{chunk-U6J7NRJM.js → chunk-TQQOHNLL.js} +288 -173
- package/bundles/chunk-TQQOHNLL.js.map +6 -0
- package/bundles/{chunk-OSPR7JSU.js → chunk-TRCFFQ47.js} +147 -82
- package/bundles/chunk-TRCFFQ47.js.map +6 -0
- package/bundles/{chunk-ZQ7CP635.js → chunk-V2Z4WDVR.js} +3 -3
- package/bundles/index.js +18 -17
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +32 -32
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +5 -5
- package/bundles/ngcc/index.js +1 -1
- package/bundles/private/bazel.js +2 -2
- package/bundles/private/localize.js +4 -4
- package/bundles/private/migrations.js +5 -5
- package/bundles/private/tooling.js +7 -7
- 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/babel/src/ast/babel_ast_factory.d.ts +2 -2
- package/linker/src/file_linker/partial_linkers/partial_directive_linker_1.d.ts +2 -2
- package/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.d.ts +2 -2
- package/linker/src/file_linker/partial_linkers/util.d.ts +2 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/common/src/debug_info.d.ts +2 -1
- package/src/ngtsc/annotations/common/src/util.d.ts +1 -1
- package/src/ngtsc/annotations/component/src/handler.d.ts +8 -3
- package/src/ngtsc/annotations/directive/src/handler.d.ts +2 -1
- package/src/ngtsc/annotations/directive/src/shared.d.ts +1 -1
- package/src/ngtsc/annotations/src/pipe.d.ts +2 -1
- package/src/ngtsc/core/src/compiler.d.ts +7 -0
- package/src/ngtsc/hmr/index.d.ts +9 -0
- package/src/ngtsc/hmr/src/extract_locals.d.ts +20 -0
- package/src/ngtsc/hmr/src/metadata.d.ts +23 -0
- package/src/ngtsc/hmr/src/update_declaration.d.ts +17 -0
- package/src/ngtsc/imports/src/core.d.ts +6 -0
- package/src/ngtsc/transform/src/api.d.ts +4 -0
- package/src/ngtsc/transform/src/compilation.d.ts +1 -0
- package/src/ngtsc/translator/src/api/ast_factory.d.ts +2 -2
- package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +2 -2
- package/src/ngtsc/util/src/path.d.ts +9 -0
- package/bundles/chunk-3Z25BX6N.js.map +0 -6
- package/bundles/chunk-GCXHOI3T.js.map +0 -6
- package/bundles/chunk-JF4LKQQP.js.map +0 -6
- package/bundles/chunk-OSPR7JSU.js.map +0 -6
- package/bundles/chunk-U6J7NRJM.js.map +0 -6
- package/bundles/chunk-UJ2J6WV4.js.map +0 -6
- /package/bundles/{chunk-5W3ITOS7.js.map → chunk-4W4CWRSP.js.map} +0 -0
- /package/bundles/{chunk-XI2RTGAL.js.map → chunk-KPQ72R34.js.map} +0 -0
- /package/bundles/{chunk-XP6IMCQP.js.map → chunk-NS33RCEE.js.map} +0 -0
- /package/bundles/{chunk-ZQ7CP635.js.map → chunk-V2Z4WDVR.js.map} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
angularJitApplicationTransform
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NS33RCEE.js";
|
|
8
8
|
import {
|
|
9
9
|
CompilationMode,
|
|
10
10
|
ComponentDecoratorHandler,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
retagAllTsFiles,
|
|
52
52
|
tryParseInitializerApi,
|
|
53
53
|
untagAllTsFiles
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-S2JI2WY5.js";
|
|
55
55
|
import {
|
|
56
56
|
AbsoluteModuleStrategy,
|
|
57
57
|
AliasStrategy,
|
|
@@ -88,14 +88,14 @@ import {
|
|
|
88
88
|
relativePathBetween,
|
|
89
89
|
replaceTsWithNgInErrors,
|
|
90
90
|
toUnredirectedSourceFile
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-TRCFFQ47.js";
|
|
92
92
|
import {
|
|
93
93
|
ActivePerfRecorder,
|
|
94
94
|
DelegatingPerfRecorder,
|
|
95
95
|
PerfCheckpoint,
|
|
96
96
|
PerfEvent,
|
|
97
97
|
PerfPhase
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-I6R3GL3L.js";
|
|
99
99
|
import {
|
|
100
100
|
LogicalFileSystem,
|
|
101
101
|
absoluteFrom,
|
|
@@ -105,9 +105,9 @@ import {
|
|
|
105
105
|
getFileSystem,
|
|
106
106
|
join,
|
|
107
107
|
resolve
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-STORTTKY.js";
|
|
109
109
|
|
|
110
|
-
// bazel-out/
|
|
110
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
111
111
|
var DEFAULT_ERROR_CODE = 100;
|
|
112
112
|
var UNKNOWN_ERROR_CODE = 500;
|
|
113
113
|
var SOURCE = "angular";
|
|
@@ -125,7 +125,7 @@ var EmitFlags;
|
|
|
125
125
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
126
126
|
})(EmitFlags || (EmitFlags = {}));
|
|
127
127
|
|
|
128
|
-
// bazel-out/
|
|
128
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
129
129
|
import ts from "typescript";
|
|
130
130
|
var wrapHostForTest = null;
|
|
131
131
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -135,7 +135,7 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
135
135
|
return tsHost;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
// bazel-out/
|
|
138
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
|
|
139
139
|
var EntryType;
|
|
140
140
|
(function(EntryType2) {
|
|
141
141
|
EntryType2["Block"] = "block";
|
|
@@ -182,23 +182,23 @@ function isDocEntryWithSourceInfo(entry) {
|
|
|
182
182
|
return "source" in entry;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
// bazel-out/
|
|
185
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
186
186
|
import ts11 from "typescript";
|
|
187
187
|
|
|
188
|
-
// bazel-out/
|
|
188
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
189
189
|
import ts5 from "typescript";
|
|
190
190
|
|
|
191
|
-
// bazel-out/
|
|
191
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
|
|
192
192
|
function isAngularPrivateName(name) {
|
|
193
193
|
var _a;
|
|
194
194
|
const firstChar = (_a = name[0]) != null ? _a : "";
|
|
195
195
|
return firstChar === "\u0275" || firstChar === "_";
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
// bazel-out/
|
|
198
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
199
199
|
import ts3 from "typescript";
|
|
200
200
|
|
|
201
|
-
// bazel-out/
|
|
201
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
|
|
202
202
|
function extractGenerics(declaration) {
|
|
203
203
|
var _a, _b;
|
|
204
204
|
return (_b = (_a = declaration.typeParameters) == null ? void 0 : _a.map((typeParam) => {
|
|
@@ -211,7 +211,7 @@ function extractGenerics(declaration) {
|
|
|
211
211
|
})) != null ? _b : [];
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
// bazel-out/
|
|
214
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
|
|
215
215
|
import ts2 from "typescript";
|
|
216
216
|
var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf|ViewChild|ViewChildren|ContentChild|ContentChildren))/g;
|
|
217
217
|
function extractJsDocTags(node) {
|
|
@@ -255,13 +255,16 @@ function unescapeAngularDecorators(comment) {
|
|
|
255
255
|
return comment.replace(/_NG_AT_/g, "@");
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
// bazel-out/
|
|
258
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
|
|
259
259
|
function extractResolvedTypeString(node, checker) {
|
|
260
260
|
return checker.typeToString(checker.getTypeAtLocation(node));
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
// bazel-out/
|
|
263
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
264
264
|
var FunctionExtractor = class {
|
|
265
|
+
name;
|
|
266
|
+
exportDeclaration;
|
|
267
|
+
typeChecker;
|
|
265
268
|
constructor(name, exportDeclaration, typeChecker) {
|
|
266
269
|
this.name = name;
|
|
267
270
|
this.exportDeclaration = exportDeclaration;
|
|
@@ -348,7 +351,7 @@ function findImplementationOfFunction(node, typeChecker) {
|
|
|
348
351
|
return implementation;
|
|
349
352
|
}
|
|
350
353
|
|
|
351
|
-
// bazel-out/
|
|
354
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/internal.mjs
|
|
352
355
|
import ts4 from "typescript";
|
|
353
356
|
function isInternal(member) {
|
|
354
357
|
return extractJsDocTags(member).some((tag) => tag.name === "internal") || hasLeadingInternalComment(member);
|
|
@@ -367,8 +370,10 @@ function hasLeadingInternalComment(member) {
|
|
|
367
370
|
)) != null ? _a : false;
|
|
368
371
|
}
|
|
369
372
|
|
|
370
|
-
// bazel-out/
|
|
373
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
371
374
|
var ClassExtractor = class {
|
|
375
|
+
declaration;
|
|
376
|
+
typeChecker;
|
|
372
377
|
constructor(declaration, typeChecker) {
|
|
373
378
|
this.declaration = declaration;
|
|
374
379
|
this.typeChecker = typeChecker;
|
|
@@ -505,9 +510,15 @@ var ClassExtractor = class {
|
|
|
505
510
|
return result;
|
|
506
511
|
}
|
|
507
512
|
filterMethodOverloads(declarations) {
|
|
508
|
-
return declarations.filter((declaration) => {
|
|
513
|
+
return declarations.filter((declaration, index) => {
|
|
514
|
+
var _a;
|
|
509
515
|
if (ts5.isFunctionDeclaration(declaration) || ts5.isMethodDeclaration(declaration)) {
|
|
510
|
-
|
|
516
|
+
if (ts5.getCombinedModifierFlags(declaration) & ts5.ModifierFlags.Abstract) {
|
|
517
|
+
const previousDeclaration = declarations[index - 1];
|
|
518
|
+
const samePreviousAbstractMethod = previousDeclaration && ts5.isMethodDeclaration(previousDeclaration) && ts5.getCombinedModifierFlags(previousDeclaration) & ts5.ModifierFlags.Abstract && previousDeclaration.name.getText() === ((_a = declaration.name) == null ? void 0 : _a.getText());
|
|
519
|
+
return !samePreviousAbstractMethod;
|
|
520
|
+
}
|
|
521
|
+
return !!declaration.body;
|
|
511
522
|
}
|
|
512
523
|
return true;
|
|
513
524
|
});
|
|
@@ -567,6 +578,8 @@ var ClassExtractor = class {
|
|
|
567
578
|
}
|
|
568
579
|
};
|
|
569
580
|
var DirectiveExtractor = class extends ClassExtractor {
|
|
581
|
+
reference;
|
|
582
|
+
metadata;
|
|
570
583
|
constructor(declaration, reference, metadata, checker) {
|
|
571
584
|
super(declaration, checker);
|
|
572
585
|
this.reference = reference;
|
|
@@ -609,6 +622,8 @@ var DirectiveExtractor = class extends ClassExtractor {
|
|
|
609
622
|
}
|
|
610
623
|
};
|
|
611
624
|
var PipeExtractor = class extends ClassExtractor {
|
|
625
|
+
reference;
|
|
626
|
+
metadata;
|
|
612
627
|
constructor(declaration, reference, metadata, typeChecker) {
|
|
613
628
|
super(declaration, typeChecker);
|
|
614
629
|
this.reference = reference;
|
|
@@ -624,6 +639,8 @@ var PipeExtractor = class extends ClassExtractor {
|
|
|
624
639
|
}
|
|
625
640
|
};
|
|
626
641
|
var NgModuleExtractor = class extends ClassExtractor {
|
|
642
|
+
reference;
|
|
643
|
+
metadata;
|
|
627
644
|
constructor(declaration, reference, metadata, typeChecker) {
|
|
628
645
|
super(declaration, typeChecker);
|
|
629
646
|
this.reference = reference;
|
|
@@ -658,7 +675,7 @@ function extractInterface(declaration, typeChecker) {
|
|
|
658
675
|
return extractor.extract();
|
|
659
676
|
}
|
|
660
677
|
|
|
661
|
-
// bazel-out/
|
|
678
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
662
679
|
import ts6 from "typescript";
|
|
663
680
|
var LITERAL_AS_ENUM_TAG = "object-literal-as-enum";
|
|
664
681
|
function extractConstant(declaration, typeChecker) {
|
|
@@ -716,7 +733,7 @@ function extractLiteralPropertiesAsEnumMembers(declaration) {
|
|
|
716
733
|
});
|
|
717
734
|
}
|
|
718
735
|
|
|
719
|
-
// bazel-out/
|
|
736
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
|
|
720
737
|
import ts7 from "typescript";
|
|
721
738
|
function extractorDecorator(declaration, typeChecker) {
|
|
722
739
|
const documentedNode = getDecoratorJsDocNode(declaration);
|
|
@@ -789,7 +806,7 @@ function getDecoratorJsDocNode(declaration) {
|
|
|
789
806
|
return callSignature;
|
|
790
807
|
}
|
|
791
808
|
|
|
792
|
-
// bazel-out/
|
|
809
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
793
810
|
import ts8 from "typescript";
|
|
794
811
|
function extractEnum(declaration, typeChecker) {
|
|
795
812
|
return {
|
|
@@ -820,7 +837,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
820
837
|
return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
|
|
821
838
|
}
|
|
822
839
|
|
|
823
|
-
// bazel-out/
|
|
840
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/initializer_api_function_extractor.mjs
|
|
824
841
|
import ts9 from "typescript";
|
|
825
842
|
var initializerApiTag = "initializerApiFunction";
|
|
826
843
|
function isInitializerApiFunction(node, typeChecker) {
|
|
@@ -929,7 +946,7 @@ function extractFunctionWithOverloads(name, type, typeChecker) {
|
|
|
929
946
|
};
|
|
930
947
|
}
|
|
931
948
|
|
|
932
|
-
// bazel-out/
|
|
949
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
933
950
|
function extractTypeAlias(declaration) {
|
|
934
951
|
return {
|
|
935
952
|
name: declaration.name.getText(),
|
|
@@ -941,7 +958,7 @@ function extractTypeAlias(declaration) {
|
|
|
941
958
|
};
|
|
942
959
|
}
|
|
943
960
|
|
|
944
|
-
// bazel-out/
|
|
961
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/import_extractor.mjs
|
|
945
962
|
import ts10 from "typescript";
|
|
946
963
|
function getImportedSymbols(sourceFile) {
|
|
947
964
|
const importSpecifiers = /* @__PURE__ */ new Map();
|
|
@@ -966,8 +983,10 @@ function getImportedSymbols(sourceFile) {
|
|
|
966
983
|
return importSpecifiers;
|
|
967
984
|
}
|
|
968
985
|
|
|
969
|
-
// bazel-out/
|
|
986
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
970
987
|
var DocsExtractor = class {
|
|
988
|
+
typeChecker;
|
|
989
|
+
metadataReader;
|
|
971
990
|
constructor(typeChecker, metadataReader) {
|
|
972
991
|
this.typeChecker = typeChecker;
|
|
973
992
|
this.metadataReader = metadataReader;
|
|
@@ -1052,11 +1071,11 @@ function getRelativeFilePath(sourceFile, rootDir) {
|
|
|
1052
1071
|
return relativePath;
|
|
1053
1072
|
}
|
|
1054
1073
|
|
|
1055
|
-
// bazel-out/
|
|
1074
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
1056
1075
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
1057
1076
|
import ts26 from "typescript";
|
|
1058
1077
|
|
|
1059
|
-
// bazel-out/
|
|
1078
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
1060
1079
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
1061
1080
|
import * as path from "path";
|
|
1062
1081
|
function i18nGetExtension(formatName) {
|
|
@@ -1087,9 +1106,7 @@ function i18nSerialize(bundle, formatName, options) {
|
|
|
1087
1106
|
let serializer;
|
|
1088
1107
|
switch (format) {
|
|
1089
1108
|
case "xmb":
|
|
1090
|
-
serializer = new Xmb(
|
|
1091
|
-
options.i18nPreserveWhitespaceForLegacyExtraction
|
|
1092
|
-
);
|
|
1109
|
+
serializer = new Xmb();
|
|
1093
1110
|
break;
|
|
1094
1111
|
case "xliff2":
|
|
1095
1112
|
case "xlf2":
|
|
@@ -1109,10 +1126,10 @@ function getPathNormalizer(basePath) {
|
|
|
1109
1126
|
};
|
|
1110
1127
|
}
|
|
1111
1128
|
|
|
1112
|
-
// bazel-out/
|
|
1129
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1113
1130
|
import ts12 from "typescript";
|
|
1114
1131
|
|
|
1115
|
-
// bazel-out/
|
|
1132
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
1116
1133
|
function toNumbers(value) {
|
|
1117
1134
|
const suffixIndex = value.lastIndexOf("-");
|
|
1118
1135
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -1147,7 +1164,7 @@ function compareVersions(v1, v2) {
|
|
|
1147
1164
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
1148
1165
|
}
|
|
1149
1166
|
|
|
1150
|
-
// bazel-out/
|
|
1167
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1151
1168
|
var MIN_TS_VERSION = "5.5.0";
|
|
1152
1169
|
var MAX_TS_VERSION = "5.7.0";
|
|
1153
1170
|
var tsVersion = ts12.version;
|
|
@@ -1160,15 +1177,16 @@ function verifySupportedTypeScriptVersion() {
|
|
|
1160
1177
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
1161
1178
|
}
|
|
1162
1179
|
|
|
1163
|
-
// bazel-out/
|
|
1180
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
1164
1181
|
import { R3Identifiers } from "@angular/compiler";
|
|
1165
1182
|
import ts24 from "typescript";
|
|
1166
1183
|
|
|
1167
|
-
// bazel-out/
|
|
1184
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
1168
1185
|
var CycleAnalyzer = class {
|
|
1186
|
+
importGraph;
|
|
1187
|
+
cachedResults = null;
|
|
1169
1188
|
constructor(importGraph) {
|
|
1170
1189
|
this.importGraph = importGraph;
|
|
1171
|
-
this.cachedResults = null;
|
|
1172
1190
|
}
|
|
1173
1191
|
wouldCreateCycle(from, to) {
|
|
1174
1192
|
if (this.cachedResults === null || this.cachedResults.from !== from) {
|
|
@@ -1183,11 +1201,13 @@ var CycleAnalyzer = class {
|
|
|
1183
1201
|
};
|
|
1184
1202
|
var NgCyclicResult = Symbol("NgCyclicResult");
|
|
1185
1203
|
var CycleResults = class {
|
|
1204
|
+
from;
|
|
1205
|
+
importGraph;
|
|
1206
|
+
cyclic = {};
|
|
1207
|
+
acyclic = {};
|
|
1186
1208
|
constructor(from, importGraph) {
|
|
1187
1209
|
this.from = from;
|
|
1188
1210
|
this.importGraph = importGraph;
|
|
1189
|
-
this.cyclic = {};
|
|
1190
|
-
this.acyclic = {};
|
|
1191
1211
|
}
|
|
1192
1212
|
wouldBeCyclic(sf) {
|
|
1193
1213
|
const cached = this.getCachedResult(sf);
|
|
@@ -1225,6 +1245,9 @@ var CycleResults = class {
|
|
|
1225
1245
|
}
|
|
1226
1246
|
};
|
|
1227
1247
|
var Cycle = class {
|
|
1248
|
+
importGraph;
|
|
1249
|
+
from;
|
|
1250
|
+
to;
|
|
1228
1251
|
constructor(importGraph, from, to) {
|
|
1229
1252
|
this.importGraph = importGraph;
|
|
1230
1253
|
this.from = from;
|
|
@@ -1235,13 +1258,15 @@ var Cycle = class {
|
|
|
1235
1258
|
}
|
|
1236
1259
|
};
|
|
1237
1260
|
|
|
1238
|
-
// bazel-out/
|
|
1261
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
1239
1262
|
import ts13 from "typescript";
|
|
1240
1263
|
var ImportGraph = class {
|
|
1264
|
+
checker;
|
|
1265
|
+
perf;
|
|
1266
|
+
imports = /* @__PURE__ */ new Map();
|
|
1241
1267
|
constructor(checker, perf) {
|
|
1242
1268
|
this.checker = checker;
|
|
1243
1269
|
this.perf = perf;
|
|
1244
|
-
this.imports = /* @__PURE__ */ new Map();
|
|
1245
1270
|
}
|
|
1246
1271
|
importsOf(sf) {
|
|
1247
1272
|
if (!this.imports.has(sf)) {
|
|
@@ -1312,6 +1337,8 @@ function isTypeOnlyImportClause(node) {
|
|
|
1312
1337
|
return false;
|
|
1313
1338
|
}
|
|
1314
1339
|
var Found = class {
|
|
1340
|
+
sourceFile;
|
|
1341
|
+
parent;
|
|
1315
1342
|
constructor(sourceFile, parent) {
|
|
1316
1343
|
this.sourceFile = sourceFile;
|
|
1317
1344
|
this.parent = parent;
|
|
@@ -1327,13 +1354,16 @@ var Found = class {
|
|
|
1327
1354
|
}
|
|
1328
1355
|
};
|
|
1329
1356
|
|
|
1330
|
-
// bazel-out/
|
|
1357
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
1331
1358
|
import ts14 from "typescript";
|
|
1332
1359
|
var FlatIndexGenerator = class {
|
|
1360
|
+
entryPoint;
|
|
1361
|
+
moduleName;
|
|
1362
|
+
flatIndexPath;
|
|
1363
|
+
shouldEmit = true;
|
|
1333
1364
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
1334
1365
|
this.entryPoint = entryPoint;
|
|
1335
1366
|
this.moduleName = moduleName;
|
|
1336
|
-
this.shouldEmit = true;
|
|
1337
1367
|
this.flatIndexPath = join(dirname(entryPoint), relativeFlatIndexPath).replace(/\.js$/, "") + ".ts";
|
|
1338
1368
|
}
|
|
1339
1369
|
makeTopLevelShim() {
|
|
@@ -1352,7 +1382,7 @@ export * from '${relativeEntryPoint}';
|
|
|
1352
1382
|
}
|
|
1353
1383
|
};
|
|
1354
1384
|
|
|
1355
|
-
// bazel-out/
|
|
1385
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
1356
1386
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
1357
1387
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
1358
1388
|
let resolvedEntryPoint = null;
|
|
@@ -1368,7 +1398,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
1368
1398
|
return resolvedEntryPoint;
|
|
1369
1399
|
}
|
|
1370
1400
|
|
|
1371
|
-
// bazel-out/
|
|
1401
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
1372
1402
|
import ts15 from "typescript";
|
|
1373
1403
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
1374
1404
|
const diagnostics = [];
|
|
@@ -1448,11 +1478,9 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
1448
1478
|
}
|
|
1449
1479
|
}
|
|
1450
1480
|
|
|
1451
|
-
// bazel-out/
|
|
1481
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
1452
1482
|
var ReferenceGraph = class {
|
|
1453
|
-
|
|
1454
|
-
this.references = /* @__PURE__ */ new Map();
|
|
1455
|
-
}
|
|
1483
|
+
references = /* @__PURE__ */ new Map();
|
|
1456
1484
|
add(from, to) {
|
|
1457
1485
|
if (!this.references.has(from)) {
|
|
1458
1486
|
this.references.set(from, /* @__PURE__ */ new Set());
|
|
@@ -1502,11 +1530,9 @@ var ReferenceGraph = class {
|
|
|
1502
1530
|
}
|
|
1503
1531
|
};
|
|
1504
1532
|
|
|
1505
|
-
// bazel-out/
|
|
1533
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1506
1534
|
var FileDependencyGraph = class {
|
|
1507
|
-
|
|
1508
|
-
this.nodes = /* @__PURE__ */ new Map();
|
|
1509
|
-
}
|
|
1535
|
+
nodes = /* @__PURE__ */ new Map();
|
|
1510
1536
|
addDependency(from, on) {
|
|
1511
1537
|
this.nodeFor(from).dependsOn.add(absoluteFromSourceFile(on));
|
|
1512
1538
|
}
|
|
@@ -1569,7 +1595,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1569
1595
|
return false;
|
|
1570
1596
|
}
|
|
1571
1597
|
|
|
1572
|
-
// bazel-out/
|
|
1598
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1573
1599
|
var IncrementalStateKind;
|
|
1574
1600
|
(function(IncrementalStateKind2) {
|
|
1575
1601
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1577,13 +1603,18 @@ var IncrementalStateKind;
|
|
|
1577
1603
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1578
1604
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1579
1605
|
|
|
1580
|
-
// bazel-out/
|
|
1606
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1581
1607
|
var PhaseKind;
|
|
1582
1608
|
(function(PhaseKind2) {
|
|
1583
1609
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
1584
1610
|
PhaseKind2[PhaseKind2["TypeCheckAndEmit"] = 1] = "TypeCheckAndEmit";
|
|
1585
1611
|
})(PhaseKind || (PhaseKind = {}));
|
|
1586
1612
|
var IncrementalCompilation = class {
|
|
1613
|
+
depGraph;
|
|
1614
|
+
versions;
|
|
1615
|
+
step;
|
|
1616
|
+
phase;
|
|
1617
|
+
_state;
|
|
1587
1618
|
constructor(state, depGraph, versions, step) {
|
|
1588
1619
|
this.depGraph = depGraph;
|
|
1589
1620
|
this.versions = versions;
|
|
@@ -1778,12 +1809,10 @@ function toOriginalSourceFile(sf) {
|
|
|
1778
1809
|
}
|
|
1779
1810
|
}
|
|
1780
1811
|
|
|
1781
|
-
// bazel-out/
|
|
1812
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1782
1813
|
var TrackedIncrementalBuildStrategy = class {
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
this.isSet = false;
|
|
1786
|
-
}
|
|
1814
|
+
state = null;
|
|
1815
|
+
isSet = false;
|
|
1787
1816
|
getIncrementalState() {
|
|
1788
1817
|
return this.state;
|
|
1789
1818
|
}
|
|
@@ -1814,7 +1843,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1814
1843
|
};
|
|
1815
1844
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1816
1845
|
|
|
1817
|
-
// bazel-out/
|
|
1846
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1818
1847
|
var IdentifierKind;
|
|
1819
1848
|
(function(IdentifierKind2) {
|
|
1820
1849
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1827,36 +1856,40 @@ var IdentifierKind;
|
|
|
1827
1856
|
IdentifierKind2[IdentifierKind2["LetDeclaration"] = 7] = "LetDeclaration";
|
|
1828
1857
|
})(IdentifierKind || (IdentifierKind = {}));
|
|
1829
1858
|
var AbsoluteSourceSpan = class {
|
|
1859
|
+
start;
|
|
1860
|
+
end;
|
|
1830
1861
|
constructor(start, end) {
|
|
1831
1862
|
this.start = start;
|
|
1832
1863
|
this.end = end;
|
|
1833
1864
|
}
|
|
1834
1865
|
};
|
|
1835
1866
|
|
|
1836
|
-
// bazel-out/
|
|
1867
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1837
1868
|
var IndexingContext = class {
|
|
1838
|
-
|
|
1839
|
-
this.components = /* @__PURE__ */ new Set();
|
|
1840
|
-
}
|
|
1869
|
+
components = /* @__PURE__ */ new Set();
|
|
1841
1870
|
addComponent(info) {
|
|
1842
1871
|
this.components.add(info);
|
|
1843
1872
|
}
|
|
1844
1873
|
};
|
|
1845
1874
|
|
|
1846
|
-
// bazel-out/
|
|
1875
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1847
1876
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1848
1877
|
|
|
1849
|
-
// bazel-out/
|
|
1878
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1850
1879
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate, TmplAstVariable } from "@angular/compiler";
|
|
1851
1880
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1881
|
+
expressionStr;
|
|
1882
|
+
absoluteOffset;
|
|
1883
|
+
boundTemplate;
|
|
1884
|
+
targetToIdentifier;
|
|
1885
|
+
identifiers = [];
|
|
1886
|
+
errors = [];
|
|
1852
1887
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
1853
1888
|
super();
|
|
1854
1889
|
this.expressionStr = expressionStr;
|
|
1855
1890
|
this.absoluteOffset = absoluteOffset;
|
|
1856
1891
|
this.boundTemplate = boundTemplate;
|
|
1857
1892
|
this.targetToIdentifier = targetToIdentifier;
|
|
1858
|
-
this.identifiers = [];
|
|
1859
|
-
this.errors = [];
|
|
1860
1893
|
}
|
|
1861
1894
|
static getIdentifiers(ast, source, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
1862
1895
|
const visitor = new ExpressionVisitor(source, absoluteOffset, boundTemplate, targetToIdentifier);
|
|
@@ -1900,13 +1933,14 @@ var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
|
1900
1933
|
}
|
|
1901
1934
|
};
|
|
1902
1935
|
var TemplateVisitor = class extends TmplAstRecursiveVisitor {
|
|
1936
|
+
boundTemplate;
|
|
1937
|
+
identifiers = /* @__PURE__ */ new Set();
|
|
1938
|
+
errors = [];
|
|
1939
|
+
targetIdentifierCache = /* @__PURE__ */ new Map();
|
|
1940
|
+
elementAndTemplateIdentifierCache = /* @__PURE__ */ new Map();
|
|
1903
1941
|
constructor(boundTemplate) {
|
|
1904
1942
|
super();
|
|
1905
1943
|
this.boundTemplate = boundTemplate;
|
|
1906
|
-
this.identifiers = /* @__PURE__ */ new Set();
|
|
1907
|
-
this.errors = [];
|
|
1908
|
-
this.targetIdentifierCache = /* @__PURE__ */ new Map();
|
|
1909
|
-
this.elementAndTemplateIdentifierCache = /* @__PURE__ */ new Map();
|
|
1910
1944
|
}
|
|
1911
1945
|
visit(node) {
|
|
1912
1946
|
node.visit(this);
|
|
@@ -2141,7 +2175,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2141
2175
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2142
2176
|
}
|
|
2143
2177
|
|
|
2144
|
-
// bazel-out/
|
|
2178
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2145
2179
|
function generateAnalysis(context) {
|
|
2146
2180
|
const analysis = /* @__PURE__ */ new Map();
|
|
2147
2181
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2177,15 +2211,17 @@ function generateAnalysis(context) {
|
|
|
2177
2211
|
return analysis;
|
|
2178
2212
|
}
|
|
2179
2213
|
|
|
2180
|
-
// bazel-out/
|
|
2214
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2181
2215
|
var NgModuleIndexImpl = class {
|
|
2216
|
+
metaReader;
|
|
2217
|
+
localReader;
|
|
2182
2218
|
constructor(metaReader, localReader) {
|
|
2183
2219
|
this.metaReader = metaReader;
|
|
2184
2220
|
this.localReader = localReader;
|
|
2185
|
-
this.ngModuleAuthoritativeReference = /* @__PURE__ */ new Map();
|
|
2186
|
-
this.typeToExportingModules = /* @__PURE__ */ new Map();
|
|
2187
|
-
this.indexed = false;
|
|
2188
2221
|
}
|
|
2222
|
+
ngModuleAuthoritativeReference = /* @__PURE__ */ new Map();
|
|
2223
|
+
typeToExportingModules = /* @__PURE__ */ new Map();
|
|
2224
|
+
indexed = false;
|
|
2189
2225
|
updateWith(cache, key, elem) {
|
|
2190
2226
|
if (cache.has(key)) {
|
|
2191
2227
|
cache.get(key).add(elem);
|
|
@@ -2266,17 +2302,22 @@ var NgModuleIndexImpl = class {
|
|
|
2266
2302
|
}
|
|
2267
2303
|
};
|
|
2268
2304
|
|
|
2269
|
-
// bazel-out/
|
|
2305
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2270
2306
|
import ts16 from "typescript";
|
|
2271
2307
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2272
2308
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
2273
2309
|
var RESOURCE_MARKER_TS = RESOURCE_MARKER + ".ts";
|
|
2274
2310
|
var AdapterResourceLoader = class {
|
|
2311
|
+
adapter;
|
|
2312
|
+
options;
|
|
2313
|
+
cache = /* @__PURE__ */ new Map();
|
|
2314
|
+
fetching = /* @__PURE__ */ new Map();
|
|
2315
|
+
lookupResolutionHost;
|
|
2316
|
+
canPreload;
|
|
2317
|
+
canPreprocess;
|
|
2275
2318
|
constructor(adapter, options) {
|
|
2276
2319
|
this.adapter = adapter;
|
|
2277
2320
|
this.options = options;
|
|
2278
|
-
this.cache = /* @__PURE__ */ new Map();
|
|
2279
|
-
this.fetching = /* @__PURE__ */ new Map();
|
|
2280
2321
|
this.lookupResolutionHost = createLookupResolutionHost(this.adapter);
|
|
2281
2322
|
this.canPreload = !!this.adapter.readResource;
|
|
2282
2323
|
this.canPreprocess = !!this.adapter.transformResource;
|
|
@@ -2419,13 +2460,16 @@ function createLookupResolutionHost(adapter) {
|
|
|
2419
2460
|
};
|
|
2420
2461
|
}
|
|
2421
2462
|
|
|
2422
|
-
// bazel-out/
|
|
2463
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2423
2464
|
var StandaloneComponentScopeReader = class {
|
|
2465
|
+
metaReader;
|
|
2466
|
+
localModuleReader;
|
|
2467
|
+
dtsModuleReader;
|
|
2468
|
+
cache = /* @__PURE__ */ new Map();
|
|
2424
2469
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
2425
2470
|
this.metaReader = metaReader;
|
|
2426
2471
|
this.localModuleReader = localModuleReader;
|
|
2427
2472
|
this.dtsModuleReader = dtsModuleReader;
|
|
2428
|
-
this.cache = /* @__PURE__ */ new Map();
|
|
2429
2473
|
}
|
|
2430
2474
|
getScopeForComponent(clazz) {
|
|
2431
2475
|
var _a;
|
|
@@ -2515,10 +2559,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2515
2559
|
}
|
|
2516
2560
|
};
|
|
2517
2561
|
|
|
2518
|
-
// bazel-out/
|
|
2562
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2519
2563
|
import { ASTWithSource as ASTWithSource3, BindingType, Interpolation, PropertyRead as PropertyRead2, TmplAstBoundAttribute } from "@angular/compiler";
|
|
2520
2564
|
|
|
2521
|
-
// bazel-out/
|
|
2565
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
|
|
2522
2566
|
import ts17 from "typescript";
|
|
2523
2567
|
var SIGNAL_FNS = /* @__PURE__ */ new Set([
|
|
2524
2568
|
"WritableSignal",
|
|
@@ -2538,24 +2582,25 @@ function isSignalSymbol(symbol) {
|
|
|
2538
2582
|
});
|
|
2539
2583
|
}
|
|
2540
2584
|
|
|
2541
|
-
// bazel-out/
|
|
2585
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
2542
2586
|
import { ASTWithSource as ASTWithSource2, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
2543
2587
|
var TemplateCheckWithVisitor = class {
|
|
2544
|
-
|
|
2545
|
-
this.canVisitStructuralAttributes = true;
|
|
2546
|
-
}
|
|
2588
|
+
canVisitStructuralAttributes = true;
|
|
2547
2589
|
run(ctx, component, template) {
|
|
2548
2590
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
2549
2591
|
return visitor.getDiagnostics(template);
|
|
2550
2592
|
}
|
|
2551
2593
|
};
|
|
2552
2594
|
var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
2595
|
+
ctx;
|
|
2596
|
+
component;
|
|
2597
|
+
check;
|
|
2598
|
+
diagnostics = [];
|
|
2553
2599
|
constructor(ctx, component, check) {
|
|
2554
2600
|
super();
|
|
2555
2601
|
this.ctx = ctx;
|
|
2556
2602
|
this.component = component;
|
|
2557
2603
|
this.check = check;
|
|
2558
|
-
this.diagnostics = [];
|
|
2559
2604
|
}
|
|
2560
2605
|
visit(node, context) {
|
|
2561
2606
|
this.diagnostics.push(...this.check.visitNode(this.ctx, this.component, node));
|
|
@@ -2674,14 +2719,11 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
2674
2719
|
}
|
|
2675
2720
|
};
|
|
2676
2721
|
|
|
2677
|
-
// bazel-out/
|
|
2722
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2678
2723
|
var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
|
|
2679
2724
|
var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
|
|
2680
2725
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
2681
|
-
|
|
2682
|
-
super(...arguments);
|
|
2683
|
-
this.code = ErrorCode.INTERPOLATED_SIGNAL_NOT_INVOKED;
|
|
2684
|
-
}
|
|
2726
|
+
code = ErrorCode.INTERPOLATED_SIGNAL_NOT_INVOKED;
|
|
2685
2727
|
visitNode(ctx, component, node) {
|
|
2686
2728
|
if (node instanceof Interpolation) {
|
|
2687
2729
|
return node.expressions.filter((item) => item instanceof PropertyRead2).flatMap((item) => buildDiagnosticForSignal(ctx, item, component));
|
|
@@ -2726,13 +2768,10 @@ var factory = {
|
|
|
2726
2768
|
create: () => new InterpolatedSignalCheck()
|
|
2727
2769
|
};
|
|
2728
2770
|
|
|
2729
|
-
// bazel-out/
|
|
2771
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
2730
2772
|
import { TmplAstBoundEvent } from "@angular/compiler";
|
|
2731
2773
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
2732
|
-
|
|
2733
|
-
super(...arguments);
|
|
2734
|
-
this.code = ErrorCode.INVALID_BANANA_IN_BOX;
|
|
2735
|
-
}
|
|
2774
|
+
code = ErrorCode.INVALID_BANANA_IN_BOX;
|
|
2736
2775
|
visitNode(ctx, component, node) {
|
|
2737
2776
|
if (!(node instanceof TmplAstBoundEvent))
|
|
2738
2777
|
return [];
|
|
@@ -2752,7 +2791,7 @@ var factory2 = {
|
|
|
2752
2791
|
create: () => new InvalidBananaInBoxCheck()
|
|
2753
2792
|
};
|
|
2754
2793
|
|
|
2755
|
-
// bazel-out/
|
|
2794
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
2756
2795
|
import { TmplAstTemplate as TmplAstTemplate2 } from "@angular/compiler";
|
|
2757
2796
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
2758
2797
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -2761,10 +2800,7 @@ var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
|
2761
2800
|
["ngSwitchDefault", { directive: "NgSwitchDefault", builtIn: "@switch with @default" }]
|
|
2762
2801
|
]);
|
|
2763
2802
|
var MissingControlFlowDirectiveCheck = class extends TemplateCheckWithVisitor {
|
|
2764
|
-
|
|
2765
|
-
super(...arguments);
|
|
2766
|
-
this.code = ErrorCode.MISSING_CONTROL_FLOW_DIRECTIVE;
|
|
2767
|
-
}
|
|
2803
|
+
code = ErrorCode.MISSING_CONTROL_FLOW_DIRECTIVE;
|
|
2768
2804
|
run(ctx, component, template) {
|
|
2769
2805
|
const componentMetadata = ctx.templateTypeChecker.getDirectiveMetadata(component);
|
|
2770
2806
|
if (!componentMetadata || !componentMetadata.isStandalone) {
|
|
@@ -2797,13 +2833,10 @@ var factory3 = {
|
|
|
2797
2833
|
}
|
|
2798
2834
|
};
|
|
2799
2835
|
|
|
2800
|
-
// bazel-out/
|
|
2836
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
2801
2837
|
import { TmplAstTemplate as TmplAstTemplate3 } from "@angular/compiler";
|
|
2802
2838
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
2803
|
-
|
|
2804
|
-
super(...arguments);
|
|
2805
|
-
this.code = ErrorCode.MISSING_NGFOROF_LET;
|
|
2806
|
-
}
|
|
2839
|
+
code = ErrorCode.MISSING_NGFOROF_LET;
|
|
2807
2840
|
visitNode(ctx, component, node) {
|
|
2808
2841
|
const isTemplate = node instanceof TmplAstTemplate3;
|
|
2809
2842
|
if (!(node instanceof TmplAstTemplate3)) {
|
|
@@ -2830,15 +2863,12 @@ var factory4 = {
|
|
|
2830
2863
|
create: () => new MissingNgForOfLetCheck()
|
|
2831
2864
|
};
|
|
2832
2865
|
|
|
2833
|
-
// bazel-out/
|
|
2866
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
2834
2867
|
import { Binary } from "@angular/compiler";
|
|
2835
2868
|
import ts18 from "typescript";
|
|
2836
2869
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
this.canVisitStructuralAttributes = false;
|
|
2840
|
-
this.code = ErrorCode.NULLISH_COALESCING_NOT_NULLABLE;
|
|
2841
|
-
}
|
|
2870
|
+
canVisitStructuralAttributes = false;
|
|
2871
|
+
code = ErrorCode.NULLISH_COALESCING_NOT_NULLABLE;
|
|
2842
2872
|
visitNode(ctx, component, node) {
|
|
2843
2873
|
if (!(node instanceof Binary) || node.operation !== "??")
|
|
2844
2874
|
return [];
|
|
@@ -2876,15 +2906,12 @@ var factory5 = {
|
|
|
2876
2906
|
}
|
|
2877
2907
|
};
|
|
2878
2908
|
|
|
2879
|
-
// bazel-out/
|
|
2909
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
2880
2910
|
import { SafeCall, SafeKeyedRead, SafePropertyRead } from "@angular/compiler";
|
|
2881
2911
|
import ts19 from "typescript";
|
|
2882
2912
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
this.canVisitStructuralAttributes = false;
|
|
2886
|
-
this.code = ErrorCode.OPTIONAL_CHAIN_NOT_NULLABLE;
|
|
2887
|
-
}
|
|
2913
|
+
canVisitStructuralAttributes = false;
|
|
2914
|
+
code = ErrorCode.OPTIONAL_CHAIN_NOT_NULLABLE;
|
|
2888
2915
|
visitNode(ctx, component, node) {
|
|
2889
2916
|
if (!(node instanceof SafeCall) && !(node instanceof SafePropertyRead) && !(node instanceof SafeKeyedRead))
|
|
2890
2917
|
return [];
|
|
@@ -2923,14 +2950,11 @@ var factory6 = {
|
|
|
2923
2950
|
}
|
|
2924
2951
|
};
|
|
2925
2952
|
|
|
2926
|
-
// bazel-out/
|
|
2953
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
2927
2954
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute2 } from "@angular/compiler";
|
|
2928
2955
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
2929
2956
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
2930
|
-
|
|
2931
|
-
super(...arguments);
|
|
2932
|
-
this.code = ErrorCode.SUFFIX_NOT_SUPPORTED;
|
|
2933
|
-
}
|
|
2957
|
+
code = ErrorCode.SUFFIX_NOT_SUPPORTED;
|
|
2934
2958
|
visitNode(ctx, component, node) {
|
|
2935
2959
|
if (!(node instanceof TmplAstBoundAttribute2))
|
|
2936
2960
|
return [];
|
|
@@ -2947,13 +2971,10 @@ var factory7 = {
|
|
|
2947
2971
|
create: () => new SuffixNotSupportedCheck()
|
|
2948
2972
|
};
|
|
2949
2973
|
|
|
2950
|
-
// bazel-out/
|
|
2974
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
2951
2975
|
import { TmplAstTextAttribute } from "@angular/compiler";
|
|
2952
2976
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
2953
|
-
|
|
2954
|
-
super(...arguments);
|
|
2955
|
-
this.code = ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING;
|
|
2956
|
-
}
|
|
2977
|
+
code = ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING;
|
|
2957
2978
|
visitNode(ctx, component, node) {
|
|
2958
2979
|
if (!(node instanceof TmplAstTextAttribute))
|
|
2959
2980
|
return [];
|
|
@@ -2986,13 +3007,10 @@ var factory8 = {
|
|
|
2986
3007
|
create: () => new TextAttributeNotBindingSpec()
|
|
2987
3008
|
};
|
|
2988
3009
|
|
|
2989
|
-
// bazel-out/
|
|
3010
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.mjs
|
|
2990
3011
|
import { ASTWithSource as ASTWithSource4, Call, Chain, Conditional, ParsedEventType, PropertyRead as PropertyRead3, SafeCall as SafeCall2, SafePropertyRead as SafePropertyRead2, TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
2991
3012
|
var UninvokedFunctionInEventBindingSpec = class extends TemplateCheckWithVisitor {
|
|
2992
|
-
|
|
2993
|
-
super(...arguments);
|
|
2994
|
-
this.code = ErrorCode.UNINVOKED_FUNCTION_IN_EVENT_BINDING;
|
|
2995
|
-
}
|
|
3013
|
+
code = ErrorCode.UNINVOKED_FUNCTION_IN_EVENT_BINDING;
|
|
2996
3014
|
visitNode(ctx, component, node) {
|
|
2997
3015
|
if (!(node instanceof TmplAstBoundEvent2))
|
|
2998
3016
|
return [];
|
|
@@ -3038,14 +3056,11 @@ var factory9 = {
|
|
|
3038
3056
|
create: () => new UninvokedFunctionInEventBindingSpec()
|
|
3039
3057
|
};
|
|
3040
3058
|
|
|
3041
|
-
// bazel-out/
|
|
3059
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.mjs
|
|
3042
3060
|
import { AST, ASTWithSource as ASTWithSource5, TmplAstLetDeclaration } from "@angular/compiler";
|
|
3043
3061
|
var UnusedLetDeclarationCheck = class extends TemplateCheckWithVisitor {
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
this.code = ErrorCode.UNUSED_LET_DECLARATION;
|
|
3047
|
-
this.analysis = /* @__PURE__ */ new Map();
|
|
3048
|
-
}
|
|
3062
|
+
code = ErrorCode.UNUSED_LET_DECLARATION;
|
|
3063
|
+
analysis = /* @__PURE__ */ new Map();
|
|
3049
3064
|
run(ctx, component, template) {
|
|
3050
3065
|
super.run(ctx, component, template);
|
|
3051
3066
|
const diagnostics = [];
|
|
@@ -3083,10 +3098,10 @@ var factory10 = {
|
|
|
3083
3098
|
create: () => new UnusedLetDeclarationCheck()
|
|
3084
3099
|
};
|
|
3085
3100
|
|
|
3086
|
-
// bazel-out/
|
|
3101
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3087
3102
|
import ts20 from "typescript";
|
|
3088
3103
|
|
|
3089
|
-
// bazel-out/
|
|
3104
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
3090
3105
|
var DiagnosticCategoryLabel;
|
|
3091
3106
|
(function(DiagnosticCategoryLabel2) {
|
|
3092
3107
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -3094,8 +3109,10 @@ var DiagnosticCategoryLabel;
|
|
|
3094
3109
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
3095
3110
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
3096
3111
|
|
|
3097
|
-
// bazel-out/
|
|
3112
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3098
3113
|
var ExtendedTemplateCheckerImpl = class {
|
|
3114
|
+
partialCtx;
|
|
3115
|
+
templateChecks;
|
|
3099
3116
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
3100
3117
|
var _a, _b, _c, _d, _e;
|
|
3101
3118
|
this.partialCtx = { templateTypeChecker, typeChecker };
|
|
@@ -3147,7 +3164,7 @@ function assertNever(value) {
|
|
|
3147
3164
|
${value}`);
|
|
3148
3165
|
}
|
|
3149
3166
|
|
|
3150
|
-
// bazel-out/
|
|
3167
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
3151
3168
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
3152
3169
|
factory2,
|
|
3153
3170
|
factory5,
|
|
@@ -3166,10 +3183,11 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
|
3166
3183
|
...ALL_DIAGNOSTIC_FACTORIES.map((factory11) => factory11.name)
|
|
3167
3184
|
]);
|
|
3168
3185
|
|
|
3169
|
-
// bazel-out/
|
|
3186
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
|
|
3170
3187
|
import { ASTWithSource as ASTWithSource6, ImplicitReceiver as ImplicitReceiver2, ParsedEventType as ParsedEventType2, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundEvent as TmplAstBoundEvent3, TmplAstLetDeclaration as TmplAstLetDeclaration2, TmplAstRecursiveVisitor as TmplAstRecursiveVisitor2, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
|
|
3171
3188
|
import ts21 from "typescript";
|
|
3172
3189
|
var TemplateSemanticsCheckerImpl = class {
|
|
3190
|
+
templateTypeChecker;
|
|
3173
3191
|
constructor(templateTypeChecker) {
|
|
3174
3192
|
this.templateTypeChecker = templateTypeChecker;
|
|
3175
3193
|
}
|
|
@@ -3179,6 +3197,7 @@ var TemplateSemanticsCheckerImpl = class {
|
|
|
3179
3197
|
}
|
|
3180
3198
|
};
|
|
3181
3199
|
var TemplateSemanticsVisitor = class extends TmplAstRecursiveVisitor2 {
|
|
3200
|
+
expressionVisitor;
|
|
3182
3201
|
constructor(expressionVisitor) {
|
|
3183
3202
|
super();
|
|
3184
3203
|
this.expressionVisitor = expressionVisitor;
|
|
@@ -3196,6 +3215,9 @@ var TemplateSemanticsVisitor = class extends TmplAstRecursiveVisitor2 {
|
|
|
3196
3215
|
}
|
|
3197
3216
|
};
|
|
3198
3217
|
var ExpressionsSemanticsVisitor = class extends RecursiveAstVisitor3 {
|
|
3218
|
+
templateTypeChecker;
|
|
3219
|
+
component;
|
|
3220
|
+
diagnostics;
|
|
3199
3221
|
constructor(templateTypeChecker, component, diagnostics) {
|
|
3200
3222
|
super();
|
|
3201
3223
|
this.templateTypeChecker = templateTypeChecker;
|
|
@@ -3257,7 +3279,7 @@ function unwrapAstWithSource(ast) {
|
|
|
3257
3279
|
return ast instanceof ASTWithSource6 ? ast.ast : ast;
|
|
3258
3280
|
}
|
|
3259
3281
|
|
|
3260
|
-
// bazel-out/
|
|
3282
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
|
|
3261
3283
|
import ts22 from "typescript";
|
|
3262
3284
|
var APIS_TO_CHECK = [
|
|
3263
3285
|
INPUT_INITIALIZER_FN,
|
|
@@ -3266,6 +3288,8 @@ var APIS_TO_CHECK = [
|
|
|
3266
3288
|
...QUERY_INITIALIZER_FNS
|
|
3267
3289
|
];
|
|
3268
3290
|
var InitializerApiUsageRule = class {
|
|
3291
|
+
reflector;
|
|
3292
|
+
importedSymbolsTracker;
|
|
3269
3293
|
constructor(reflector, importedSymbolsTracker) {
|
|
3270
3294
|
this.reflector = reflector;
|
|
3271
3295
|
this.importedSymbolsTracker = importedSymbolsTracker;
|
|
@@ -3308,9 +3332,12 @@ var InitializerApiUsageRule = class {
|
|
|
3308
3332
|
}
|
|
3309
3333
|
};
|
|
3310
3334
|
|
|
3311
|
-
// bazel-out/
|
|
3335
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.mjs
|
|
3312
3336
|
import ts23 from "typescript";
|
|
3313
3337
|
var UnusedStandaloneImportsRule = class {
|
|
3338
|
+
templateTypeChecker;
|
|
3339
|
+
typeCheckingConfig;
|
|
3340
|
+
importedSymbolsTracker;
|
|
3314
3341
|
constructor(templateTypeChecker, typeCheckingConfig, importedSymbolsTracker) {
|
|
3315
3342
|
this.templateTypeChecker = templateTypeChecker;
|
|
3316
3343
|
this.typeCheckingConfig = typeCheckingConfig;
|
|
@@ -3382,11 +3409,12 @@ var UnusedStandaloneImportsRule = class {
|
|
|
3382
3409
|
}
|
|
3383
3410
|
};
|
|
3384
3411
|
|
|
3385
|
-
// bazel-out/
|
|
3412
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/config.mjs
|
|
3386
3413
|
var UNUSED_STANDALONE_IMPORTS_RULE_ENABLED = true;
|
|
3387
3414
|
|
|
3388
|
-
// bazel-out/
|
|
3415
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
|
|
3389
3416
|
var SourceFileValidator = class {
|
|
3417
|
+
rules;
|
|
3390
3418
|
constructor(reflector, importedSymbolsTracker, templateTypeChecker, typeCheckingConfig) {
|
|
3391
3419
|
this.rules = [new InitializerApiUsageRule(reflector, importedSymbolsTracker)];
|
|
3392
3420
|
if (UNUSED_STANDALONE_IMPORTS_RULE_ENABLED) {
|
|
@@ -3426,7 +3454,7 @@ var SourceFileValidator = class {
|
|
|
3426
3454
|
}
|
|
3427
3455
|
};
|
|
3428
3456
|
|
|
3429
|
-
// bazel-out/
|
|
3457
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
|
|
3430
3458
|
function coreHasSymbol(program, symbol) {
|
|
3431
3459
|
const checker = program.getTypeChecker();
|
|
3432
3460
|
for (const sf of program.getSourceFiles().filter(isMaybeCore)) {
|
|
@@ -3445,7 +3473,7 @@ function isMaybeCore(sf) {
|
|
|
3445
3473
|
return sf.isDeclarationFile && sf.fileName.includes("@angular/core") && sf.fileName.endsWith("index.d.ts");
|
|
3446
3474
|
}
|
|
3447
3475
|
|
|
3448
|
-
// bazel-out/
|
|
3476
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
|
|
3449
3477
|
import semver from "semver";
|
|
3450
3478
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
3451
3479
|
if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
|
|
@@ -3454,7 +3482,7 @@ function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
|
3454
3482
|
return semver.satisfies(coreVersion, minVersion);
|
|
3455
3483
|
}
|
|
3456
3484
|
|
|
3457
|
-
// bazel-out/
|
|
3485
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
3458
3486
|
var CompilationTicketKind;
|
|
3459
3487
|
(function(CompilationTicketKind2) {
|
|
3460
3488
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -3513,6 +3541,32 @@ function incrementalFromStateTicket(oldProgram, oldState, newProgram, options, i
|
|
|
3513
3541
|
};
|
|
3514
3542
|
}
|
|
3515
3543
|
var NgCompiler = class {
|
|
3544
|
+
adapter;
|
|
3545
|
+
options;
|
|
3546
|
+
inputProgram;
|
|
3547
|
+
programDriver;
|
|
3548
|
+
incrementalStrategy;
|
|
3549
|
+
incrementalCompilation;
|
|
3550
|
+
usePoisonedData;
|
|
3551
|
+
livePerfRecorder;
|
|
3552
|
+
compilation = null;
|
|
3553
|
+
constructionDiagnostics = [];
|
|
3554
|
+
nonTemplateDiagnostics = null;
|
|
3555
|
+
closureCompilerEnabled;
|
|
3556
|
+
currentProgram;
|
|
3557
|
+
entryPoint;
|
|
3558
|
+
moduleResolver;
|
|
3559
|
+
resourceManager;
|
|
3560
|
+
cycleAnalyzer;
|
|
3561
|
+
ignoreForDiagnostics;
|
|
3562
|
+
ignoreForEmit;
|
|
3563
|
+
enableTemplateTypeChecker;
|
|
3564
|
+
enableBlockSyntax;
|
|
3565
|
+
enableLetSyntax;
|
|
3566
|
+
angularCoreVersion;
|
|
3567
|
+
enableHmr;
|
|
3568
|
+
implicitStandaloneValue;
|
|
3569
|
+
delegatingPerfRecorder;
|
|
3516
3570
|
static fromTicket(ticket, adapter) {
|
|
3517
3571
|
switch (ticket.kind) {
|
|
3518
3572
|
case CompilationTicketKind.Fresh:
|
|
@@ -3535,15 +3589,14 @@ var NgCompiler = class {
|
|
|
3535
3589
|
this.incrementalCompilation = incrementalCompilation;
|
|
3536
3590
|
this.usePoisonedData = usePoisonedData;
|
|
3537
3591
|
this.livePerfRecorder = livePerfRecorder;
|
|
3538
|
-
this.
|
|
3539
|
-
this.constructionDiagnostics = [];
|
|
3540
|
-
this.nonTemplateDiagnostics = null;
|
|
3592
|
+
this.angularCoreVersion = (_a = options["_angularCoreVersion"]) != null ? _a : null;
|
|
3541
3593
|
this.delegatingPerfRecorder = new DelegatingPerfRecorder(this.perfRecorder);
|
|
3542
3594
|
this.usePoisonedData = usePoisonedData || !!options._compilePoisonedComponents;
|
|
3543
3595
|
this.enableTemplateTypeChecker = enableTemplateTypeChecker || !!options._enableTemplateTypeChecker;
|
|
3544
|
-
this.enableBlockSyntax = (
|
|
3545
|
-
this.enableLetSyntax = (
|
|
3546
|
-
this.
|
|
3596
|
+
this.enableBlockSyntax = (_b = options["_enableBlockSyntax"]) != null ? _b : true;
|
|
3597
|
+
this.enableLetSyntax = (_c = options["_enableLetSyntax"]) != null ? _c : true;
|
|
3598
|
+
this.implicitStandaloneValue = this.angularCoreVersion === null || coreVersionSupportsFeature(this.angularCoreVersion, ">= 19.0.0-0");
|
|
3599
|
+
this.enableHmr = !!options["_enableHmr"];
|
|
3547
3600
|
this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options));
|
|
3548
3601
|
this.currentProgram = inputProgram;
|
|
3549
3602
|
this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
|
|
@@ -3794,6 +3847,24 @@ var NgCompiler = class {
|
|
|
3794
3847
|
const compilation = this.ensureAnalyzed();
|
|
3795
3848
|
compilation.traitCompiler.xi18n(ctx);
|
|
3796
3849
|
}
|
|
3850
|
+
emitHmrUpdateModule(node) {
|
|
3851
|
+
const { traitCompiler, reflector } = this.ensureAnalyzed();
|
|
3852
|
+
if (!reflector.isClass(node)) {
|
|
3853
|
+
return null;
|
|
3854
|
+
}
|
|
3855
|
+
const callback = traitCompiler.compileHmrUpdateCallback(node);
|
|
3856
|
+
if (callback === null) {
|
|
3857
|
+
return null;
|
|
3858
|
+
}
|
|
3859
|
+
const sourceFile = node.getSourceFile();
|
|
3860
|
+
const printer = ts24.createPrinter();
|
|
3861
|
+
const nodeText = printer.printNode(ts24.EmitHint.Unspecified, callback, sourceFile);
|
|
3862
|
+
return ts24.transpileModule(nodeText, {
|
|
3863
|
+
compilerOptions: this.options,
|
|
3864
|
+
fileName: sourceFile.fileName,
|
|
3865
|
+
reportDiagnostics: false
|
|
3866
|
+
}).outputText;
|
|
3867
|
+
}
|
|
3797
3868
|
ensureAnalyzed() {
|
|
3798
3869
|
if (this.compilation === null) {
|
|
3799
3870
|
this.analyzeSync();
|
|
@@ -4086,9 +4157,9 @@ var NgCompiler = class {
|
|
|
4086
4157
|
}
|
|
4087
4158
|
const jitDeclarationRegistry = new JitDeclarationRegistry();
|
|
4088
4159
|
const handlers = [
|
|
4089
|
-
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader,
|
|
4090
|
-
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, importTracker, supportTestBed, compilationMode, jitDeclarationRegistry, !!this.options.strictStandalone),
|
|
4091
|
-
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode, !!this.options.generateExtraImportsInLocalMode, !!this.options.strictStandalone),
|
|
4160
|
+
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, this.adapter, 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, importTracker, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents, this.enableBlockSyntax, this.enableLetSyntax, externalRuntimeStyles, localCompilationExtraImportsTracker, jitDeclarationRegistry, (_e = this.options.i18nPreserveWhitespaceForLegacyExtraction) != null ? _e : true, !!this.options.strictStandalone, this.enableHmr, this.implicitStandaloneValue),
|
|
4161
|
+
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, importTracker, supportTestBed, compilationMode, jitDeclarationRegistry, !!this.options.strictStandalone, this.implicitStandaloneValue),
|
|
4162
|
+
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode, !!this.options.generateExtraImportsInLocalMode, !!this.options.strictStandalone, this.implicitStandaloneValue),
|
|
4092
4163
|
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
4093
4164
|
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (_f = this.options.onlyPublishPublicTypingsForNgModules) != null ? _f : false, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, supportJitMode, compilationMode, localCompilationExtraImportsTracker, jitDeclarationRegistry)
|
|
4094
4165
|
];
|
|
@@ -4239,6 +4310,7 @@ function makeConfigDiagnostic({ category, code, messageText }) {
|
|
|
4239
4310
|
};
|
|
4240
4311
|
}
|
|
4241
4312
|
var ReferenceGraphAdapter = class {
|
|
4313
|
+
graph;
|
|
4242
4314
|
constructor(graph) {
|
|
4243
4315
|
this.graph = graph;
|
|
4244
4316
|
}
|
|
@@ -4255,6 +4327,9 @@ var ReferenceGraphAdapter = class {
|
|
|
4255
4327
|
}
|
|
4256
4328
|
};
|
|
4257
4329
|
var NotifyingProgramDriverWrapper = class {
|
|
4330
|
+
delegate;
|
|
4331
|
+
notifyNewProgram;
|
|
4332
|
+
getSourceFileVersion;
|
|
4258
4333
|
constructor(delegate, notifyNewProgram) {
|
|
4259
4334
|
var _a;
|
|
4260
4335
|
this.delegate = delegate;
|
|
@@ -4284,9 +4359,39 @@ function versionMapFromProgram(program, driver) {
|
|
|
4284
4359
|
return versions;
|
|
4285
4360
|
}
|
|
4286
4361
|
|
|
4287
|
-
// bazel-out/
|
|
4362
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
4288
4363
|
import ts25 from "typescript";
|
|
4289
4364
|
var DelegatingCompilerHost = class {
|
|
4365
|
+
delegate;
|
|
4366
|
+
createHash;
|
|
4367
|
+
directoryExists;
|
|
4368
|
+
fileNameToModuleName;
|
|
4369
|
+
getCancellationToken;
|
|
4370
|
+
getCanonicalFileName;
|
|
4371
|
+
getCurrentDirectory;
|
|
4372
|
+
getDefaultLibFileName;
|
|
4373
|
+
getDefaultLibLocation;
|
|
4374
|
+
getDirectories;
|
|
4375
|
+
getEnvironmentVariable;
|
|
4376
|
+
getModifiedResourceFiles;
|
|
4377
|
+
getNewLine;
|
|
4378
|
+
getParsedCommandLine;
|
|
4379
|
+
getSourceFileByPath;
|
|
4380
|
+
readDirectory;
|
|
4381
|
+
readFile;
|
|
4382
|
+
readResource;
|
|
4383
|
+
transformResource;
|
|
4384
|
+
realpath;
|
|
4385
|
+
resolveModuleNames;
|
|
4386
|
+
resolveTypeReferenceDirectives;
|
|
4387
|
+
resourceNameToFileName;
|
|
4388
|
+
trace;
|
|
4389
|
+
useCaseSensitiveFileNames;
|
|
4390
|
+
writeFile;
|
|
4391
|
+
getModuleResolutionCache;
|
|
4392
|
+
hasInvalidatedResolutions;
|
|
4393
|
+
resolveModuleNameLiterals;
|
|
4394
|
+
resolveTypeReferenceDirectiveReferences;
|
|
4290
4395
|
get jsDocParsingMode() {
|
|
4291
4396
|
return this.delegate.jsDocParsingMode;
|
|
4292
4397
|
}
|
|
@@ -4330,11 +4435,16 @@ var DelegatingCompilerHost = class {
|
|
|
4330
4435
|
}
|
|
4331
4436
|
};
|
|
4332
4437
|
var NgCompilerHost = class extends DelegatingCompilerHost {
|
|
4438
|
+
shimAdapter;
|
|
4439
|
+
shimTagger;
|
|
4440
|
+
entryPoint = null;
|
|
4441
|
+
constructionDiagnostics;
|
|
4442
|
+
inputFiles;
|
|
4443
|
+
rootDirs;
|
|
4333
4444
|
constructor(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, diagnostics) {
|
|
4334
4445
|
super(delegate);
|
|
4335
4446
|
this.shimAdapter = shimAdapter;
|
|
4336
4447
|
this.shimTagger = shimTagger;
|
|
4337
|
-
this.entryPoint = null;
|
|
4338
4448
|
this.entryPoint = entryPoint;
|
|
4339
4449
|
this.constructionDiagnostics = diagnostics;
|
|
4340
4450
|
this.inputFiles = [...inputFiles, ...shimAdapter.extraInputFiles];
|
|
@@ -4423,8 +4533,13 @@ var NgCompilerHost = class extends DelegatingCompilerHost {
|
|
|
4423
4533
|
}
|
|
4424
4534
|
};
|
|
4425
4535
|
|
|
4426
|
-
// bazel-out/
|
|
4536
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
4427
4537
|
var NgtscProgram = class {
|
|
4538
|
+
options;
|
|
4539
|
+
compiler;
|
|
4540
|
+
tsProgram;
|
|
4541
|
+
host;
|
|
4542
|
+
incrementalStrategy;
|
|
4428
4543
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
4429
4544
|
this.options = options;
|
|
4430
4545
|
const perfRecorder = ActivePerfRecorder.zeroedToNow();
|
|
@@ -4649,15 +4764,15 @@ function mergeEmitResults(emitResults) {
|
|
|
4649
4764
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
4650
4765
|
}
|
|
4651
4766
|
|
|
4652
|
-
// bazel-out/
|
|
4767
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
4653
4768
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
4654
4769
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
4655
4770
|
}
|
|
4656
4771
|
|
|
4657
|
-
// bazel-out/
|
|
4772
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4658
4773
|
import ts28 from "typescript";
|
|
4659
4774
|
|
|
4660
|
-
// bazel-out/
|
|
4775
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
4661
4776
|
import ts27 from "typescript";
|
|
4662
4777
|
function createMessageDiagnostic(messageText) {
|
|
4663
4778
|
return {
|
|
@@ -4671,7 +4786,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
4671
4786
|
};
|
|
4672
4787
|
}
|
|
4673
4788
|
|
|
4674
|
-
// bazel-out/
|
|
4789
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4675
4790
|
var defaultFormatHost = {
|
|
4676
4791
|
getCurrentDirectory: () => ts28.sys.getCurrentDirectory(),
|
|
4677
4792
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -4902,4 +5017,4 @@ export {
|
|
|
4902
5017
|
* Use of this source code is governed by an MIT-style license that can be
|
|
4903
5018
|
* found in the LICENSE file at https://angular.dev/license
|
|
4904
5019
|
*/
|
|
4905
|
-
//# sourceMappingURL=chunk-
|
|
5020
|
+
//# sourceMappingURL=chunk-TQQOHNLL.js.map
|