@angular/compiler-cli 17.1.0-next.3 → 17.1.0-next.5
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-ZH5AJH3B.js → chunk-BLWWEEEL.js} +5 -5
- package/bundles/{chunk-EVIA54WP.js → chunk-EFMKZSXJ.js} +59 -33
- package/bundles/chunk-EFMKZSXJ.js.map +6 -0
- package/bundles/{chunk-XI2N3MV4.js → chunk-MFE4YVWE.js} +15 -14
- package/bundles/chunk-MFE4YVWE.js.map +6 -0
- package/bundles/{chunk-DV5CKGO6.js → chunk-N5SJSJNW.js} +230 -158
- package/bundles/chunk-N5SJSJNW.js.map +6 -0
- package/bundles/{chunk-5ASJ74IM.js → chunk-OZXTEOXW.js} +34 -32
- package/bundles/chunk-OZXTEOXW.js.map +6 -0
- package/bundles/{chunk-I3M5LXMW.js → chunk-QPMYDNZG.js} +7 -7
- package/bundles/{chunk-JOIB3454.js → chunk-R4KQI5XI.js} +5 -5
- package/bundles/{chunk-CF2CT7RQ.js → chunk-SBDNBITT.js} +3 -3
- package/bundles/{chunk-LJKJD6DP.js → chunk-U4EFDEE4.js} +290 -166
- package/bundles/chunk-U4EFDEE4.js.map +6 -0
- package/bundles/{chunk-WMUBJYYX.js → chunk-WCD6LVCP.js} +7 -7
- package/bundles/{chunk-5JRMFWYO.js → chunk-YGXKICXB.js} +4 -4
- package/bundles/index.js +12 -13
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +18 -18
- 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 +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +5 -6
- package/bundles/private/tooling.js +3 -4
- package/bundles/src/bin/ng_xi18n.js +10 -11
- package/bundles/src/bin/ng_xi18n.js.map +1 -1
- package/bundles/src/bin/ngc.js +8 -9
- package/bundles/src/bin/ngc.js.map +1 -1
- package/bundles_metadata.json +1 -1
- package/linker/babel/src/ast/babel_ast_factory.d.ts +0 -1
- package/linker/babel/src/ast/babel_ast_host.d.ts +0 -1
- package/linker/babel/src/babel_declaration_scope.d.ts +2 -5
- package/linker/babel/src/babel_plugin.d.ts +0 -1
- package/linker/babel/src/es2015_linker_plugin.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/private/babel.d.ts +6 -20
- package/src/ngtsc/annotations/directive/src/input_function.d.ts +23 -0
- package/src/ngtsc/annotations/directive/src/shared.d.ts +15 -3
- package/src/ngtsc/imports/src/emitter.d.ts +5 -1
- package/src/ngtsc/imports/src/references.d.ts +3 -1
- package/src/ngtsc/metadata/src/api.d.ts +25 -3
- package/src/ngtsc/metadata/src/property_mapping.d.ts +3 -1
- package/src/ngtsc/reflection/src/host.d.ts +6 -1
- package/src/ngtsc/reflection/src/typescript.d.ts +1 -0
- package/src/ngtsc/typecheck/src/environment.d.ts +2 -27
- package/src/ngtsc/typecheck/src/oob.d.ts +3 -3
- package/src/ngtsc/typecheck/src/reference_emit_environment.d.ts +50 -0
- package/src/ngtsc/typecheck/src/tcb_util.d.ts +7 -8
- package/src/ngtsc/typecheck/src/type_constructor.d.ts +3 -3
- package/bundles/chunk-3O3O4L34.js +0 -12
- package/bundles/chunk-3O3O4L34.js.map +0 -6
- package/bundles/chunk-5ASJ74IM.js.map +0 -6
- package/bundles/chunk-DV5CKGO6.js.map +0 -6
- package/bundles/chunk-EVIA54WP.js.map +0 -6
- package/bundles/chunk-LJKJD6DP.js.map +0 -6
- package/bundles/chunk-XI2N3MV4.js.map +0 -6
- /package/bundles/{chunk-ZH5AJH3B.js.map → chunk-BLWWEEEL.js.map} +0 -0
- /package/bundles/{chunk-I3M5LXMW.js.map → chunk-QPMYDNZG.js.map} +0 -0
- /package/bundles/{chunk-JOIB3454.js.map → chunk-R4KQI5XI.js.map} +0 -0
- /package/bundles/{chunk-CF2CT7RQ.js.map → chunk-SBDNBITT.js.map} +0 -0
- /package/bundles/{chunk-WMUBJYYX.js.map → chunk-WCD6LVCP.js.map} +0 -0
- /package/bundles/{chunk-5JRMFWYO.js.map → chunk-YGXKICXB.js.map} +0 -0
|
@@ -36,17 +36,18 @@ import {
|
|
|
36
36
|
aliasTransformFactory,
|
|
37
37
|
declarationTransformFactory,
|
|
38
38
|
ivyTransformFactory
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-U4EFDEE4.js";
|
|
40
40
|
import {
|
|
41
41
|
ImportManager,
|
|
42
42
|
TypeEmitter,
|
|
43
43
|
canEmitType,
|
|
44
44
|
translateExpression,
|
|
45
45
|
translateType
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-MFE4YVWE.js";
|
|
47
47
|
import {
|
|
48
48
|
AbsoluteModuleStrategy,
|
|
49
49
|
AliasStrategy,
|
|
50
|
+
AmbientImport,
|
|
50
51
|
COMPILER_ERRORS_WITH_GUIDES,
|
|
51
52
|
DefaultImportTracker,
|
|
52
53
|
DeferredSymbolTracker,
|
|
@@ -85,14 +86,14 @@ import {
|
|
|
85
86
|
relativePathBetween,
|
|
86
87
|
replaceTsWithNgInErrors,
|
|
87
88
|
toUnredirectedSourceFile
|
|
88
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-EFMKZSXJ.js";
|
|
89
90
|
import {
|
|
90
91
|
ActivePerfRecorder,
|
|
91
92
|
DelegatingPerfRecorder,
|
|
92
93
|
PerfCheckpoint,
|
|
93
94
|
PerfEvent,
|
|
94
95
|
PerfPhase
|
|
95
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-R4KQI5XI.js";
|
|
96
97
|
import {
|
|
97
98
|
LogicalFileSystem,
|
|
98
99
|
absoluteFrom,
|
|
@@ -102,9 +103,9 @@ import {
|
|
|
102
103
|
getSourceFileOrError,
|
|
103
104
|
join,
|
|
104
105
|
resolve
|
|
105
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-QPMYDNZG.js";
|
|
106
107
|
|
|
107
|
-
// bazel-out/
|
|
108
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
108
109
|
var DEFAULT_ERROR_CODE = 100;
|
|
109
110
|
var UNKNOWN_ERROR_CODE = 500;
|
|
110
111
|
var SOURCE = "angular";
|
|
@@ -122,7 +123,7 @@ var EmitFlags;
|
|
|
122
123
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
123
124
|
})(EmitFlags || (EmitFlags = {}));
|
|
124
125
|
|
|
125
|
-
// bazel-out/
|
|
126
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
126
127
|
import ts from "typescript";
|
|
127
128
|
var wrapHostForTest = null;
|
|
128
129
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -132,7 +133,7 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
132
133
|
return tsHost;
|
|
133
134
|
}
|
|
134
135
|
|
|
135
|
-
// bazel-out/
|
|
136
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
|
|
136
137
|
var EntryType;
|
|
137
138
|
(function(EntryType2) {
|
|
138
139
|
EntryType2["Block"] = "block";
|
|
@@ -175,11 +176,11 @@ var MemberTags;
|
|
|
175
176
|
MemberTags2["Inherited"] = "override";
|
|
176
177
|
})(MemberTags || (MemberTags = {}));
|
|
177
178
|
|
|
178
|
-
// bazel-out/
|
|
179
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
179
180
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
180
181
|
import ts37 from "typescript";
|
|
181
182
|
|
|
182
|
-
// bazel-out/
|
|
183
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
183
184
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
184
185
|
import * as path from "path";
|
|
185
186
|
function i18nGetExtension(formatName) {
|
|
@@ -230,10 +231,10 @@ function getPathNormalizer(basePath) {
|
|
|
230
231
|
};
|
|
231
232
|
}
|
|
232
233
|
|
|
233
|
-
// bazel-out/
|
|
234
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
234
235
|
import ts2 from "typescript";
|
|
235
236
|
|
|
236
|
-
// bazel-out/
|
|
237
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
237
238
|
function toNumbers(value) {
|
|
238
239
|
const suffixIndex = value.lastIndexOf("-");
|
|
239
240
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -268,7 +269,7 @@ function compareVersions(v1, v2) {
|
|
|
268
269
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
269
270
|
}
|
|
270
271
|
|
|
271
|
-
// bazel-out/
|
|
272
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
272
273
|
var MIN_TS_VERSION = "5.2.0";
|
|
273
274
|
var MAX_TS_VERSION = "5.4.0";
|
|
274
275
|
var tsVersion = ts2.version;
|
|
@@ -281,10 +282,10 @@ function verifySupportedTypeScriptVersion() {
|
|
|
281
282
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
282
283
|
}
|
|
283
284
|
|
|
284
|
-
// bazel-out/
|
|
285
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
285
286
|
import ts35 from "typescript";
|
|
286
287
|
|
|
287
|
-
// bazel-out/
|
|
288
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
288
289
|
var CycleAnalyzer = class {
|
|
289
290
|
constructor(importGraph) {
|
|
290
291
|
this.importGraph = importGraph;
|
|
@@ -355,7 +356,7 @@ var Cycle = class {
|
|
|
355
356
|
}
|
|
356
357
|
};
|
|
357
358
|
|
|
358
|
-
// bazel-out/
|
|
359
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
359
360
|
import ts3 from "typescript";
|
|
360
361
|
var ImportGraph = class {
|
|
361
362
|
constructor(checker, perf) {
|
|
@@ -447,23 +448,23 @@ var Found = class {
|
|
|
447
448
|
}
|
|
448
449
|
};
|
|
449
450
|
|
|
450
|
-
// bazel-out/
|
|
451
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
451
452
|
import ts9 from "typescript";
|
|
452
453
|
|
|
453
|
-
// bazel-out/
|
|
454
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
454
455
|
import ts6 from "typescript";
|
|
455
456
|
|
|
456
|
-
// bazel-out/
|
|
457
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
|
|
457
458
|
function isAngularPrivateName(name) {
|
|
458
459
|
var _a;
|
|
459
460
|
const firstChar = (_a = name[0]) != null ? _a : "";
|
|
460
461
|
return firstChar === "\u0275" || firstChar === "_";
|
|
461
462
|
}
|
|
462
463
|
|
|
463
|
-
// bazel-out/
|
|
464
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
464
465
|
import ts5 from "typescript";
|
|
465
466
|
|
|
466
|
-
// bazel-out/
|
|
467
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
|
|
467
468
|
function extractGenerics(declaration) {
|
|
468
469
|
var _a, _b;
|
|
469
470
|
return (_b = (_a = declaration.typeParameters) == null ? void 0 : _a.map((typeParam) => {
|
|
@@ -476,7 +477,7 @@ function extractGenerics(declaration) {
|
|
|
476
477
|
})) != null ? _b : [];
|
|
477
478
|
}
|
|
478
479
|
|
|
479
|
-
// bazel-out/
|
|
480
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
|
|
480
481
|
import ts4 from "typescript";
|
|
481
482
|
var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf))/g;
|
|
482
483
|
function extractJsDocTags(node) {
|
|
@@ -520,12 +521,12 @@ function unescapeAngularDecorators(comment) {
|
|
|
520
521
|
return comment.replace(/_NG_AT_/g, "@");
|
|
521
522
|
}
|
|
522
523
|
|
|
523
|
-
// bazel-out/
|
|
524
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
|
|
524
525
|
function extractResolvedTypeString(node, checker) {
|
|
525
526
|
return checker.typeToString(checker.getTypeAtLocation(node));
|
|
526
527
|
}
|
|
527
528
|
|
|
528
|
-
// bazel-out/
|
|
529
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
529
530
|
var FunctionExtractor = class {
|
|
530
531
|
constructor(declaration, typeChecker) {
|
|
531
532
|
this.declaration = declaration;
|
|
@@ -579,7 +580,7 @@ var FunctionExtractor = class {
|
|
|
579
580
|
}
|
|
580
581
|
};
|
|
581
582
|
|
|
582
|
-
// bazel-out/
|
|
583
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
583
584
|
var ClassExtractor = class {
|
|
584
585
|
constructor(declaration, typeChecker) {
|
|
585
586
|
this.declaration = declaration;
|
|
@@ -811,7 +812,7 @@ function extractInterface(declaration, typeChecker) {
|
|
|
811
812
|
return extractor.extract();
|
|
812
813
|
}
|
|
813
814
|
|
|
814
|
-
// bazel-out/
|
|
815
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
815
816
|
function extractConstant(declaration, typeChecker) {
|
|
816
817
|
const resolvedType = typeChecker.getBaseTypeOfLiteralType(typeChecker.getTypeAtLocation(declaration));
|
|
817
818
|
const variableStatement = declaration.parent.parent;
|
|
@@ -829,7 +830,7 @@ function isSyntheticAngularConstant(declaration) {
|
|
|
829
830
|
return declaration.name.getText() === "USED_FOR_NG_TYPE_CHECKING";
|
|
830
831
|
}
|
|
831
832
|
|
|
832
|
-
// bazel-out/
|
|
833
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
|
|
833
834
|
import ts7 from "typescript";
|
|
834
835
|
function extractorDecorator(declaration, typeChecker) {
|
|
835
836
|
const documentedNode = getDecoratorJsDocNode(declaration);
|
|
@@ -902,7 +903,7 @@ function getDecoratorJsDocNode(declaration) {
|
|
|
902
903
|
return callSignature;
|
|
903
904
|
}
|
|
904
905
|
|
|
905
|
-
// bazel-out/
|
|
906
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
906
907
|
import ts8 from "typescript";
|
|
907
908
|
function extractEnum(declaration, typeChecker) {
|
|
908
909
|
return {
|
|
@@ -933,7 +934,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
933
934
|
return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
|
|
934
935
|
}
|
|
935
936
|
|
|
936
|
-
// bazel-out/
|
|
937
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
937
938
|
function extractTypeAlias(declaration) {
|
|
938
939
|
return {
|
|
939
940
|
name: declaration.name.getText(),
|
|
@@ -945,7 +946,7 @@ function extractTypeAlias(declaration) {
|
|
|
945
946
|
};
|
|
946
947
|
}
|
|
947
948
|
|
|
948
|
-
// bazel-out/
|
|
949
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
949
950
|
var DocsExtractor = class {
|
|
950
951
|
constructor(typeChecker, metadataReader) {
|
|
951
952
|
this.typeChecker = typeChecker;
|
|
@@ -1007,7 +1008,7 @@ function isIgnoredInterface(node) {
|
|
|
1007
1008
|
return node.name.getText().endsWith("Decorator") || isDecoratorOptionsInterface(node);
|
|
1008
1009
|
}
|
|
1009
1010
|
|
|
1010
|
-
// bazel-out/
|
|
1011
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
1011
1012
|
import ts10 from "typescript";
|
|
1012
1013
|
var FlatIndexGenerator = class {
|
|
1013
1014
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -1032,7 +1033,7 @@ export * from '${relativeEntryPoint}';
|
|
|
1032
1033
|
}
|
|
1033
1034
|
};
|
|
1034
1035
|
|
|
1035
|
-
// bazel-out/
|
|
1036
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
1036
1037
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
1037
1038
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
1038
1039
|
let resolvedEntryPoint = null;
|
|
@@ -1048,7 +1049,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
1048
1049
|
return resolvedEntryPoint;
|
|
1049
1050
|
}
|
|
1050
1051
|
|
|
1051
|
-
// bazel-out/
|
|
1052
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
1052
1053
|
import ts11 from "typescript";
|
|
1053
1054
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
1054
1055
|
const diagnostics = [];
|
|
@@ -1128,7 +1129,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
1128
1129
|
}
|
|
1129
1130
|
}
|
|
1130
1131
|
|
|
1131
|
-
// bazel-out/
|
|
1132
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
1132
1133
|
var ReferenceGraph = class {
|
|
1133
1134
|
constructor() {
|
|
1134
1135
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -1182,7 +1183,7 @@ var ReferenceGraph = class {
|
|
|
1182
1183
|
}
|
|
1183
1184
|
};
|
|
1184
1185
|
|
|
1185
|
-
// bazel-out/
|
|
1186
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
1186
1187
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
1187
1188
|
var UpdateMode;
|
|
1188
1189
|
(function(UpdateMode2) {
|
|
@@ -1190,13 +1191,13 @@ var UpdateMode;
|
|
|
1190
1191
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
1191
1192
|
})(UpdateMode || (UpdateMode = {}));
|
|
1192
1193
|
|
|
1193
|
-
// bazel-out/
|
|
1194
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1194
1195
|
import ts13 from "typescript";
|
|
1195
1196
|
|
|
1196
|
-
// bazel-out/
|
|
1197
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
1197
1198
|
import ts12 from "typescript";
|
|
1198
1199
|
|
|
1199
|
-
// bazel-out/
|
|
1200
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
1200
1201
|
var NgExtension = Symbol("NgExtension");
|
|
1201
1202
|
function isExtended(sf) {
|
|
1202
1203
|
return sf[NgExtension] !== void 0;
|
|
@@ -1256,13 +1257,13 @@ function retagTsFile(sf) {
|
|
|
1256
1257
|
}
|
|
1257
1258
|
}
|
|
1258
1259
|
|
|
1259
|
-
// bazel-out/
|
|
1260
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
1260
1261
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
1261
1262
|
function makeShimFileName(fileName, suffix) {
|
|
1262
1263
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
1263
1264
|
}
|
|
1264
1265
|
|
|
1265
|
-
// bazel-out/
|
|
1266
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
1266
1267
|
var ShimAdapter = class {
|
|
1267
1268
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
1268
1269
|
this.delegate = delegate;
|
|
@@ -1357,7 +1358,7 @@ var ShimAdapter = class {
|
|
|
1357
1358
|
}
|
|
1358
1359
|
};
|
|
1359
1360
|
|
|
1360
|
-
// bazel-out/
|
|
1361
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
1361
1362
|
var ShimReferenceTagger = class {
|
|
1362
1363
|
constructor(shimExtensions) {
|
|
1363
1364
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -1391,7 +1392,7 @@ var ShimReferenceTagger = class {
|
|
|
1391
1392
|
}
|
|
1392
1393
|
};
|
|
1393
1394
|
|
|
1394
|
-
// bazel-out/
|
|
1395
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1395
1396
|
var DelegatingCompilerHost = class {
|
|
1396
1397
|
get jsDocParsingMode() {
|
|
1397
1398
|
return this.delegate.jsDocParsingMode;
|
|
@@ -1510,7 +1511,7 @@ var TsCreateProgramDriver = class {
|
|
|
1510
1511
|
}
|
|
1511
1512
|
};
|
|
1512
1513
|
|
|
1513
|
-
// bazel-out/
|
|
1514
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1514
1515
|
var FileDependencyGraph = class {
|
|
1515
1516
|
constructor() {
|
|
1516
1517
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1577,7 +1578,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1577
1578
|
return false;
|
|
1578
1579
|
}
|
|
1579
1580
|
|
|
1580
|
-
// bazel-out/
|
|
1581
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1581
1582
|
var IncrementalStateKind;
|
|
1582
1583
|
(function(IncrementalStateKind2) {
|
|
1583
1584
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1585,7 +1586,7 @@ var IncrementalStateKind;
|
|
|
1585
1586
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1586
1587
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1587
1588
|
|
|
1588
|
-
// bazel-out/
|
|
1589
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1589
1590
|
var PhaseKind;
|
|
1590
1591
|
(function(PhaseKind2) {
|
|
1591
1592
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1786,7 +1787,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1786
1787
|
}
|
|
1787
1788
|
}
|
|
1788
1789
|
|
|
1789
|
-
// bazel-out/
|
|
1790
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1790
1791
|
var TrackedIncrementalBuildStrategy = class {
|
|
1791
1792
|
constructor() {
|
|
1792
1793
|
this.state = null;
|
|
@@ -1822,7 +1823,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1822
1823
|
};
|
|
1823
1824
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1824
1825
|
|
|
1825
|
-
// bazel-out/
|
|
1826
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1826
1827
|
var IdentifierKind;
|
|
1827
1828
|
(function(IdentifierKind2) {
|
|
1828
1829
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1840,7 +1841,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1840
1841
|
}
|
|
1841
1842
|
};
|
|
1842
1843
|
|
|
1843
|
-
// bazel-out/
|
|
1844
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1844
1845
|
var IndexingContext = class {
|
|
1845
1846
|
constructor() {
|
|
1846
1847
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1850,10 +1851,10 @@ var IndexingContext = class {
|
|
|
1850
1851
|
}
|
|
1851
1852
|
};
|
|
1852
1853
|
|
|
1853
|
-
// bazel-out/
|
|
1854
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1854
1855
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1855
1856
|
|
|
1856
|
-
// bazel-out/
|
|
1857
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1857
1858
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1858
1859
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1859
1860
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -2135,7 +2136,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2135
2136
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2136
2137
|
}
|
|
2137
2138
|
|
|
2138
|
-
// bazel-out/
|
|
2139
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2139
2140
|
function generateAnalysis(context) {
|
|
2140
2141
|
const analysis = /* @__PURE__ */ new Map();
|
|
2141
2142
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2171,7 +2172,7 @@ function generateAnalysis(context) {
|
|
|
2171
2172
|
return analysis;
|
|
2172
2173
|
}
|
|
2173
2174
|
|
|
2174
|
-
// bazel-out/
|
|
2175
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2175
2176
|
var NgModuleIndexImpl = class {
|
|
2176
2177
|
constructor(metaReader, localReader) {
|
|
2177
2178
|
this.metaReader = metaReader;
|
|
@@ -2260,7 +2261,7 @@ var NgModuleIndexImpl = class {
|
|
|
2260
2261
|
}
|
|
2261
2262
|
};
|
|
2262
2263
|
|
|
2263
|
-
// bazel-out/
|
|
2264
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2264
2265
|
import ts14 from "typescript";
|
|
2265
2266
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2266
2267
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -2406,7 +2407,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2406
2407
|
};
|
|
2407
2408
|
}
|
|
2408
2409
|
|
|
2409
|
-
// bazel-out/
|
|
2410
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2410
2411
|
var StandaloneComponentScopeReader = class {
|
|
2411
2412
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
2412
2413
|
this.metaReader = metaReader;
|
|
@@ -2484,10 +2485,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2484
2485
|
}
|
|
2485
2486
|
};
|
|
2486
2487
|
|
|
2487
|
-
// bazel-out/
|
|
2488
|
-
import { CssSelector as CssSelector2, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr } from "@angular/compiler";
|
|
2488
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
2489
|
+
import { CssSelector as CssSelector2, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
2489
2490
|
|
|
2490
|
-
// bazel-out/
|
|
2491
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
2491
2492
|
import ts15 from "typescript";
|
|
2492
2493
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
2493
2494
|
var _a;
|
|
@@ -2594,7 +2595,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
2594
2595
|
return ts15.createSourceFile(fileName, template, ts15.ScriptTarget.Latest, false, ts15.ScriptKind.JSX);
|
|
2595
2596
|
}
|
|
2596
2597
|
|
|
2597
|
-
// bazel-out/
|
|
2598
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
2598
2599
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
2599
2600
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
2600
2601
|
function getTemplateId(clazz) {
|
|
@@ -2611,11 +2612,11 @@ function allocateTemplateId(sf) {
|
|
|
2611
2612
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
2612
2613
|
}
|
|
2613
2614
|
|
|
2614
|
-
// bazel-out/
|
|
2615
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2615
2616
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2616
2617
|
import ts17 from "typescript";
|
|
2617
2618
|
|
|
2618
|
-
// bazel-out/
|
|
2619
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
2619
2620
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
2620
2621
|
import ts16 from "typescript";
|
|
2621
2622
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -2745,7 +2746,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
2745
2746
|
}) || false;
|
|
2746
2747
|
}
|
|
2747
2748
|
|
|
2748
|
-
// bazel-out/
|
|
2749
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2749
2750
|
var CompletionEngine = class {
|
|
2750
2751
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
2751
2752
|
this.tcb = tcb;
|
|
@@ -2902,10 +2903,10 @@ var CompletionEngine = class {
|
|
|
2902
2903
|
}
|
|
2903
2904
|
};
|
|
2904
2905
|
|
|
2905
|
-
// bazel-out/
|
|
2906
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
2906
2907
|
import ts30 from "typescript";
|
|
2907
2908
|
|
|
2908
|
-
// bazel-out/
|
|
2909
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
2909
2910
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
2910
2911
|
import ts18 from "typescript";
|
|
2911
2912
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -2958,11 +2959,41 @@ var RegistryDomSchemaChecker = class {
|
|
|
2958
2959
|
}
|
|
2959
2960
|
};
|
|
2960
2961
|
|
|
2961
|
-
// bazel-out/
|
|
2962
|
-
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2962
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2963
2963
|
import ts23 from "typescript";
|
|
2964
2964
|
|
|
2965
|
-
// bazel-out/
|
|
2965
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
|
|
2966
|
+
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2967
|
+
var ReferenceEmitEnvironment = class {
|
|
2968
|
+
constructor(importManager, refEmitter, reflector, contextFile) {
|
|
2969
|
+
this.importManager = importManager;
|
|
2970
|
+
this.refEmitter = refEmitter;
|
|
2971
|
+
this.reflector = reflector;
|
|
2972
|
+
this.contextFile = contextFile;
|
|
2973
|
+
}
|
|
2974
|
+
canReferenceType(ref, flags = ImportFlags.NoAliasing | ImportFlags.AllowTypeImports | ImportFlags.AllowRelativeDtsImports) {
|
|
2975
|
+
const result = this.refEmitter.emit(ref, this.contextFile, flags);
|
|
2976
|
+
return result.kind === 0;
|
|
2977
|
+
}
|
|
2978
|
+
referenceType(ref, flags = ImportFlags.NoAliasing | ImportFlags.AllowTypeImports | ImportFlags.AllowRelativeDtsImports) {
|
|
2979
|
+
const ngExpr = this.refEmitter.emit(ref, this.contextFile, flags);
|
|
2980
|
+
assertSuccessfulReferenceEmit(ngExpr, this.contextFile, "symbol");
|
|
2981
|
+
return translateType(new ExpressionType(ngExpr.expression), this.contextFile, this.reflector, this.refEmitter, this.importManager);
|
|
2982
|
+
}
|
|
2983
|
+
referenceExternalSymbol(moduleName, name) {
|
|
2984
|
+
const external = new ExternalExpr({ moduleName, name });
|
|
2985
|
+
return translateExpression(external, this.importManager);
|
|
2986
|
+
}
|
|
2987
|
+
referenceExternalType(moduleName, name, typeParams) {
|
|
2988
|
+
const external = new ExternalExpr({ moduleName, name });
|
|
2989
|
+
return translateType(new ExpressionType(external, TypeModifier.None, typeParams), this.contextFile, this.reflector, this.refEmitter, this.importManager);
|
|
2990
|
+
}
|
|
2991
|
+
referenceTransplantedType(type) {
|
|
2992
|
+
return translateType(type, this.contextFile, this.reflector, this.refEmitter, this.importManager);
|
|
2993
|
+
}
|
|
2994
|
+
};
|
|
2995
|
+
|
|
2996
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
2966
2997
|
import ts19 from "typescript";
|
|
2967
2998
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
2968
2999
|
ts19.SyntaxKind.ParenthesizedExpression,
|
|
@@ -3047,13 +3078,15 @@ function tsNumericExpression(value) {
|
|
|
3047
3078
|
return ts19.factory.createNumericLiteral(value);
|
|
3048
3079
|
}
|
|
3049
3080
|
|
|
3050
|
-
// bazel-out/
|
|
3081
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
3082
|
+
import { ExpressionType as ExpressionType2, R3Identifiers as R3Identifiers2, WrappedNodeExpr } from "@angular/compiler";
|
|
3051
3083
|
import ts22 from "typescript";
|
|
3052
3084
|
|
|
3053
|
-
// bazel-out/
|
|
3085
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
3086
|
+
import { R3Identifiers } from "@angular/compiler";
|
|
3054
3087
|
import ts21 from "typescript";
|
|
3055
3088
|
|
|
3056
|
-
// bazel-out/
|
|
3089
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
3057
3090
|
import ts20 from "typescript";
|
|
3058
3091
|
var TypeParameterEmitter = class {
|
|
3059
3092
|
constructor(typeParameters, reflector) {
|
|
@@ -3104,13 +3137,13 @@ var TypeParameterEmitter = class {
|
|
|
3104
3137
|
return type;
|
|
3105
3138
|
}
|
|
3106
3139
|
let owningModule = null;
|
|
3107
|
-
if (declaration.viaModule
|
|
3140
|
+
if (typeof declaration.viaModule === "string") {
|
|
3108
3141
|
owningModule = {
|
|
3109
3142
|
specifier: declaration.viaModule,
|
|
3110
3143
|
resolutionContext: type.getSourceFile().fileName
|
|
3111
3144
|
};
|
|
3112
3145
|
}
|
|
3113
|
-
return new Reference(declaration.node, owningModule);
|
|
3146
|
+
return new Reference(declaration.node, declaration.viaModule === AmbientImport ? AmbientImport : owningModule);
|
|
3114
3147
|
}
|
|
3115
3148
|
translateTypeReference(type, emitReference) {
|
|
3116
3149
|
const reference = this.resolveTypeReference(type);
|
|
@@ -3131,7 +3164,10 @@ var TypeParameterEmitter = class {
|
|
|
3131
3164
|
}
|
|
3132
3165
|
};
|
|
3133
3166
|
|
|
3134
|
-
// bazel-out/
|
|
3167
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
3168
|
+
var TCB_FILE_IMPORT_GRAPH_PREPARE_MODULES = [
|
|
3169
|
+
R3Identifiers.InputSignalBrandWriteType.moduleName
|
|
3170
|
+
];
|
|
3135
3171
|
var TcbInliningRequirement;
|
|
3136
3172
|
(function(TcbInliningRequirement2) {
|
|
3137
3173
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -3206,16 +3242,21 @@ function getTemplateId2(node, sourceFile, isDiagnosticRequest) {
|
|
|
3206
3242
|
return commentText;
|
|
3207
3243
|
}) || null;
|
|
3208
3244
|
}
|
|
3245
|
+
function ensureTypeCheckFilePreparationImports(env) {
|
|
3246
|
+
for (const moduleName of TCB_FILE_IMPORT_GRAPH_PREPARE_MODULES) {
|
|
3247
|
+
env.importManager.generateNamespaceImport(moduleName);
|
|
3248
|
+
}
|
|
3249
|
+
}
|
|
3209
3250
|
function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
3210
3251
|
const emitter = new TypeParameterEmitter(node.typeParameters, reflector);
|
|
3211
3252
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
3212
3253
|
}
|
|
3213
3254
|
|
|
3214
|
-
// bazel-out/
|
|
3215
|
-
function generateTypeCtorDeclarationFn(
|
|
3255
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
3256
|
+
function generateTypeCtorDeclarationFn(env, meta, nodeTypeRef, typeParams) {
|
|
3216
3257
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
3217
3258
|
const rawType = ts22.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
3218
|
-
const initParam = constructTypeCtorParameter(
|
|
3259
|
+
const initParam = constructTypeCtorParameter(env, meta, rawType);
|
|
3219
3260
|
const typeParameters = typeParametersWithDefaultTypes(typeParams);
|
|
3220
3261
|
if (meta.body) {
|
|
3221
3262
|
const fnType = ts22.factory.createFunctionTypeNode(
|
|
@@ -3246,10 +3287,10 @@ function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
|
3246
3287
|
);
|
|
3247
3288
|
}
|
|
3248
3289
|
}
|
|
3249
|
-
function generateInlineTypeCtor(node, meta) {
|
|
3290
|
+
function generateInlineTypeCtor(env, node, meta) {
|
|
3250
3291
|
const rawTypeArgs = node.typeParameters !== void 0 ? generateGenericArgs(node.typeParameters) : void 0;
|
|
3251
3292
|
const rawType = ts22.factory.createTypeReferenceNode(node.name, rawTypeArgs);
|
|
3252
|
-
const initParam = constructTypeCtorParameter(
|
|
3293
|
+
const initParam = constructTypeCtorParameter(env, meta, rawType);
|
|
3253
3294
|
let body = void 0;
|
|
3254
3295
|
if (meta.body) {
|
|
3255
3296
|
body = ts22.factory.createBlock([
|
|
@@ -3267,19 +3308,23 @@ function generateInlineTypeCtor(node, meta) {
|
|
|
3267
3308
|
body
|
|
3268
3309
|
);
|
|
3269
3310
|
}
|
|
3270
|
-
function constructTypeCtorParameter(
|
|
3311
|
+
function constructTypeCtorParameter(env, meta, rawType) {
|
|
3271
3312
|
let initType = null;
|
|
3272
3313
|
const plainKeys = [];
|
|
3273
3314
|
const coercedKeys = [];
|
|
3274
|
-
|
|
3275
|
-
|
|
3315
|
+
const signalInputKeys = [];
|
|
3316
|
+
for (const { classPropertyName, transform, isSignal } of meta.fields.inputs) {
|
|
3317
|
+
if (isSignal) {
|
|
3318
|
+
signalInputKeys.push(ts22.factory.createLiteralTypeNode(ts22.factory.createStringLiteral(classPropertyName)));
|
|
3319
|
+
} else if (!meta.coercedInputFields.has(classPropertyName)) {
|
|
3276
3320
|
plainKeys.push(ts22.factory.createLiteralTypeNode(ts22.factory.createStringLiteral(classPropertyName)));
|
|
3277
3321
|
} else {
|
|
3322
|
+
const coercionType = transform != null ? transform.type.node : tsCreateTypeQueryForCoercedInput(rawType.typeName, classPropertyName);
|
|
3278
3323
|
coercedKeys.push(ts22.factory.createPropertySignature(
|
|
3279
3324
|
void 0,
|
|
3280
3325
|
classPropertyName,
|
|
3281
3326
|
void 0,
|
|
3282
|
-
|
|
3327
|
+
coercionType
|
|
3283
3328
|
));
|
|
3284
3329
|
}
|
|
3285
3330
|
}
|
|
@@ -3291,6 +3336,14 @@ function constructTypeCtorParameter(node, meta, rawType) {
|
|
|
3291
3336
|
const coercedLiteral = ts22.factory.createTypeLiteralNode(coercedKeys);
|
|
3292
3337
|
initType = initType !== null ? ts22.factory.createIntersectionTypeNode([initType, coercedLiteral]) : coercedLiteral;
|
|
3293
3338
|
}
|
|
3339
|
+
if (signalInputKeys.length > 0) {
|
|
3340
|
+
const keyTypeUnion = ts22.factory.createUnionTypeNode(signalInputKeys);
|
|
3341
|
+
const unwrapDirectiveSignalInputsExpr = env.referenceExternalType(R3Identifiers2.UnwrapDirectiveSignalInputs.moduleName, R3Identifiers2.UnwrapDirectiveSignalInputs.name, [
|
|
3342
|
+
new ExpressionType2(new WrappedNodeExpr(rawType)),
|
|
3343
|
+
new ExpressionType2(new WrappedNodeExpr(keyTypeUnion))
|
|
3344
|
+
]);
|
|
3345
|
+
initType = initType !== null ? ts22.factory.createIntersectionTypeNode([initType, unwrapDirectiveSignalInputsExpr]) : unwrapDirectiveSignalInputsExpr;
|
|
3346
|
+
}
|
|
3294
3347
|
if (initType === null) {
|
|
3295
3348
|
initType = ts22.factory.createTypeLiteralNode([]);
|
|
3296
3349
|
}
|
|
@@ -3322,14 +3375,11 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
3322
3375
|
});
|
|
3323
3376
|
}
|
|
3324
3377
|
|
|
3325
|
-
// bazel-out/
|
|
3326
|
-
var Environment = class {
|
|
3378
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
3379
|
+
var Environment = class extends ReferenceEmitEnvironment {
|
|
3327
3380
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
3381
|
+
super(importManager, refEmitter, reflector, contextFile);
|
|
3328
3382
|
this.config = config;
|
|
3329
|
-
this.importManager = importManager;
|
|
3330
|
-
this.refEmitter = refEmitter;
|
|
3331
|
-
this.reflector = reflector;
|
|
3332
|
-
this.contextFile = contextFile;
|
|
3333
3383
|
this.nextIds = {
|
|
3334
3384
|
pipeInst: 1,
|
|
3335
3385
|
typeCtor: 1
|
|
@@ -3366,7 +3416,7 @@ var Environment = class {
|
|
|
3366
3416
|
coercedInputFields: dir.coercedInputFields
|
|
3367
3417
|
};
|
|
3368
3418
|
const typeParams = this.emitTypeParameters(node);
|
|
3369
|
-
const typeCtor = generateTypeCtorDeclarationFn(
|
|
3419
|
+
const typeCtor = generateTypeCtorDeclarationFn(this, meta, nodeTypeRef.typeName, typeParams);
|
|
3370
3420
|
this.typeCtorStatements.push(typeCtor);
|
|
3371
3421
|
const fnId = ts23.factory.createIdentifier(fnName);
|
|
3372
3422
|
this.typeCtors.set(node, fnId);
|
|
@@ -3388,26 +3438,10 @@ var Environment = class {
|
|
|
3388
3438
|
assertSuccessfulReferenceEmit(ngExpr, this.contextFile, "class");
|
|
3389
3439
|
return translateExpression(ngExpr.expression, this.importManager);
|
|
3390
3440
|
}
|
|
3391
|
-
canReferenceType(ref) {
|
|
3392
|
-
const result = this.refEmitter.emit(ref, this.contextFile, ImportFlags.NoAliasing | ImportFlags.AllowTypeImports | ImportFlags.AllowRelativeDtsImports);
|
|
3393
|
-
return result.kind === 0;
|
|
3394
|
-
}
|
|
3395
|
-
referenceType(ref) {
|
|
3396
|
-
const ngExpr = this.refEmitter.emit(ref, this.contextFile, ImportFlags.NoAliasing | ImportFlags.AllowTypeImports | ImportFlags.AllowRelativeDtsImports);
|
|
3397
|
-
assertSuccessfulReferenceEmit(ngExpr, this.contextFile, "symbol");
|
|
3398
|
-
return translateType(new ExpressionType(ngExpr.expression), this.contextFile, this.reflector, this.refEmitter, this.importManager);
|
|
3399
|
-
}
|
|
3400
3441
|
emitTypeParameters(declaration) {
|
|
3401
3442
|
const emitter = new TypeParameterEmitter(declaration.typeParameters, this.reflector);
|
|
3402
3443
|
return emitter.emit((ref) => this.referenceType(ref));
|
|
3403
3444
|
}
|
|
3404
|
-
referenceExternalType(moduleName, name, typeParams) {
|
|
3405
|
-
const external = new ExternalExpr({ moduleName, name });
|
|
3406
|
-
return translateType(new ExpressionType(external, TypeModifier.None, typeParams), this.contextFile, this.reflector, this.refEmitter, this.importManager);
|
|
3407
|
-
}
|
|
3408
|
-
referenceTransplantedType(type) {
|
|
3409
|
-
return translateType(type, this.contextFile, this.reflector, this.refEmitter, this.importManager);
|
|
3410
|
-
}
|
|
3411
3445
|
getPreludeStatements() {
|
|
3412
3446
|
return [
|
|
3413
3447
|
...this.pipeInstStatements,
|
|
@@ -3416,8 +3450,8 @@ var Environment = class {
|
|
|
3416
3450
|
}
|
|
3417
3451
|
};
|
|
3418
3452
|
|
|
3419
|
-
// bazel-out/
|
|
3420
|
-
import { TmplAstElement as TmplAstElement2,
|
|
3453
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
3454
|
+
import { TmplAstElement as TmplAstElement2, TmplAstForLoopBlock, TmplAstForLoopBlockEmpty } from "@angular/compiler";
|
|
3421
3455
|
import ts24 from "typescript";
|
|
3422
3456
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
3423
3457
|
constructor(resolver) {
|
|
@@ -3564,7 +3598,14 @@ Deferred blocks can only access triggers in same view, a parent embedded view or
|
|
|
3564
3598
|
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), trigger.sourceSpan, ts24.DiagnosticCategory.Error, ngErrorCode(ErrorCode.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT), message));
|
|
3565
3599
|
}
|
|
3566
3600
|
controlFlowPreventingContentProjection(templateId, category, projectionNode, componentName, slotSelector, controlFlowNode, preservesWhitespaces) {
|
|
3567
|
-
|
|
3601
|
+
let blockName;
|
|
3602
|
+
if (controlFlowNode instanceof TmplAstForLoopBlockEmpty) {
|
|
3603
|
+
blockName = "@empty";
|
|
3604
|
+
} else if (controlFlowNode instanceof TmplAstForLoopBlock) {
|
|
3605
|
+
blockName = "@for";
|
|
3606
|
+
} else {
|
|
3607
|
+
blockName = "@if";
|
|
3608
|
+
}
|
|
3568
3609
|
const lines = [
|
|
3569
3610
|
`Node matches the "${slotSelector}" slot of the "${componentName}" component, but will not be projected into the specific slot because the surrounding ${blockName} has more than one node at its root. To project the node in the right slot, you can:
|
|
3570
3611
|
`,
|
|
@@ -3587,7 +3628,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
3587
3628
|
};
|
|
3588
3629
|
}
|
|
3589
3630
|
|
|
3590
|
-
// bazel-out/
|
|
3631
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
3591
3632
|
import ts25 from "typescript";
|
|
3592
3633
|
var TypeCheckShimGenerator = class {
|
|
3593
3634
|
constructor() {
|
|
@@ -3605,11 +3646,11 @@ var TypeCheckShimGenerator = class {
|
|
|
3605
3646
|
}
|
|
3606
3647
|
};
|
|
3607
3648
|
|
|
3608
|
-
// bazel-out/
|
|
3609
|
-
import { BindingPipe, Call as Call2, createCssSelectorFromNode, CssSelector, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, SafeCall, SafePropertyRead as SafePropertyRead3, SelectorMatcher, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstDeferredBlock, TmplAstElement as TmplAstElement3, TmplAstForLoopBlock, TmplAstIcu, TmplAstIfBlock, TmplAstIfBlockBranch
|
|
3649
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3650
|
+
import { BindingPipe, Call as Call2, createCssSelectorFromNode, CssSelector, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, R3Identifiers as R3Identifiers3, SafeCall, SafePropertyRead as SafePropertyRead3, SelectorMatcher, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstDeferredBlock, TmplAstElement as TmplAstElement3, TmplAstForLoopBlock as TmplAstForLoopBlock2, TmplAstIcu, TmplAstIfBlock, TmplAstIfBlockBranch, TmplAstReference as TmplAstReference3, TmplAstSwitchBlock, TmplAstTemplate as TmplAstTemplate2, TmplAstText, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable as TmplAstVariable2, TransplantedType } from "@angular/compiler";
|
|
3610
3651
|
import ts28 from "typescript";
|
|
3611
3652
|
|
|
3612
|
-
// bazel-out/
|
|
3653
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
3613
3654
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
3614
3655
|
import ts26 from "typescript";
|
|
3615
3656
|
function wrapForDiagnostics(expr) {
|
|
@@ -3655,7 +3696,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
3655
3696
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
3656
3697
|
}
|
|
3657
3698
|
|
|
3658
|
-
// bazel-out/
|
|
3699
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
3659
3700
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
3660
3701
|
import ts27 from "typescript";
|
|
3661
3702
|
var NULL_AS_ANY = ts27.factory.createAsExpression(ts27.factory.createNull(), ts27.factory.createKeywordTypeNode(ts27.SyntaxKind.AnyKeyword));
|
|
@@ -3988,7 +4029,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
3988
4029
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
3989
4030
|
})();
|
|
3990
4031
|
|
|
3991
|
-
// bazel-out/
|
|
4032
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
3992
4033
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
3993
4034
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
3994
4035
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -4012,7 +4053,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
4012
4053
|
}
|
|
4013
4054
|
};
|
|
4014
4055
|
|
|
4015
|
-
// bazel-out/
|
|
4056
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
4016
4057
|
var TcbGenericContextBehavior;
|
|
4017
4058
|
(function(TcbGenericContextBehavior2) {
|
|
4018
4059
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -4326,7 +4367,12 @@ var TcbDirectiveCtorOp = class extends TcbOp {
|
|
|
4326
4367
|
continue;
|
|
4327
4368
|
}
|
|
4328
4369
|
const expression = translateInput(attr.attribute, this.tcb, this.scope);
|
|
4329
|
-
genericInputs.set(fieldName, {
|
|
4370
|
+
genericInputs.set(fieldName, {
|
|
4371
|
+
type: "binding",
|
|
4372
|
+
field: fieldName,
|
|
4373
|
+
expression,
|
|
4374
|
+
sourceSpan: attr.attribute.sourceSpan
|
|
4375
|
+
});
|
|
4330
4376
|
}
|
|
4331
4377
|
}
|
|
4332
4378
|
for (const { classPropertyName } of this.dir.inputs) {
|
|
@@ -4361,7 +4407,7 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
4361
4407
|
for (const attr of boundAttrs) {
|
|
4362
4408
|
const expr = widenBinding(translateInput(attr.attribute, this.tcb, this.scope), this.tcb);
|
|
4363
4409
|
let assignment = wrapForDiagnostics(expr);
|
|
4364
|
-
for (const { fieldName, required, transformType } of attr.inputs) {
|
|
4410
|
+
for (const { fieldName, required, transformType, isSignal } of attr.inputs) {
|
|
4365
4411
|
let target;
|
|
4366
4412
|
if (required) {
|
|
4367
4413
|
seenRequiredInputs.add(fieldName);
|
|
@@ -4401,6 +4447,13 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
4401
4447
|
}
|
|
4402
4448
|
target = this.dir.stringLiteralInputFields.has(fieldName) ? ts28.factory.createElementAccessExpression(dirId, ts28.factory.createStringLiteral(fieldName)) : ts28.factory.createPropertyAccessExpression(dirId, ts28.factory.createIdentifier(fieldName));
|
|
4403
4449
|
}
|
|
4450
|
+
if (isSignal) {
|
|
4451
|
+
const inputSignalBrandWriteSymbol = this.tcb.env.referenceExternalSymbol(R3Identifiers3.InputSignalBrandWriteType.moduleName, R3Identifiers3.InputSignalBrandWriteType.name);
|
|
4452
|
+
if (!ts28.isIdentifier(inputSignalBrandWriteSymbol) && !ts28.isPropertyAccessExpression(inputSignalBrandWriteSymbol)) {
|
|
4453
|
+
throw new Error(`Expected identifier or property access for reference to ${R3Identifiers3.InputSignalBrandWriteType.name}`);
|
|
4454
|
+
}
|
|
4455
|
+
target = ts28.factory.createElementAccessExpression(target, inputSignalBrandWriteSymbol);
|
|
4456
|
+
}
|
|
4404
4457
|
if (attr.attribute.keySpan !== void 0) {
|
|
4405
4458
|
addParseSpanInfo(target, attr.attribute.keySpan);
|
|
4406
4459
|
}
|
|
@@ -4511,8 +4564,13 @@ var TcbControlFlowContentProjectionOp = class extends TcbOp {
|
|
|
4511
4564
|
const result = [];
|
|
4512
4565
|
for (const child of this.element.children) {
|
|
4513
4566
|
let eligibleNode = null;
|
|
4514
|
-
if (child instanceof
|
|
4515
|
-
|
|
4567
|
+
if (child instanceof TmplAstForLoopBlock2) {
|
|
4568
|
+
if (this.shouldCheck(child)) {
|
|
4569
|
+
result.push(child);
|
|
4570
|
+
}
|
|
4571
|
+
if (child.empty !== null && this.shouldCheck(child.empty)) {
|
|
4572
|
+
result.push(child.empty);
|
|
4573
|
+
}
|
|
4516
4574
|
} else if (child instanceof TmplAstIfBlock) {
|
|
4517
4575
|
eligibleNode = child.branches[0];
|
|
4518
4576
|
}
|
|
@@ -4531,6 +4589,18 @@ var TcbControlFlowContentProjectionOp = class extends TcbOp {
|
|
|
4531
4589
|
}
|
|
4532
4590
|
return result;
|
|
4533
4591
|
}
|
|
4592
|
+
shouldCheck(node) {
|
|
4593
|
+
if (node.children.length < 2) {
|
|
4594
|
+
return false;
|
|
4595
|
+
}
|
|
4596
|
+
const rootNodeCount = node.children.reduce((count, node2) => {
|
|
4597
|
+
if (!(node2 instanceof TmplAstText) || this.tcb.hostPreserveWhitespaces || node2.value.trim().length > 0) {
|
|
4598
|
+
count++;
|
|
4599
|
+
}
|
|
4600
|
+
return count;
|
|
4601
|
+
}, 0);
|
|
4602
|
+
return rootNodeCount > 1;
|
|
4603
|
+
}
|
|
4534
4604
|
};
|
|
4535
4605
|
var ATTR_TO_PROP = new Map(Object.entries({
|
|
4536
4606
|
"class": "className",
|
|
@@ -4713,9 +4783,7 @@ var TcbBlockImplicitVariableOp = class extends TcbOp {
|
|
|
4713
4783
|
this.scope = scope;
|
|
4714
4784
|
this.type = type;
|
|
4715
4785
|
this.variable = variable;
|
|
4716
|
-
|
|
4717
|
-
get optional() {
|
|
4718
|
-
return false;
|
|
4786
|
+
this.optional = true;
|
|
4719
4787
|
}
|
|
4720
4788
|
execute() {
|
|
4721
4789
|
const id = this.tcb.allocateId();
|
|
@@ -4920,12 +4988,12 @@ var _Scope = class {
|
|
|
4920
4988
|
}
|
|
4921
4989
|
this.registerVariable(scope, v, new TcbTemplateVariableOp(tcb, scope, scopedNode, v));
|
|
4922
4990
|
}
|
|
4923
|
-
} else if (scopedNode instanceof
|
|
4991
|
+
} else if (scopedNode instanceof TmplAstIfBlockBranch) {
|
|
4924
4992
|
const { expression, expressionAlias } = scopedNode;
|
|
4925
4993
|
if (expression !== null && expressionAlias !== null) {
|
|
4926
4994
|
this.registerVariable(scope, expressionAlias, new TcbBlockVariableOp(tcb, scope, tcbExpression(expression, tcb, scope), expressionAlias));
|
|
4927
4995
|
}
|
|
4928
|
-
} else if (scopedNode instanceof
|
|
4996
|
+
} else if (scopedNode instanceof TmplAstForLoopBlock2) {
|
|
4929
4997
|
const loopInitializer = tcb.allocateId();
|
|
4930
4998
|
addParseSpanInfo(loopInitializer, scopedNode.item.sourceSpan);
|
|
4931
4999
|
scope.varMap.set(scopedNode.item, loopInitializer);
|
|
@@ -5058,7 +5126,7 @@ var _Scope = class {
|
|
|
5058
5126
|
this.opQueue.push(new TcbIfOp(this.tcb, this, node));
|
|
5059
5127
|
} else if (node instanceof TmplAstSwitchBlock) {
|
|
5060
5128
|
this.opQueue.push(new TcbExpressionOp(this.tcb, this, node.expression), new TcbSwitchOp(this.tcb, this, node));
|
|
5061
|
-
} else if (node instanceof
|
|
5129
|
+
} else if (node instanceof TmplAstForLoopBlock2) {
|
|
5062
5130
|
this.opQueue.push(new TcbForOfOp(this.tcb, this, node));
|
|
5063
5131
|
node.empty && this.appendChildren(node.empty);
|
|
5064
5132
|
} else if (node instanceof TmplAstBoundText) {
|
|
@@ -5360,7 +5428,8 @@ function getBoundAttributes(directive, node) {
|
|
|
5360
5428
|
return {
|
|
5361
5429
|
fieldName: input.classPropertyName,
|
|
5362
5430
|
required: input.required,
|
|
5363
|
-
transformType: ((_a = input.transform) == null ? void 0 : _a.type) || null
|
|
5431
|
+
transformType: ((_a = input.transform) == null ? void 0 : _a.type) || null,
|
|
5432
|
+
isSignal: input.isSignal
|
|
5364
5433
|
};
|
|
5365
5434
|
})
|
|
5366
5435
|
});
|
|
@@ -5475,7 +5544,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
5475
5544
|
}
|
|
5476
5545
|
};
|
|
5477
5546
|
|
|
5478
|
-
// bazel-out/
|
|
5547
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
5479
5548
|
import ts29 from "typescript";
|
|
5480
5549
|
var TypeCheckFile = class extends Environment {
|
|
5481
5550
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -5490,6 +5559,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
5490
5559
|
this.tcbStatements.push(fn);
|
|
5491
5560
|
}
|
|
5492
5561
|
render(removeComments) {
|
|
5562
|
+
ensureTypeCheckFilePreparationImports(this);
|
|
5493
5563
|
let source = this.importManager.getAllImports(this.contextFile.fileName).map((i) => `import * as ${i.qualifier.text} from '${i.specifier}';`).join("\n") + "\n\n";
|
|
5494
5564
|
const printer = ts29.createPrinter({ removeComments });
|
|
5495
5565
|
source += "\n";
|
|
@@ -5511,7 +5581,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
5511
5581
|
}
|
|
5512
5582
|
};
|
|
5513
5583
|
|
|
5514
|
-
// bazel-out/
|
|
5584
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
5515
5585
|
var InliningMode;
|
|
5516
5586
|
(function(InliningMode2) {
|
|
5517
5587
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -5607,7 +5677,7 @@ var TypeCheckContextImpl = class {
|
|
|
5607
5677
|
this.opMap.set(sf, []);
|
|
5608
5678
|
}
|
|
5609
5679
|
const ops = this.opMap.get(sf);
|
|
5610
|
-
ops.push(new TypeCtorOp(ref, ctorMeta));
|
|
5680
|
+
ops.push(new TypeCtorOp(ref, this.reflector, ctorMeta));
|
|
5611
5681
|
fileData.hasInlines = true;
|
|
5612
5682
|
}
|
|
5613
5683
|
transform(sf) {
|
|
@@ -5722,15 +5792,17 @@ var InlineTcbOp = class {
|
|
|
5722
5792
|
}
|
|
5723
5793
|
};
|
|
5724
5794
|
var TypeCtorOp = class {
|
|
5725
|
-
constructor(ref, meta) {
|
|
5795
|
+
constructor(ref, reflector, meta) {
|
|
5726
5796
|
this.ref = ref;
|
|
5797
|
+
this.reflector = reflector;
|
|
5727
5798
|
this.meta = meta;
|
|
5728
5799
|
}
|
|
5729
5800
|
get splitPoint() {
|
|
5730
5801
|
return this.ref.node.end - 1;
|
|
5731
5802
|
}
|
|
5732
5803
|
execute(im, sf, refEmitter, printer) {
|
|
5733
|
-
const
|
|
5804
|
+
const emitEnv = new ReferenceEmitEnvironment(im, refEmitter, this.reflector, sf);
|
|
5805
|
+
const tcb = generateInlineTypeCtor(emitEnv, this.ref.node, this.meta);
|
|
5734
5806
|
return printer.printNode(ts30.EmitHint.Unspecified, tcb, sf);
|
|
5735
5807
|
}
|
|
5736
5808
|
};
|
|
@@ -5749,10 +5821,10 @@ function splitStringAtPoints(str, points) {
|
|
|
5749
5821
|
return splits;
|
|
5750
5822
|
}
|
|
5751
5823
|
|
|
5752
|
-
// bazel-out/
|
|
5824
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
5753
5825
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
5754
5826
|
|
|
5755
|
-
// bazel-out/
|
|
5827
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
5756
5828
|
var LF_CHAR = 10;
|
|
5757
5829
|
var CR_CHAR = 13;
|
|
5758
5830
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -5793,7 +5865,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
5793
5865
|
return low - 1;
|
|
5794
5866
|
}
|
|
5795
5867
|
|
|
5796
|
-
// bazel-out/
|
|
5868
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
5797
5869
|
var TemplateSource = class {
|
|
5798
5870
|
constructor(mapping, file) {
|
|
5799
5871
|
this.mapping = mapping;
|
|
@@ -5844,7 +5916,7 @@ var TemplateSourceManager = class {
|
|
|
5844
5916
|
}
|
|
5845
5917
|
};
|
|
5846
5918
|
|
|
5847
|
-
// bazel-out/
|
|
5919
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
5848
5920
|
import { AST, ASTWithSource as ASTWithSource3, BindingPipe as BindingPipe2, PropertyRead as PropertyRead5, PropertyWrite as PropertyWrite4, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement4, TmplAstReference as TmplAstReference4, TmplAstTemplate as TmplAstTemplate3, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable3 } from "@angular/compiler";
|
|
5849
5921
|
import ts31 from "typescript";
|
|
5850
5922
|
var SymbolBuilder = class {
|
|
@@ -6328,7 +6400,7 @@ function sourceSpanEqual(a, b) {
|
|
|
6328
6400
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
6329
6401
|
}
|
|
6330
6402
|
|
|
6331
|
-
// bazel-out/
|
|
6403
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
6332
6404
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
6333
6405
|
var TemplateTypeCheckerImpl = class {
|
|
6334
6406
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -6825,7 +6897,7 @@ var TemplateTypeCheckerImpl = class {
|
|
|
6825
6897
|
return null;
|
|
6826
6898
|
}
|
|
6827
6899
|
const emitted = emittedRef.expression;
|
|
6828
|
-
if (emitted instanceof
|
|
6900
|
+
if (emitted instanceof WrappedNodeExpr2) {
|
|
6829
6901
|
if (refTo.node === inContext) {
|
|
6830
6902
|
return null;
|
|
6831
6903
|
}
|
|
@@ -7025,10 +7097,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
7025
7097
|
}
|
|
7026
7098
|
};
|
|
7027
7099
|
|
|
7028
|
-
// bazel-out/
|
|
7100
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
7029
7101
|
import { Interpolation, PropertyRead as PropertyRead6 } from "@angular/compiler";
|
|
7030
7102
|
|
|
7031
|
-
// bazel-out/
|
|
7103
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
7032
7104
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
7033
7105
|
var TemplateCheckWithVisitor = class {
|
|
7034
7106
|
run(ctx, component, template) {
|
|
@@ -7152,7 +7224,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
7152
7224
|
}
|
|
7153
7225
|
};
|
|
7154
7226
|
|
|
7155
|
-
// bazel-out/
|
|
7227
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
7156
7228
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
7157
7229
|
constructor() {
|
|
7158
7230
|
super(...arguments);
|
|
@@ -7187,7 +7259,7 @@ var factory = {
|
|
|
7187
7259
|
create: () => new InterpolatedSignalCheck()
|
|
7188
7260
|
};
|
|
7189
7261
|
|
|
7190
|
-
// bazel-out/
|
|
7262
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
7191
7263
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
7192
7264
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
7193
7265
|
constructor() {
|
|
@@ -7213,7 +7285,7 @@ var factory2 = {
|
|
|
7213
7285
|
create: () => new InvalidBananaInBoxCheck()
|
|
7214
7286
|
};
|
|
7215
7287
|
|
|
7216
|
-
// bazel-out/
|
|
7288
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
7217
7289
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
7218
7290
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
7219
7291
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -7258,7 +7330,7 @@ var factory3 = {
|
|
|
7258
7330
|
}
|
|
7259
7331
|
};
|
|
7260
7332
|
|
|
7261
|
-
// bazel-out/
|
|
7333
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
7262
7334
|
import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
|
|
7263
7335
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
7264
7336
|
constructor() {
|
|
@@ -7291,7 +7363,7 @@ var factory4 = {
|
|
|
7291
7363
|
create: () => new MissingNgForOfLetCheck()
|
|
7292
7364
|
};
|
|
7293
7365
|
|
|
7294
|
-
// bazel-out/
|
|
7366
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
7295
7367
|
import { Binary } from "@angular/compiler";
|
|
7296
7368
|
import ts32 from "typescript";
|
|
7297
7369
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7336,7 +7408,7 @@ var factory5 = {
|
|
|
7336
7408
|
}
|
|
7337
7409
|
};
|
|
7338
7410
|
|
|
7339
|
-
// bazel-out/
|
|
7411
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
7340
7412
|
import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
|
|
7341
7413
|
import ts33 from "typescript";
|
|
7342
7414
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7382,7 +7454,7 @@ var factory6 = {
|
|
|
7382
7454
|
}
|
|
7383
7455
|
};
|
|
7384
7456
|
|
|
7385
|
-
// bazel-out/
|
|
7457
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
7386
7458
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
7387
7459
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
7388
7460
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7406,7 +7478,7 @@ var factory7 = {
|
|
|
7406
7478
|
create: () => new SuffixNotSupportedCheck()
|
|
7407
7479
|
};
|
|
7408
7480
|
|
|
7409
|
-
// bazel-out/
|
|
7481
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
7410
7482
|
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
7411
7483
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
7412
7484
|
constructor() {
|
|
@@ -7445,10 +7517,10 @@ var factory8 = {
|
|
|
7445
7517
|
create: () => new TextAttributeNotBindingSpec()
|
|
7446
7518
|
};
|
|
7447
7519
|
|
|
7448
|
-
// bazel-out/
|
|
7520
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
7449
7521
|
import ts34 from "typescript";
|
|
7450
7522
|
|
|
7451
|
-
// bazel-out/
|
|
7523
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
7452
7524
|
var DiagnosticCategoryLabel;
|
|
7453
7525
|
(function(DiagnosticCategoryLabel2) {
|
|
7454
7526
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -7456,7 +7528,7 @@ var DiagnosticCategoryLabel;
|
|
|
7456
7528
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
7457
7529
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
7458
7530
|
|
|
7459
|
-
// bazel-out/
|
|
7531
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
7460
7532
|
var ExtendedTemplateCheckerImpl = class {
|
|
7461
7533
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
7462
7534
|
var _a, _b, _c, _d, _e;
|
|
@@ -7509,7 +7581,7 @@ function assertNever(value) {
|
|
|
7509
7581
|
${value}`);
|
|
7510
7582
|
}
|
|
7511
7583
|
|
|
7512
|
-
// bazel-out/
|
|
7584
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
7513
7585
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
7514
7586
|
factory2,
|
|
7515
7587
|
factory5,
|
|
@@ -7525,7 +7597,7 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
|
7525
7597
|
...ALL_DIAGNOSTIC_FACTORIES.map((factory9) => factory9.name)
|
|
7526
7598
|
]);
|
|
7527
7599
|
|
|
7528
|
-
// bazel-out/
|
|
7600
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
7529
7601
|
var CompilationTicketKind;
|
|
7530
7602
|
(function(CompilationTicketKind2) {
|
|
7531
7603
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -8290,7 +8362,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
8290
8362
|
return versions;
|
|
8291
8363
|
}
|
|
8292
8364
|
|
|
8293
|
-
// bazel-out/
|
|
8365
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
8294
8366
|
import ts36 from "typescript";
|
|
8295
8367
|
var DelegatingCompilerHost2 = class {
|
|
8296
8368
|
get jsDocParsingMode() {
|
|
@@ -8429,7 +8501,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
8429
8501
|
}
|
|
8430
8502
|
};
|
|
8431
8503
|
|
|
8432
|
-
// bazel-out/
|
|
8504
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
8433
8505
|
var NgtscProgram = class {
|
|
8434
8506
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
8435
8507
|
this.options = options;
|
|
@@ -8656,15 +8728,15 @@ function mergeEmitResults(emitResults) {
|
|
|
8656
8728
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
8657
8729
|
}
|
|
8658
8730
|
|
|
8659
|
-
// bazel-out/
|
|
8731
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
8660
8732
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
8661
8733
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
8662
8734
|
}
|
|
8663
8735
|
|
|
8664
|
-
// bazel-out/
|
|
8736
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
8665
8737
|
import ts39 from "typescript";
|
|
8666
8738
|
|
|
8667
|
-
// bazel-out/
|
|
8739
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
8668
8740
|
import ts38 from "typescript";
|
|
8669
8741
|
function createMessageDiagnostic(messageText) {
|
|
8670
8742
|
return {
|
|
@@ -8678,7 +8750,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
8678
8750
|
};
|
|
8679
8751
|
}
|
|
8680
8752
|
|
|
8681
|
-
// bazel-out/
|
|
8753
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
8682
8754
|
var defaultFormatHost = {
|
|
8683
8755
|
getCurrentDirectory: () => ts39.sys.getCurrentDirectory(),
|
|
8684
8756
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -8891,4 +8963,4 @@ export {
|
|
|
8891
8963
|
* Use of this source code is governed by an MIT-style license that can be
|
|
8892
8964
|
* found in the LICENSE file at https://angular.io/license
|
|
8893
8965
|
*/
|
|
8894
|
-
//# sourceMappingURL=chunk-
|
|
8966
|
+
//# sourceMappingURL=chunk-N5SJSJNW.js.map
|