@angular/compiler-cli 19.0.0-next.8 → 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-LG56S2LO.js → chunk-4W4CWRSP.js} +6 -6
- package/bundles/chunk-4W4CWRSP.js.map +6 -0
- 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-OY6IBSDB.js → chunk-NS33RCEE.js} +12 -12
- package/bundles/{chunk-2TSCCC7T.js → chunk-PXQLBKVP.js} +88 -51
- package/bundles/chunk-PXQLBKVP.js.map +6 -0
- package/bundles/{chunk-6JG6NFJ7.js → chunk-S2JI2WY5.js} +992 -375
- 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-IXNIFZCK.js → chunk-TQQOHNLL.js} +300 -178
- package/bundles/chunk-TQQOHNLL.js.map +6 -0
- package/bundles/{chunk-IXRL26J5.js → chunk-TRCFFQ47.js} +149 -84
- package/bundles/chunk-TRCFFQ47.js.map +6 -0
- package/bundles/{chunk-KICABBHP.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 +3 -3
- package/src/ngtsc/annotations/common/src/api.d.ts +14 -0
- 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 +9 -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/api/src/interfaces.d.ts +14 -0
- 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/typecheck/api/checker.d.ts +1 -1
- package/src/ngtsc/typecheck/src/checker.d.ts +1 -1
- package/src/ngtsc/util/src/path.d.ts +9 -0
- package/bundles/chunk-2TSCCC7T.js.map +0 -6
- package/bundles/chunk-3Z25BX6N.js.map +0 -6
- package/bundles/chunk-6JG6NFJ7.js.map +0 -6
- package/bundles/chunk-IXNIFZCK.js.map +0 -6
- package/bundles/chunk-IXRL26J5.js.map +0 -6
- package/bundles/chunk-LG56S2LO.js.map +0 -6
- package/bundles/chunk-UJ2J6WV4.js.map +0 -6
- /package/bundles/{chunk-XI2RTGAL.js.map → chunk-KPQ72R34.js.map} +0 -0
- /package/bundles/{chunk-OY6IBSDB.js.map → chunk-NS33RCEE.js.map} +0 -0
- /package/bundles/{chunk-KICABBHP.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;
|
|
@@ -402,7 +407,7 @@ var ClassExtractor = class {
|
|
|
402
407
|
extractClassMember(memberDeclaration) {
|
|
403
408
|
if (this.isMethod(memberDeclaration)) {
|
|
404
409
|
return this.extractMethod(memberDeclaration);
|
|
405
|
-
} else if (this.isProperty(memberDeclaration)) {
|
|
410
|
+
} else if (this.isProperty(memberDeclaration) && !this.hasPrivateComputedProperty(memberDeclaration)) {
|
|
406
411
|
return this.extractClassProperty(memberDeclaration);
|
|
407
412
|
} else if (ts5.isAccessor(memberDeclaration)) {
|
|
408
413
|
return this.extractGetterSetter(memberDeclaration);
|
|
@@ -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
|
});
|
|
@@ -562,8 +573,13 @@ var ClassExtractor = class {
|
|
|
562
573
|
const modifiers = (_a = this.declaration.modifiers) != null ? _a : [];
|
|
563
574
|
return modifiers.some((mod) => mod.kind === ts5.SyntaxKind.AbstractKeyword);
|
|
564
575
|
}
|
|
576
|
+
hasPrivateComputedProperty(property) {
|
|
577
|
+
return ts5.isComputedPropertyName(property.name) && property.name.expression.getText().startsWith("\u0275");
|
|
578
|
+
}
|
|
565
579
|
};
|
|
566
580
|
var DirectiveExtractor = class extends ClassExtractor {
|
|
581
|
+
reference;
|
|
582
|
+
metadata;
|
|
567
583
|
constructor(declaration, reference, metadata, checker) {
|
|
568
584
|
super(declaration, checker);
|
|
569
585
|
this.reference = reference;
|
|
@@ -606,6 +622,8 @@ var DirectiveExtractor = class extends ClassExtractor {
|
|
|
606
622
|
}
|
|
607
623
|
};
|
|
608
624
|
var PipeExtractor = class extends ClassExtractor {
|
|
625
|
+
reference;
|
|
626
|
+
metadata;
|
|
609
627
|
constructor(declaration, reference, metadata, typeChecker) {
|
|
610
628
|
super(declaration, typeChecker);
|
|
611
629
|
this.reference = reference;
|
|
@@ -621,6 +639,8 @@ var PipeExtractor = class extends ClassExtractor {
|
|
|
621
639
|
}
|
|
622
640
|
};
|
|
623
641
|
var NgModuleExtractor = class extends ClassExtractor {
|
|
642
|
+
reference;
|
|
643
|
+
metadata;
|
|
624
644
|
constructor(declaration, reference, metadata, typeChecker) {
|
|
625
645
|
super(declaration, typeChecker);
|
|
626
646
|
this.reference = reference;
|
|
@@ -655,7 +675,7 @@ function extractInterface(declaration, typeChecker) {
|
|
|
655
675
|
return extractor.extract();
|
|
656
676
|
}
|
|
657
677
|
|
|
658
|
-
// bazel-out/
|
|
678
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
659
679
|
import ts6 from "typescript";
|
|
660
680
|
var LITERAL_AS_ENUM_TAG = "object-literal-as-enum";
|
|
661
681
|
function extractConstant(declaration, typeChecker) {
|
|
@@ -713,7 +733,7 @@ function extractLiteralPropertiesAsEnumMembers(declaration) {
|
|
|
713
733
|
});
|
|
714
734
|
}
|
|
715
735
|
|
|
716
|
-
// bazel-out/
|
|
736
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
|
|
717
737
|
import ts7 from "typescript";
|
|
718
738
|
function extractorDecorator(declaration, typeChecker) {
|
|
719
739
|
const documentedNode = getDecoratorJsDocNode(declaration);
|
|
@@ -786,7 +806,7 @@ function getDecoratorJsDocNode(declaration) {
|
|
|
786
806
|
return callSignature;
|
|
787
807
|
}
|
|
788
808
|
|
|
789
|
-
// bazel-out/
|
|
809
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
790
810
|
import ts8 from "typescript";
|
|
791
811
|
function extractEnum(declaration, typeChecker) {
|
|
792
812
|
return {
|
|
@@ -817,7 +837,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
817
837
|
return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
|
|
818
838
|
}
|
|
819
839
|
|
|
820
|
-
// bazel-out/
|
|
840
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/initializer_api_function_extractor.mjs
|
|
821
841
|
import ts9 from "typescript";
|
|
822
842
|
var initializerApiTag = "initializerApiFunction";
|
|
823
843
|
function isInitializerApiFunction(node, typeChecker) {
|
|
@@ -926,7 +946,7 @@ function extractFunctionWithOverloads(name, type, typeChecker) {
|
|
|
926
946
|
};
|
|
927
947
|
}
|
|
928
948
|
|
|
929
|
-
// bazel-out/
|
|
949
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
930
950
|
function extractTypeAlias(declaration) {
|
|
931
951
|
return {
|
|
932
952
|
name: declaration.name.getText(),
|
|
@@ -938,7 +958,7 @@ function extractTypeAlias(declaration) {
|
|
|
938
958
|
};
|
|
939
959
|
}
|
|
940
960
|
|
|
941
|
-
// bazel-out/
|
|
961
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/import_extractor.mjs
|
|
942
962
|
import ts10 from "typescript";
|
|
943
963
|
function getImportedSymbols(sourceFile) {
|
|
944
964
|
const importSpecifiers = /* @__PURE__ */ new Map();
|
|
@@ -963,8 +983,10 @@ function getImportedSymbols(sourceFile) {
|
|
|
963
983
|
return importSpecifiers;
|
|
964
984
|
}
|
|
965
985
|
|
|
966
|
-
// bazel-out/
|
|
986
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
967
987
|
var DocsExtractor = class {
|
|
988
|
+
typeChecker;
|
|
989
|
+
metadataReader;
|
|
968
990
|
constructor(typeChecker, metadataReader) {
|
|
969
991
|
this.typeChecker = typeChecker;
|
|
970
992
|
this.metadataReader = metadataReader;
|
|
@@ -1049,11 +1071,11 @@ function getRelativeFilePath(sourceFile, rootDir) {
|
|
|
1049
1071
|
return relativePath;
|
|
1050
1072
|
}
|
|
1051
1073
|
|
|
1052
|
-
// bazel-out/
|
|
1074
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
1053
1075
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
1054
1076
|
import ts26 from "typescript";
|
|
1055
1077
|
|
|
1056
|
-
// bazel-out/
|
|
1078
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
1057
1079
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
1058
1080
|
import * as path from "path";
|
|
1059
1081
|
function i18nGetExtension(formatName) {
|
|
@@ -1084,9 +1106,7 @@ function i18nSerialize(bundle, formatName, options) {
|
|
|
1084
1106
|
let serializer;
|
|
1085
1107
|
switch (format) {
|
|
1086
1108
|
case "xmb":
|
|
1087
|
-
serializer = new Xmb(
|
|
1088
|
-
options.i18nPreserveWhitespaceForLegacyExtraction
|
|
1089
|
-
);
|
|
1109
|
+
serializer = new Xmb();
|
|
1090
1110
|
break;
|
|
1091
1111
|
case "xliff2":
|
|
1092
1112
|
case "xlf2":
|
|
@@ -1106,10 +1126,10 @@ function getPathNormalizer(basePath) {
|
|
|
1106
1126
|
};
|
|
1107
1127
|
}
|
|
1108
1128
|
|
|
1109
|
-
// bazel-out/
|
|
1129
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1110
1130
|
import ts12 from "typescript";
|
|
1111
1131
|
|
|
1112
|
-
// bazel-out/
|
|
1132
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
1113
1133
|
function toNumbers(value) {
|
|
1114
1134
|
const suffixIndex = value.lastIndexOf("-");
|
|
1115
1135
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -1144,7 +1164,7 @@ function compareVersions(v1, v2) {
|
|
|
1144
1164
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
1145
1165
|
}
|
|
1146
1166
|
|
|
1147
|
-
// bazel-out/
|
|
1167
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1148
1168
|
var MIN_TS_VERSION = "5.5.0";
|
|
1149
1169
|
var MAX_TS_VERSION = "5.7.0";
|
|
1150
1170
|
var tsVersion = ts12.version;
|
|
@@ -1157,15 +1177,16 @@ function verifySupportedTypeScriptVersion() {
|
|
|
1157
1177
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
1158
1178
|
}
|
|
1159
1179
|
|
|
1160
|
-
// bazel-out/
|
|
1180
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
1161
1181
|
import { R3Identifiers } from "@angular/compiler";
|
|
1162
1182
|
import ts24 from "typescript";
|
|
1163
1183
|
|
|
1164
|
-
// bazel-out/
|
|
1184
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
1165
1185
|
var CycleAnalyzer = class {
|
|
1186
|
+
importGraph;
|
|
1187
|
+
cachedResults = null;
|
|
1166
1188
|
constructor(importGraph) {
|
|
1167
1189
|
this.importGraph = importGraph;
|
|
1168
|
-
this.cachedResults = null;
|
|
1169
1190
|
}
|
|
1170
1191
|
wouldCreateCycle(from, to) {
|
|
1171
1192
|
if (this.cachedResults === null || this.cachedResults.from !== from) {
|
|
@@ -1180,11 +1201,13 @@ var CycleAnalyzer = class {
|
|
|
1180
1201
|
};
|
|
1181
1202
|
var NgCyclicResult = Symbol("NgCyclicResult");
|
|
1182
1203
|
var CycleResults = class {
|
|
1204
|
+
from;
|
|
1205
|
+
importGraph;
|
|
1206
|
+
cyclic = {};
|
|
1207
|
+
acyclic = {};
|
|
1183
1208
|
constructor(from, importGraph) {
|
|
1184
1209
|
this.from = from;
|
|
1185
1210
|
this.importGraph = importGraph;
|
|
1186
|
-
this.cyclic = {};
|
|
1187
|
-
this.acyclic = {};
|
|
1188
1211
|
}
|
|
1189
1212
|
wouldBeCyclic(sf) {
|
|
1190
1213
|
const cached = this.getCachedResult(sf);
|
|
@@ -1222,6 +1245,9 @@ var CycleResults = class {
|
|
|
1222
1245
|
}
|
|
1223
1246
|
};
|
|
1224
1247
|
var Cycle = class {
|
|
1248
|
+
importGraph;
|
|
1249
|
+
from;
|
|
1250
|
+
to;
|
|
1225
1251
|
constructor(importGraph, from, to) {
|
|
1226
1252
|
this.importGraph = importGraph;
|
|
1227
1253
|
this.from = from;
|
|
@@ -1232,13 +1258,15 @@ var Cycle = class {
|
|
|
1232
1258
|
}
|
|
1233
1259
|
};
|
|
1234
1260
|
|
|
1235
|
-
// bazel-out/
|
|
1261
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
1236
1262
|
import ts13 from "typescript";
|
|
1237
1263
|
var ImportGraph = class {
|
|
1264
|
+
checker;
|
|
1265
|
+
perf;
|
|
1266
|
+
imports = /* @__PURE__ */ new Map();
|
|
1238
1267
|
constructor(checker, perf) {
|
|
1239
1268
|
this.checker = checker;
|
|
1240
1269
|
this.perf = perf;
|
|
1241
|
-
this.imports = /* @__PURE__ */ new Map();
|
|
1242
1270
|
}
|
|
1243
1271
|
importsOf(sf) {
|
|
1244
1272
|
if (!this.imports.has(sf)) {
|
|
@@ -1309,6 +1337,8 @@ function isTypeOnlyImportClause(node) {
|
|
|
1309
1337
|
return false;
|
|
1310
1338
|
}
|
|
1311
1339
|
var Found = class {
|
|
1340
|
+
sourceFile;
|
|
1341
|
+
parent;
|
|
1312
1342
|
constructor(sourceFile, parent) {
|
|
1313
1343
|
this.sourceFile = sourceFile;
|
|
1314
1344
|
this.parent = parent;
|
|
@@ -1324,13 +1354,16 @@ var Found = class {
|
|
|
1324
1354
|
}
|
|
1325
1355
|
};
|
|
1326
1356
|
|
|
1327
|
-
// bazel-out/
|
|
1357
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
1328
1358
|
import ts14 from "typescript";
|
|
1329
1359
|
var FlatIndexGenerator = class {
|
|
1360
|
+
entryPoint;
|
|
1361
|
+
moduleName;
|
|
1362
|
+
flatIndexPath;
|
|
1363
|
+
shouldEmit = true;
|
|
1330
1364
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
1331
1365
|
this.entryPoint = entryPoint;
|
|
1332
1366
|
this.moduleName = moduleName;
|
|
1333
|
-
this.shouldEmit = true;
|
|
1334
1367
|
this.flatIndexPath = join(dirname(entryPoint), relativeFlatIndexPath).replace(/\.js$/, "") + ".ts";
|
|
1335
1368
|
}
|
|
1336
1369
|
makeTopLevelShim() {
|
|
@@ -1349,7 +1382,7 @@ export * from '${relativeEntryPoint}';
|
|
|
1349
1382
|
}
|
|
1350
1383
|
};
|
|
1351
1384
|
|
|
1352
|
-
// bazel-out/
|
|
1385
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
1353
1386
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
1354
1387
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
1355
1388
|
let resolvedEntryPoint = null;
|
|
@@ -1365,7 +1398,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
1365
1398
|
return resolvedEntryPoint;
|
|
1366
1399
|
}
|
|
1367
1400
|
|
|
1368
|
-
// bazel-out/
|
|
1401
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
1369
1402
|
import ts15 from "typescript";
|
|
1370
1403
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
1371
1404
|
const diagnostics = [];
|
|
@@ -1445,11 +1478,9 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
1445
1478
|
}
|
|
1446
1479
|
}
|
|
1447
1480
|
|
|
1448
|
-
// bazel-out/
|
|
1481
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
1449
1482
|
var ReferenceGraph = class {
|
|
1450
|
-
|
|
1451
|
-
this.references = /* @__PURE__ */ new Map();
|
|
1452
|
-
}
|
|
1483
|
+
references = /* @__PURE__ */ new Map();
|
|
1453
1484
|
add(from, to) {
|
|
1454
1485
|
if (!this.references.has(from)) {
|
|
1455
1486
|
this.references.set(from, /* @__PURE__ */ new Set());
|
|
@@ -1499,11 +1530,9 @@ var ReferenceGraph = class {
|
|
|
1499
1530
|
}
|
|
1500
1531
|
};
|
|
1501
1532
|
|
|
1502
|
-
// bazel-out/
|
|
1533
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1503
1534
|
var FileDependencyGraph = class {
|
|
1504
|
-
|
|
1505
|
-
this.nodes = /* @__PURE__ */ new Map();
|
|
1506
|
-
}
|
|
1535
|
+
nodes = /* @__PURE__ */ new Map();
|
|
1507
1536
|
addDependency(from, on) {
|
|
1508
1537
|
this.nodeFor(from).dependsOn.add(absoluteFromSourceFile(on));
|
|
1509
1538
|
}
|
|
@@ -1566,7 +1595,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1566
1595
|
return false;
|
|
1567
1596
|
}
|
|
1568
1597
|
|
|
1569
|
-
// bazel-out/
|
|
1598
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1570
1599
|
var IncrementalStateKind;
|
|
1571
1600
|
(function(IncrementalStateKind2) {
|
|
1572
1601
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1574,13 +1603,18 @@ var IncrementalStateKind;
|
|
|
1574
1603
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1575
1604
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1576
1605
|
|
|
1577
|
-
// bazel-out/
|
|
1606
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1578
1607
|
var PhaseKind;
|
|
1579
1608
|
(function(PhaseKind2) {
|
|
1580
1609
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
1581
1610
|
PhaseKind2[PhaseKind2["TypeCheckAndEmit"] = 1] = "TypeCheckAndEmit";
|
|
1582
1611
|
})(PhaseKind || (PhaseKind = {}));
|
|
1583
1612
|
var IncrementalCompilation = class {
|
|
1613
|
+
depGraph;
|
|
1614
|
+
versions;
|
|
1615
|
+
step;
|
|
1616
|
+
phase;
|
|
1617
|
+
_state;
|
|
1584
1618
|
constructor(state, depGraph, versions, step) {
|
|
1585
1619
|
this.depGraph = depGraph;
|
|
1586
1620
|
this.versions = versions;
|
|
@@ -1775,12 +1809,10 @@ function toOriginalSourceFile(sf) {
|
|
|
1775
1809
|
}
|
|
1776
1810
|
}
|
|
1777
1811
|
|
|
1778
|
-
// bazel-out/
|
|
1812
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1779
1813
|
var TrackedIncrementalBuildStrategy = class {
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
this.isSet = false;
|
|
1783
|
-
}
|
|
1814
|
+
state = null;
|
|
1815
|
+
isSet = false;
|
|
1784
1816
|
getIncrementalState() {
|
|
1785
1817
|
return this.state;
|
|
1786
1818
|
}
|
|
@@ -1811,7 +1843,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1811
1843
|
};
|
|
1812
1844
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1813
1845
|
|
|
1814
|
-
// bazel-out/
|
|
1846
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1815
1847
|
var IdentifierKind;
|
|
1816
1848
|
(function(IdentifierKind2) {
|
|
1817
1849
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1824,36 +1856,40 @@ var IdentifierKind;
|
|
|
1824
1856
|
IdentifierKind2[IdentifierKind2["LetDeclaration"] = 7] = "LetDeclaration";
|
|
1825
1857
|
})(IdentifierKind || (IdentifierKind = {}));
|
|
1826
1858
|
var AbsoluteSourceSpan = class {
|
|
1859
|
+
start;
|
|
1860
|
+
end;
|
|
1827
1861
|
constructor(start, end) {
|
|
1828
1862
|
this.start = start;
|
|
1829
1863
|
this.end = end;
|
|
1830
1864
|
}
|
|
1831
1865
|
};
|
|
1832
1866
|
|
|
1833
|
-
// bazel-out/
|
|
1867
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1834
1868
|
var IndexingContext = class {
|
|
1835
|
-
|
|
1836
|
-
this.components = /* @__PURE__ */ new Set();
|
|
1837
|
-
}
|
|
1869
|
+
components = /* @__PURE__ */ new Set();
|
|
1838
1870
|
addComponent(info) {
|
|
1839
1871
|
this.components.add(info);
|
|
1840
1872
|
}
|
|
1841
1873
|
};
|
|
1842
1874
|
|
|
1843
|
-
// bazel-out/
|
|
1875
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1844
1876
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1845
1877
|
|
|
1846
|
-
// bazel-out/
|
|
1878
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1847
1879
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate, TmplAstVariable } from "@angular/compiler";
|
|
1848
1880
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1881
|
+
expressionStr;
|
|
1882
|
+
absoluteOffset;
|
|
1883
|
+
boundTemplate;
|
|
1884
|
+
targetToIdentifier;
|
|
1885
|
+
identifiers = [];
|
|
1886
|
+
errors = [];
|
|
1849
1887
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
1850
1888
|
super();
|
|
1851
1889
|
this.expressionStr = expressionStr;
|
|
1852
1890
|
this.absoluteOffset = absoluteOffset;
|
|
1853
1891
|
this.boundTemplate = boundTemplate;
|
|
1854
1892
|
this.targetToIdentifier = targetToIdentifier;
|
|
1855
|
-
this.identifiers = [];
|
|
1856
|
-
this.errors = [];
|
|
1857
1893
|
}
|
|
1858
1894
|
static getIdentifiers(ast, source, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
1859
1895
|
const visitor = new ExpressionVisitor(source, absoluteOffset, boundTemplate, targetToIdentifier);
|
|
@@ -1897,13 +1933,14 @@ var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
|
1897
1933
|
}
|
|
1898
1934
|
};
|
|
1899
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();
|
|
1900
1941
|
constructor(boundTemplate) {
|
|
1901
1942
|
super();
|
|
1902
1943
|
this.boundTemplate = boundTemplate;
|
|
1903
|
-
this.identifiers = /* @__PURE__ */ new Set();
|
|
1904
|
-
this.errors = [];
|
|
1905
|
-
this.targetIdentifierCache = /* @__PURE__ */ new Map();
|
|
1906
|
-
this.elementAndTemplateIdentifierCache = /* @__PURE__ */ new Map();
|
|
1907
1944
|
}
|
|
1908
1945
|
visit(node) {
|
|
1909
1946
|
node.visit(this);
|
|
@@ -2138,7 +2175,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2138
2175
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2139
2176
|
}
|
|
2140
2177
|
|
|
2141
|
-
// bazel-out/
|
|
2178
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2142
2179
|
function generateAnalysis(context) {
|
|
2143
2180
|
const analysis = /* @__PURE__ */ new Map();
|
|
2144
2181
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2174,15 +2211,17 @@ function generateAnalysis(context) {
|
|
|
2174
2211
|
return analysis;
|
|
2175
2212
|
}
|
|
2176
2213
|
|
|
2177
|
-
// bazel-out/
|
|
2214
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2178
2215
|
var NgModuleIndexImpl = class {
|
|
2216
|
+
metaReader;
|
|
2217
|
+
localReader;
|
|
2179
2218
|
constructor(metaReader, localReader) {
|
|
2180
2219
|
this.metaReader = metaReader;
|
|
2181
2220
|
this.localReader = localReader;
|
|
2182
|
-
this.ngModuleAuthoritativeReference = /* @__PURE__ */ new Map();
|
|
2183
|
-
this.typeToExportingModules = /* @__PURE__ */ new Map();
|
|
2184
|
-
this.indexed = false;
|
|
2185
2221
|
}
|
|
2222
|
+
ngModuleAuthoritativeReference = /* @__PURE__ */ new Map();
|
|
2223
|
+
typeToExportingModules = /* @__PURE__ */ new Map();
|
|
2224
|
+
indexed = false;
|
|
2186
2225
|
updateWith(cache, key, elem) {
|
|
2187
2226
|
if (cache.has(key)) {
|
|
2188
2227
|
cache.get(key).add(elem);
|
|
@@ -2263,17 +2302,22 @@ var NgModuleIndexImpl = class {
|
|
|
2263
2302
|
}
|
|
2264
2303
|
};
|
|
2265
2304
|
|
|
2266
|
-
// bazel-out/
|
|
2305
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2267
2306
|
import ts16 from "typescript";
|
|
2268
2307
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2269
2308
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
2270
2309
|
var RESOURCE_MARKER_TS = RESOURCE_MARKER + ".ts";
|
|
2271
2310
|
var AdapterResourceLoader = class {
|
|
2311
|
+
adapter;
|
|
2312
|
+
options;
|
|
2313
|
+
cache = /* @__PURE__ */ new Map();
|
|
2314
|
+
fetching = /* @__PURE__ */ new Map();
|
|
2315
|
+
lookupResolutionHost;
|
|
2316
|
+
canPreload;
|
|
2317
|
+
canPreprocess;
|
|
2272
2318
|
constructor(adapter, options) {
|
|
2273
2319
|
this.adapter = adapter;
|
|
2274
2320
|
this.options = options;
|
|
2275
|
-
this.cache = /* @__PURE__ */ new Map();
|
|
2276
|
-
this.fetching = /* @__PURE__ */ new Map();
|
|
2277
2321
|
this.lookupResolutionHost = createLookupResolutionHost(this.adapter);
|
|
2278
2322
|
this.canPreload = !!this.adapter.readResource;
|
|
2279
2323
|
this.canPreprocess = !!this.adapter.transformResource;
|
|
@@ -2304,7 +2348,8 @@ var AdapterResourceLoader = class {
|
|
|
2304
2348
|
const resourceContext = {
|
|
2305
2349
|
type: "style",
|
|
2306
2350
|
containingFile: context.containingFile,
|
|
2307
|
-
resourceFile: resolvedUrl
|
|
2351
|
+
resourceFile: resolvedUrl,
|
|
2352
|
+
className: context.className
|
|
2308
2353
|
};
|
|
2309
2354
|
result = Promise.resolve(result).then(async (str) => {
|
|
2310
2355
|
const transformResult = await this.adapter.transformResource(str, resourceContext);
|
|
@@ -2330,7 +2375,9 @@ var AdapterResourceLoader = class {
|
|
|
2330
2375
|
const transformResult = await this.adapter.transformResource(data, {
|
|
2331
2376
|
type: "style",
|
|
2332
2377
|
containingFile: context.containingFile,
|
|
2333
|
-
resourceFile: null
|
|
2378
|
+
resourceFile: null,
|
|
2379
|
+
order: context.order,
|
|
2380
|
+
className: context.className
|
|
2334
2381
|
});
|
|
2335
2382
|
if (transformResult === null) {
|
|
2336
2383
|
return data;
|
|
@@ -2413,13 +2460,16 @@ function createLookupResolutionHost(adapter) {
|
|
|
2413
2460
|
};
|
|
2414
2461
|
}
|
|
2415
2462
|
|
|
2416
|
-
// bazel-out/
|
|
2463
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2417
2464
|
var StandaloneComponentScopeReader = class {
|
|
2465
|
+
metaReader;
|
|
2466
|
+
localModuleReader;
|
|
2467
|
+
dtsModuleReader;
|
|
2468
|
+
cache = /* @__PURE__ */ new Map();
|
|
2418
2469
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
2419
2470
|
this.metaReader = metaReader;
|
|
2420
2471
|
this.localModuleReader = localModuleReader;
|
|
2421
2472
|
this.dtsModuleReader = dtsModuleReader;
|
|
2422
|
-
this.cache = /* @__PURE__ */ new Map();
|
|
2423
2473
|
}
|
|
2424
2474
|
getScopeForComponent(clazz) {
|
|
2425
2475
|
var _a;
|
|
@@ -2509,10 +2559,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2509
2559
|
}
|
|
2510
2560
|
};
|
|
2511
2561
|
|
|
2512
|
-
// bazel-out/
|
|
2562
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2513
2563
|
import { ASTWithSource as ASTWithSource3, BindingType, Interpolation, PropertyRead as PropertyRead2, TmplAstBoundAttribute } from "@angular/compiler";
|
|
2514
2564
|
|
|
2515
|
-
// bazel-out/
|
|
2565
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
|
|
2516
2566
|
import ts17 from "typescript";
|
|
2517
2567
|
var SIGNAL_FNS = /* @__PURE__ */ new Set([
|
|
2518
2568
|
"WritableSignal",
|
|
@@ -2532,24 +2582,25 @@ function isSignalSymbol(symbol) {
|
|
|
2532
2582
|
});
|
|
2533
2583
|
}
|
|
2534
2584
|
|
|
2535
|
-
// bazel-out/
|
|
2585
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
2536
2586
|
import { ASTWithSource as ASTWithSource2, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
2537
2587
|
var TemplateCheckWithVisitor = class {
|
|
2538
|
-
|
|
2539
|
-
this.canVisitStructuralAttributes = true;
|
|
2540
|
-
}
|
|
2588
|
+
canVisitStructuralAttributes = true;
|
|
2541
2589
|
run(ctx, component, template) {
|
|
2542
2590
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
2543
2591
|
return visitor.getDiagnostics(template);
|
|
2544
2592
|
}
|
|
2545
2593
|
};
|
|
2546
2594
|
var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
2595
|
+
ctx;
|
|
2596
|
+
component;
|
|
2597
|
+
check;
|
|
2598
|
+
diagnostics = [];
|
|
2547
2599
|
constructor(ctx, component, check) {
|
|
2548
2600
|
super();
|
|
2549
2601
|
this.ctx = ctx;
|
|
2550
2602
|
this.component = component;
|
|
2551
2603
|
this.check = check;
|
|
2552
|
-
this.diagnostics = [];
|
|
2553
2604
|
}
|
|
2554
2605
|
visit(node, context) {
|
|
2555
2606
|
this.diagnostics.push(...this.check.visitNode(this.ctx, this.component, node));
|
|
@@ -2668,14 +2719,11 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
2668
2719
|
}
|
|
2669
2720
|
};
|
|
2670
2721
|
|
|
2671
|
-
// bazel-out/
|
|
2722
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2672
2723
|
var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
|
|
2673
2724
|
var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
|
|
2674
2725
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
2675
|
-
|
|
2676
|
-
super(...arguments);
|
|
2677
|
-
this.code = ErrorCode.INTERPOLATED_SIGNAL_NOT_INVOKED;
|
|
2678
|
-
}
|
|
2726
|
+
code = ErrorCode.INTERPOLATED_SIGNAL_NOT_INVOKED;
|
|
2679
2727
|
visitNode(ctx, component, node) {
|
|
2680
2728
|
if (node instanceof Interpolation) {
|
|
2681
2729
|
return node.expressions.filter((item) => item instanceof PropertyRead2).flatMap((item) => buildDiagnosticForSignal(ctx, item, component));
|
|
@@ -2720,13 +2768,10 @@ var factory = {
|
|
|
2720
2768
|
create: () => new InterpolatedSignalCheck()
|
|
2721
2769
|
};
|
|
2722
2770
|
|
|
2723
|
-
// bazel-out/
|
|
2771
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
2724
2772
|
import { TmplAstBoundEvent } from "@angular/compiler";
|
|
2725
2773
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
2726
|
-
|
|
2727
|
-
super(...arguments);
|
|
2728
|
-
this.code = ErrorCode.INVALID_BANANA_IN_BOX;
|
|
2729
|
-
}
|
|
2774
|
+
code = ErrorCode.INVALID_BANANA_IN_BOX;
|
|
2730
2775
|
visitNode(ctx, component, node) {
|
|
2731
2776
|
if (!(node instanceof TmplAstBoundEvent))
|
|
2732
2777
|
return [];
|
|
@@ -2746,7 +2791,7 @@ var factory2 = {
|
|
|
2746
2791
|
create: () => new InvalidBananaInBoxCheck()
|
|
2747
2792
|
};
|
|
2748
2793
|
|
|
2749
|
-
// bazel-out/
|
|
2794
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
2750
2795
|
import { TmplAstTemplate as TmplAstTemplate2 } from "@angular/compiler";
|
|
2751
2796
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
2752
2797
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -2755,10 +2800,7 @@ var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
|
2755
2800
|
["ngSwitchDefault", { directive: "NgSwitchDefault", builtIn: "@switch with @default" }]
|
|
2756
2801
|
]);
|
|
2757
2802
|
var MissingControlFlowDirectiveCheck = class extends TemplateCheckWithVisitor {
|
|
2758
|
-
|
|
2759
|
-
super(...arguments);
|
|
2760
|
-
this.code = ErrorCode.MISSING_CONTROL_FLOW_DIRECTIVE;
|
|
2761
|
-
}
|
|
2803
|
+
code = ErrorCode.MISSING_CONTROL_FLOW_DIRECTIVE;
|
|
2762
2804
|
run(ctx, component, template) {
|
|
2763
2805
|
const componentMetadata = ctx.templateTypeChecker.getDirectiveMetadata(component);
|
|
2764
2806
|
if (!componentMetadata || !componentMetadata.isStandalone) {
|
|
@@ -2791,13 +2833,10 @@ var factory3 = {
|
|
|
2791
2833
|
}
|
|
2792
2834
|
};
|
|
2793
2835
|
|
|
2794
|
-
// bazel-out/
|
|
2836
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
2795
2837
|
import { TmplAstTemplate as TmplAstTemplate3 } from "@angular/compiler";
|
|
2796
2838
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
2797
|
-
|
|
2798
|
-
super(...arguments);
|
|
2799
|
-
this.code = ErrorCode.MISSING_NGFOROF_LET;
|
|
2800
|
-
}
|
|
2839
|
+
code = ErrorCode.MISSING_NGFOROF_LET;
|
|
2801
2840
|
visitNode(ctx, component, node) {
|
|
2802
2841
|
const isTemplate = node instanceof TmplAstTemplate3;
|
|
2803
2842
|
if (!(node instanceof TmplAstTemplate3)) {
|
|
@@ -2824,15 +2863,12 @@ var factory4 = {
|
|
|
2824
2863
|
create: () => new MissingNgForOfLetCheck()
|
|
2825
2864
|
};
|
|
2826
2865
|
|
|
2827
|
-
// bazel-out/
|
|
2866
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
2828
2867
|
import { Binary } from "@angular/compiler";
|
|
2829
2868
|
import ts18 from "typescript";
|
|
2830
2869
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
this.canVisitStructuralAttributes = false;
|
|
2834
|
-
this.code = ErrorCode.NULLISH_COALESCING_NOT_NULLABLE;
|
|
2835
|
-
}
|
|
2870
|
+
canVisitStructuralAttributes = false;
|
|
2871
|
+
code = ErrorCode.NULLISH_COALESCING_NOT_NULLABLE;
|
|
2836
2872
|
visitNode(ctx, component, node) {
|
|
2837
2873
|
if (!(node instanceof Binary) || node.operation !== "??")
|
|
2838
2874
|
return [];
|
|
@@ -2870,15 +2906,12 @@ var factory5 = {
|
|
|
2870
2906
|
}
|
|
2871
2907
|
};
|
|
2872
2908
|
|
|
2873
|
-
// bazel-out/
|
|
2909
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
2874
2910
|
import { SafeCall, SafeKeyedRead, SafePropertyRead } from "@angular/compiler";
|
|
2875
2911
|
import ts19 from "typescript";
|
|
2876
2912
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
this.canVisitStructuralAttributes = false;
|
|
2880
|
-
this.code = ErrorCode.OPTIONAL_CHAIN_NOT_NULLABLE;
|
|
2881
|
-
}
|
|
2913
|
+
canVisitStructuralAttributes = false;
|
|
2914
|
+
code = ErrorCode.OPTIONAL_CHAIN_NOT_NULLABLE;
|
|
2882
2915
|
visitNode(ctx, component, node) {
|
|
2883
2916
|
if (!(node instanceof SafeCall) && !(node instanceof SafePropertyRead) && !(node instanceof SafeKeyedRead))
|
|
2884
2917
|
return [];
|
|
@@ -2917,14 +2950,11 @@ var factory6 = {
|
|
|
2917
2950
|
}
|
|
2918
2951
|
};
|
|
2919
2952
|
|
|
2920
|
-
// bazel-out/
|
|
2953
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
2921
2954
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute2 } from "@angular/compiler";
|
|
2922
2955
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
2923
2956
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
2924
|
-
|
|
2925
|
-
super(...arguments);
|
|
2926
|
-
this.code = ErrorCode.SUFFIX_NOT_SUPPORTED;
|
|
2927
|
-
}
|
|
2957
|
+
code = ErrorCode.SUFFIX_NOT_SUPPORTED;
|
|
2928
2958
|
visitNode(ctx, component, node) {
|
|
2929
2959
|
if (!(node instanceof TmplAstBoundAttribute2))
|
|
2930
2960
|
return [];
|
|
@@ -2941,13 +2971,10 @@ var factory7 = {
|
|
|
2941
2971
|
create: () => new SuffixNotSupportedCheck()
|
|
2942
2972
|
};
|
|
2943
2973
|
|
|
2944
|
-
// bazel-out/
|
|
2974
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
2945
2975
|
import { TmplAstTextAttribute } from "@angular/compiler";
|
|
2946
2976
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
2947
|
-
|
|
2948
|
-
super(...arguments);
|
|
2949
|
-
this.code = ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING;
|
|
2950
|
-
}
|
|
2977
|
+
code = ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING;
|
|
2951
2978
|
visitNode(ctx, component, node) {
|
|
2952
2979
|
if (!(node instanceof TmplAstTextAttribute))
|
|
2953
2980
|
return [];
|
|
@@ -2980,13 +3007,10 @@ var factory8 = {
|
|
|
2980
3007
|
create: () => new TextAttributeNotBindingSpec()
|
|
2981
3008
|
};
|
|
2982
3009
|
|
|
2983
|
-
// bazel-out/
|
|
3010
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.mjs
|
|
2984
3011
|
import { ASTWithSource as ASTWithSource4, Call, Chain, Conditional, ParsedEventType, PropertyRead as PropertyRead3, SafeCall as SafeCall2, SafePropertyRead as SafePropertyRead2, TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
2985
3012
|
var UninvokedFunctionInEventBindingSpec = class extends TemplateCheckWithVisitor {
|
|
2986
|
-
|
|
2987
|
-
super(...arguments);
|
|
2988
|
-
this.code = ErrorCode.UNINVOKED_FUNCTION_IN_EVENT_BINDING;
|
|
2989
|
-
}
|
|
3013
|
+
code = ErrorCode.UNINVOKED_FUNCTION_IN_EVENT_BINDING;
|
|
2990
3014
|
visitNode(ctx, component, node) {
|
|
2991
3015
|
if (!(node instanceof TmplAstBoundEvent2))
|
|
2992
3016
|
return [];
|
|
@@ -3032,14 +3056,11 @@ var factory9 = {
|
|
|
3032
3056
|
create: () => new UninvokedFunctionInEventBindingSpec()
|
|
3033
3057
|
};
|
|
3034
3058
|
|
|
3035
|
-
// bazel-out/
|
|
3059
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.mjs
|
|
3036
3060
|
import { AST, ASTWithSource as ASTWithSource5, TmplAstLetDeclaration } from "@angular/compiler";
|
|
3037
3061
|
var UnusedLetDeclarationCheck = class extends TemplateCheckWithVisitor {
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
this.code = ErrorCode.UNUSED_LET_DECLARATION;
|
|
3041
|
-
this.analysis = /* @__PURE__ */ new Map();
|
|
3042
|
-
}
|
|
3062
|
+
code = ErrorCode.UNUSED_LET_DECLARATION;
|
|
3063
|
+
analysis = /* @__PURE__ */ new Map();
|
|
3043
3064
|
run(ctx, component, template) {
|
|
3044
3065
|
super.run(ctx, component, template);
|
|
3045
3066
|
const diagnostics = [];
|
|
@@ -3077,10 +3098,10 @@ var factory10 = {
|
|
|
3077
3098
|
create: () => new UnusedLetDeclarationCheck()
|
|
3078
3099
|
};
|
|
3079
3100
|
|
|
3080
|
-
// bazel-out/
|
|
3101
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3081
3102
|
import ts20 from "typescript";
|
|
3082
3103
|
|
|
3083
|
-
// bazel-out/
|
|
3104
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
3084
3105
|
var DiagnosticCategoryLabel;
|
|
3085
3106
|
(function(DiagnosticCategoryLabel2) {
|
|
3086
3107
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -3088,8 +3109,10 @@ var DiagnosticCategoryLabel;
|
|
|
3088
3109
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
3089
3110
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
3090
3111
|
|
|
3091
|
-
// bazel-out/
|
|
3112
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3092
3113
|
var ExtendedTemplateCheckerImpl = class {
|
|
3114
|
+
partialCtx;
|
|
3115
|
+
templateChecks;
|
|
3093
3116
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
3094
3117
|
var _a, _b, _c, _d, _e;
|
|
3095
3118
|
this.partialCtx = { templateTypeChecker, typeChecker };
|
|
@@ -3141,7 +3164,7 @@ function assertNever(value) {
|
|
|
3141
3164
|
${value}`);
|
|
3142
3165
|
}
|
|
3143
3166
|
|
|
3144
|
-
// bazel-out/
|
|
3167
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
3145
3168
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
3146
3169
|
factory2,
|
|
3147
3170
|
factory5,
|
|
@@ -3160,10 +3183,11 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
|
3160
3183
|
...ALL_DIAGNOSTIC_FACTORIES.map((factory11) => factory11.name)
|
|
3161
3184
|
]);
|
|
3162
3185
|
|
|
3163
|
-
// bazel-out/
|
|
3186
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
|
|
3164
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";
|
|
3165
3188
|
import ts21 from "typescript";
|
|
3166
3189
|
var TemplateSemanticsCheckerImpl = class {
|
|
3190
|
+
templateTypeChecker;
|
|
3167
3191
|
constructor(templateTypeChecker) {
|
|
3168
3192
|
this.templateTypeChecker = templateTypeChecker;
|
|
3169
3193
|
}
|
|
@@ -3173,6 +3197,7 @@ var TemplateSemanticsCheckerImpl = class {
|
|
|
3173
3197
|
}
|
|
3174
3198
|
};
|
|
3175
3199
|
var TemplateSemanticsVisitor = class extends TmplAstRecursiveVisitor2 {
|
|
3200
|
+
expressionVisitor;
|
|
3176
3201
|
constructor(expressionVisitor) {
|
|
3177
3202
|
super();
|
|
3178
3203
|
this.expressionVisitor = expressionVisitor;
|
|
@@ -3190,6 +3215,9 @@ var TemplateSemanticsVisitor = class extends TmplAstRecursiveVisitor2 {
|
|
|
3190
3215
|
}
|
|
3191
3216
|
};
|
|
3192
3217
|
var ExpressionsSemanticsVisitor = class extends RecursiveAstVisitor3 {
|
|
3218
|
+
templateTypeChecker;
|
|
3219
|
+
component;
|
|
3220
|
+
diagnostics;
|
|
3193
3221
|
constructor(templateTypeChecker, component, diagnostics) {
|
|
3194
3222
|
super();
|
|
3195
3223
|
this.templateTypeChecker = templateTypeChecker;
|
|
@@ -3251,7 +3279,7 @@ function unwrapAstWithSource(ast) {
|
|
|
3251
3279
|
return ast instanceof ASTWithSource6 ? ast.ast : ast;
|
|
3252
3280
|
}
|
|
3253
3281
|
|
|
3254
|
-
// bazel-out/
|
|
3282
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
|
|
3255
3283
|
import ts22 from "typescript";
|
|
3256
3284
|
var APIS_TO_CHECK = [
|
|
3257
3285
|
INPUT_INITIALIZER_FN,
|
|
@@ -3260,6 +3288,8 @@ var APIS_TO_CHECK = [
|
|
|
3260
3288
|
...QUERY_INITIALIZER_FNS
|
|
3261
3289
|
];
|
|
3262
3290
|
var InitializerApiUsageRule = class {
|
|
3291
|
+
reflector;
|
|
3292
|
+
importedSymbolsTracker;
|
|
3263
3293
|
constructor(reflector, importedSymbolsTracker) {
|
|
3264
3294
|
this.reflector = reflector;
|
|
3265
3295
|
this.importedSymbolsTracker = importedSymbolsTracker;
|
|
@@ -3302,9 +3332,12 @@ var InitializerApiUsageRule = class {
|
|
|
3302
3332
|
}
|
|
3303
3333
|
};
|
|
3304
3334
|
|
|
3305
|
-
// bazel-out/
|
|
3335
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.mjs
|
|
3306
3336
|
import ts23 from "typescript";
|
|
3307
3337
|
var UnusedStandaloneImportsRule = class {
|
|
3338
|
+
templateTypeChecker;
|
|
3339
|
+
typeCheckingConfig;
|
|
3340
|
+
importedSymbolsTracker;
|
|
3308
3341
|
constructor(templateTypeChecker, typeCheckingConfig, importedSymbolsTracker) {
|
|
3309
3342
|
this.templateTypeChecker = templateTypeChecker;
|
|
3310
3343
|
this.typeCheckingConfig = typeCheckingConfig;
|
|
@@ -3376,11 +3409,12 @@ var UnusedStandaloneImportsRule = class {
|
|
|
3376
3409
|
}
|
|
3377
3410
|
};
|
|
3378
3411
|
|
|
3379
|
-
// bazel-out/
|
|
3412
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/config.mjs
|
|
3380
3413
|
var UNUSED_STANDALONE_IMPORTS_RULE_ENABLED = true;
|
|
3381
3414
|
|
|
3382
|
-
// bazel-out/
|
|
3415
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
|
|
3383
3416
|
var SourceFileValidator = class {
|
|
3417
|
+
rules;
|
|
3384
3418
|
constructor(reflector, importedSymbolsTracker, templateTypeChecker, typeCheckingConfig) {
|
|
3385
3419
|
this.rules = [new InitializerApiUsageRule(reflector, importedSymbolsTracker)];
|
|
3386
3420
|
if (UNUSED_STANDALONE_IMPORTS_RULE_ENABLED) {
|
|
@@ -3420,7 +3454,7 @@ var SourceFileValidator = class {
|
|
|
3420
3454
|
}
|
|
3421
3455
|
};
|
|
3422
3456
|
|
|
3423
|
-
// bazel-out/
|
|
3457
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
|
|
3424
3458
|
function coreHasSymbol(program, symbol) {
|
|
3425
3459
|
const checker = program.getTypeChecker();
|
|
3426
3460
|
for (const sf of program.getSourceFiles().filter(isMaybeCore)) {
|
|
@@ -3439,7 +3473,7 @@ function isMaybeCore(sf) {
|
|
|
3439
3473
|
return sf.isDeclarationFile && sf.fileName.includes("@angular/core") && sf.fileName.endsWith("index.d.ts");
|
|
3440
3474
|
}
|
|
3441
3475
|
|
|
3442
|
-
// bazel-out/
|
|
3476
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
|
|
3443
3477
|
import semver from "semver";
|
|
3444
3478
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
3445
3479
|
if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
|
|
@@ -3448,7 +3482,7 @@ function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
|
3448
3482
|
return semver.satisfies(coreVersion, minVersion);
|
|
3449
3483
|
}
|
|
3450
3484
|
|
|
3451
|
-
// bazel-out/
|
|
3485
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
3452
3486
|
var CompilationTicketKind;
|
|
3453
3487
|
(function(CompilationTicketKind2) {
|
|
3454
3488
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -3507,6 +3541,32 @@ function incrementalFromStateTicket(oldProgram, oldState, newProgram, options, i
|
|
|
3507
3541
|
};
|
|
3508
3542
|
}
|
|
3509
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;
|
|
3510
3570
|
static fromTicket(ticket, adapter) {
|
|
3511
3571
|
switch (ticket.kind) {
|
|
3512
3572
|
case CompilationTicketKind.Fresh:
|
|
@@ -3529,15 +3589,14 @@ var NgCompiler = class {
|
|
|
3529
3589
|
this.incrementalCompilation = incrementalCompilation;
|
|
3530
3590
|
this.usePoisonedData = usePoisonedData;
|
|
3531
3591
|
this.livePerfRecorder = livePerfRecorder;
|
|
3532
|
-
this.
|
|
3533
|
-
this.constructionDiagnostics = [];
|
|
3534
|
-
this.nonTemplateDiagnostics = null;
|
|
3592
|
+
this.angularCoreVersion = (_a = options["_angularCoreVersion"]) != null ? _a : null;
|
|
3535
3593
|
this.delegatingPerfRecorder = new DelegatingPerfRecorder(this.perfRecorder);
|
|
3536
3594
|
this.usePoisonedData = usePoisonedData || !!options._compilePoisonedComponents;
|
|
3537
3595
|
this.enableTemplateTypeChecker = enableTemplateTypeChecker || !!options._enableTemplateTypeChecker;
|
|
3538
|
-
this.enableBlockSyntax = (
|
|
3539
|
-
this.enableLetSyntax = (
|
|
3540
|
-
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"];
|
|
3541
3600
|
this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options));
|
|
3542
3601
|
this.currentProgram = inputProgram;
|
|
3543
3602
|
this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
|
|
@@ -3788,6 +3847,24 @@ var NgCompiler = class {
|
|
|
3788
3847
|
const compilation = this.ensureAnalyzed();
|
|
3789
3848
|
compilation.traitCompiler.xi18n(ctx);
|
|
3790
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
|
+
}
|
|
3791
3868
|
ensureAnalyzed() {
|
|
3792
3869
|
if (this.compilation === null) {
|
|
3793
3870
|
this.analyzeSync();
|
|
@@ -3984,7 +4061,7 @@ var NgCompiler = class {
|
|
|
3984
4061
|
return diagnostics;
|
|
3985
4062
|
}
|
|
3986
4063
|
makeCompilation() {
|
|
3987
|
-
var _a, _b, _c, _d, _e;
|
|
4064
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3988
4065
|
const isCore = isAngularCorePackage(this.inputProgram);
|
|
3989
4066
|
let compilationMode = CompilationMode.FULL;
|
|
3990
4067
|
if (!isCore) {
|
|
@@ -4068,6 +4145,7 @@ var NgCompiler = class {
|
|
|
4068
4145
|
const strictCtorDeps = this.options.strictInjectionParameters || false;
|
|
4069
4146
|
const supportJitMode = (_b = this.options["supportJitMode"]) != null ? _b : true;
|
|
4070
4147
|
const supportTestBed = (_c = this.options["supportTestBed"]) != null ? _c : true;
|
|
4148
|
+
const externalRuntimeStyles = (_d = this.options["externalRuntimeStyles"]) != null ? _d : false;
|
|
4071
4149
|
if (supportTestBed === false && compilationMode === CompilationMode.PARTIAL) {
|
|
4072
4150
|
throw new Error('TestBed support ("supportTestBed" option) cannot be disabled in partial compilation mode.');
|
|
4073
4151
|
}
|
|
@@ -4079,11 +4157,11 @@ var NgCompiler = class {
|
|
|
4079
4157
|
}
|
|
4080
4158
|
const jitDeclarationRegistry = new JitDeclarationRegistry();
|
|
4081
4159
|
const handlers = [
|
|
4082
|
-
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader,
|
|
4083
|
-
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, importTracker, supportTestBed, compilationMode, jitDeclarationRegistry, !!this.options.strictStandalone),
|
|
4084
|
-
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),
|
|
4085
4163
|
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
4086
|
-
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (
|
|
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)
|
|
4087
4165
|
];
|
|
4088
4166
|
const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
|
|
4089
4167
|
const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
|
|
@@ -4232,6 +4310,7 @@ function makeConfigDiagnostic({ category, code, messageText }) {
|
|
|
4232
4310
|
};
|
|
4233
4311
|
}
|
|
4234
4312
|
var ReferenceGraphAdapter = class {
|
|
4313
|
+
graph;
|
|
4235
4314
|
constructor(graph) {
|
|
4236
4315
|
this.graph = graph;
|
|
4237
4316
|
}
|
|
@@ -4248,6 +4327,9 @@ var ReferenceGraphAdapter = class {
|
|
|
4248
4327
|
}
|
|
4249
4328
|
};
|
|
4250
4329
|
var NotifyingProgramDriverWrapper = class {
|
|
4330
|
+
delegate;
|
|
4331
|
+
notifyNewProgram;
|
|
4332
|
+
getSourceFileVersion;
|
|
4251
4333
|
constructor(delegate, notifyNewProgram) {
|
|
4252
4334
|
var _a;
|
|
4253
4335
|
this.delegate = delegate;
|
|
@@ -4277,9 +4359,39 @@ function versionMapFromProgram(program, driver) {
|
|
|
4277
4359
|
return versions;
|
|
4278
4360
|
}
|
|
4279
4361
|
|
|
4280
|
-
// bazel-out/
|
|
4362
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
4281
4363
|
import ts25 from "typescript";
|
|
4282
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;
|
|
4283
4395
|
get jsDocParsingMode() {
|
|
4284
4396
|
return this.delegate.jsDocParsingMode;
|
|
4285
4397
|
}
|
|
@@ -4323,11 +4435,16 @@ var DelegatingCompilerHost = class {
|
|
|
4323
4435
|
}
|
|
4324
4436
|
};
|
|
4325
4437
|
var NgCompilerHost = class extends DelegatingCompilerHost {
|
|
4438
|
+
shimAdapter;
|
|
4439
|
+
shimTagger;
|
|
4440
|
+
entryPoint = null;
|
|
4441
|
+
constructionDiagnostics;
|
|
4442
|
+
inputFiles;
|
|
4443
|
+
rootDirs;
|
|
4326
4444
|
constructor(delegate, inputFiles, rootDirs, shimAdapter, shimTagger, entryPoint, diagnostics) {
|
|
4327
4445
|
super(delegate);
|
|
4328
4446
|
this.shimAdapter = shimAdapter;
|
|
4329
4447
|
this.shimTagger = shimTagger;
|
|
4330
|
-
this.entryPoint = null;
|
|
4331
4448
|
this.entryPoint = entryPoint;
|
|
4332
4449
|
this.constructionDiagnostics = diagnostics;
|
|
4333
4450
|
this.inputFiles = [...inputFiles, ...shimAdapter.extraInputFiles];
|
|
@@ -4416,8 +4533,13 @@ var NgCompilerHost = class extends DelegatingCompilerHost {
|
|
|
4416
4533
|
}
|
|
4417
4534
|
};
|
|
4418
4535
|
|
|
4419
|
-
// bazel-out/
|
|
4536
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
4420
4537
|
var NgtscProgram = class {
|
|
4538
|
+
options;
|
|
4539
|
+
compiler;
|
|
4540
|
+
tsProgram;
|
|
4541
|
+
host;
|
|
4542
|
+
incrementalStrategy;
|
|
4421
4543
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
4422
4544
|
this.options = options;
|
|
4423
4545
|
const perfRecorder = ActivePerfRecorder.zeroedToNow();
|
|
@@ -4642,15 +4764,15 @@ function mergeEmitResults(emitResults) {
|
|
|
4642
4764
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
4643
4765
|
}
|
|
4644
4766
|
|
|
4645
|
-
// bazel-out/
|
|
4767
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
4646
4768
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
4647
4769
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
4648
4770
|
}
|
|
4649
4771
|
|
|
4650
|
-
// bazel-out/
|
|
4772
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4651
4773
|
import ts28 from "typescript";
|
|
4652
4774
|
|
|
4653
|
-
// bazel-out/
|
|
4775
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
4654
4776
|
import ts27 from "typescript";
|
|
4655
4777
|
function createMessageDiagnostic(messageText) {
|
|
4656
4778
|
return {
|
|
@@ -4664,7 +4786,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
4664
4786
|
};
|
|
4665
4787
|
}
|
|
4666
4788
|
|
|
4667
|
-
// bazel-out/
|
|
4789
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4668
4790
|
var defaultFormatHost = {
|
|
4669
4791
|
getCurrentDirectory: () => ts28.sys.getCurrentDirectory(),
|
|
4670
4792
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -4895,4 +5017,4 @@ export {
|
|
|
4895
5017
|
* Use of this source code is governed by an MIT-style license that can be
|
|
4896
5018
|
* found in the LICENSE file at https://angular.dev/license
|
|
4897
5019
|
*/
|
|
4898
|
-
//# sourceMappingURL=chunk-
|
|
5020
|
+
//# sourceMappingURL=chunk-TQQOHNLL.js.map
|