@angular/compiler-cli 17.1.0-next.5 → 17.1.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-EFMKZSXJ.js → chunk-3WRR7A6G.js} +876 -34
- package/bundles/chunk-3WRR7A6G.js.map +6 -0
- package/bundles/{chunk-BLWWEEEL.js → chunk-5KZ4IU2X.js} +5 -5
- package/bundles/{chunk-SBDNBITT.js → chunk-CF2CT7RQ.js} +3 -3
- package/bundles/{chunk-U4EFDEE4.js → chunk-GM44CTB7.js} +497 -320
- package/bundles/chunk-GM44CTB7.js.map +6 -0
- package/bundles/{chunk-QPMYDNZG.js → chunk-I3M5LXMW.js} +7 -7
- package/bundles/{chunk-R4KQI5XI.js → chunk-JOIB3454.js} +5 -5
- package/bundles/{chunk-YGXKICXB.js → chunk-MLI2QFE3.js} +94 -11
- package/bundles/chunk-MLI2QFE3.js.map +6 -0
- package/bundles/{chunk-OZXTEOXW.js → chunk-P34DHQ65.js} +50 -30
- package/bundles/chunk-P34DHQ65.js.map +6 -0
- package/bundles/chunk-TGR3NXO6.js +62 -0
- package/bundles/chunk-TGR3NXO6.js.map +6 -0
- package/bundles/{chunk-WCD6LVCP.js → chunk-WMUBJYYX.js} +7 -7
- package/bundles/{chunk-N5SJSJNW.js → chunk-YFIBJR5K.js} +203 -149
- package/bundles/chunk-YFIBJR5K.js.map +6 -0
- package/bundles/index.js +14 -12
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +15 -13
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +4 -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 +8 -7
- package/bundles/private/tooling.js +7 -3
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/linker/babel/src/ast/babel_ast_host.d.ts +1 -0
- package/linker/src/ast/ast_host.d.ts +4 -0
- package/linker/src/ast/ast_value.d.ts +8 -1
- package/linker/src/ast/typescript/typescript_ast_host.d.ts +1 -0
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/private/tooling.d.ts +22 -6
- package/src/ngtsc/annotations/component/src/handler.d.ts +21 -1
- package/src/ngtsc/annotations/component/src/metadata.d.ts +7 -1
- package/src/ngtsc/annotations/component/src/util.d.ts +1 -1
- package/src/ngtsc/annotations/directive/index.d.ts +1 -0
- package/src/ngtsc/annotations/directive/src/handler.d.ts +1 -1
- package/src/ngtsc/annotations/directive/src/input_function.d.ts +4 -13
- package/src/ngtsc/annotations/directive/src/shared.d.ts +2 -2
- package/src/ngtsc/annotations/index.d.ts +2 -2
- package/src/ngtsc/annotations/src/injectable.d.ts +1 -1
- package/src/ngtsc/core/api/src/public_options.d.ts +10 -0
- package/src/ngtsc/diagnostics/src/error_code.d.ts +26 -0
- package/src/ngtsc/imports/src/deferred_symbol_tracker.d.ts +16 -2
- package/src/ngtsc/metadata/src/api.d.ts +11 -0
- package/src/ngtsc/scope/src/api.d.ts +1 -0
- package/src/ngtsc/scope/src/typecheck.d.ts +3 -3
- package/src/ngtsc/scope/src/util.d.ts +1 -0
- package/src/ngtsc/transform/index.d.ts +1 -0
- package/src/ngtsc/transform/src/api.d.ts +1 -1
- package/src/ngtsc/transform/src/utils.d.ts +1 -1
- package/src/ngtsc/translator/src/api/ast_factory.d.ts +1 -1
- package/src/ngtsc/translator/src/import_manager.d.ts +2 -1
- package/src/ngtsc/typecheck/api/api.d.ts +3 -2
- package/src/ngtsc/typecheck/api/context.d.ts +2 -1
- package/src/ngtsc/typecheck/src/context.d.ts +2 -1
- package/src/ngtsc/typecheck/src/oob.d.ts +20 -0
- package/src/ngtsc/typecheck/src/tcb_util.d.ts +1 -1
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +3 -2
- package/src/transformers/{downlevel_decorators_transform → jit_transforms}/index.d.ts +1 -0
- package/src/transformers/jit_transforms/signal_inputs_metadata_transform.d.ts +21 -0
- package/bundles/chunk-EFMKZSXJ.js.map +0 -6
- package/bundles/chunk-MFE4YVWE.js +0 -831
- package/bundles/chunk-MFE4YVWE.js.map +0 -6
- package/bundles/chunk-N5SJSJNW.js.map +0 -6
- package/bundles/chunk-OZXTEOXW.js.map +0 -6
- package/bundles/chunk-U4EFDEE4.js.map +0 -6
- package/bundles/chunk-YGXKICXB.js.map +0 -6
- /package/bundles/{chunk-BLWWEEEL.js.map → chunk-5KZ4IU2X.js.map} +0 -0
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-CF2CT7RQ.js.map} +0 -0
- /package/bundles/{chunk-QPMYDNZG.js.map → chunk-I3M5LXMW.js.map} +0 -0
- /package/bundles/{chunk-R4KQI5XI.js.map → chunk-JOIB3454.js.map} +0 -0
- /package/bundles/{chunk-WCD6LVCP.js.map → chunk-WMUBJYYX.js.map} +0 -0
- /package/src/transformers/{downlevel_decorators_transform → jit_transforms}/downlevel_decorators_transform.d.ts +0 -0
|
@@ -3,8 +3,14 @@
|
|
|
3
3
|
const require = __cjsCompatRequire(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
CompilationMode,
|
|
7
6
|
CompletionKind,
|
|
7
|
+
OptimizeFor,
|
|
8
|
+
PotentialImportKind,
|
|
9
|
+
PotentialImportMode,
|
|
10
|
+
SymbolKind
|
|
11
|
+
} from "./chunk-TGR3NXO6.js";
|
|
12
|
+
import {
|
|
13
|
+
CompilationMode,
|
|
8
14
|
ComponentDecoratorHandler,
|
|
9
15
|
ComponentScopeKind,
|
|
10
16
|
CompoundComponentScopeReader,
|
|
@@ -23,27 +29,16 @@ import {
|
|
|
23
29
|
MetadataDtsModuleScopeResolver,
|
|
24
30
|
NgModuleDecoratorHandler,
|
|
25
31
|
NoopReferencesRegistry,
|
|
26
|
-
OptimizeFor,
|
|
27
32
|
PartialEvaluator,
|
|
28
33
|
PipeDecoratorHandler,
|
|
29
|
-
PotentialImportKind,
|
|
30
|
-
PotentialImportMode,
|
|
31
34
|
ResourceRegistry,
|
|
32
35
|
SemanticDepGraphUpdater,
|
|
33
|
-
SymbolKind,
|
|
34
36
|
TraitCompiler,
|
|
35
37
|
TypeCheckScopeRegistry,
|
|
36
38
|
aliasTransformFactory,
|
|
37
39
|
declarationTransformFactory,
|
|
38
40
|
ivyTransformFactory
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import {
|
|
41
|
-
ImportManager,
|
|
42
|
-
TypeEmitter,
|
|
43
|
-
canEmitType,
|
|
44
|
-
translateExpression,
|
|
45
|
-
translateType
|
|
46
|
-
} from "./chunk-MFE4YVWE.js";
|
|
41
|
+
} from "./chunk-GM44CTB7.js";
|
|
47
42
|
import {
|
|
48
43
|
AbsoluteModuleStrategy,
|
|
49
44
|
AliasStrategy,
|
|
@@ -56,6 +51,7 @@ import {
|
|
|
56
51
|
ExtendedTemplateDiagnosticName,
|
|
57
52
|
FatalDiagnosticError,
|
|
58
53
|
ImportFlags,
|
|
54
|
+
ImportManager,
|
|
59
55
|
LocalIdentifierStrategy,
|
|
60
56
|
LogicalProjectStrategy,
|
|
61
57
|
ModuleResolver,
|
|
@@ -65,11 +61,13 @@ import {
|
|
|
65
61
|
Reference,
|
|
66
62
|
ReferenceEmitter,
|
|
67
63
|
RelativePathStrategy,
|
|
64
|
+
TypeEmitter,
|
|
68
65
|
TypeScriptReflectionHost,
|
|
69
66
|
UnifiedModulesAliasingHost,
|
|
70
67
|
UnifiedModulesStrategy,
|
|
71
68
|
addDiagnosticChain,
|
|
72
69
|
assertSuccessfulReferenceEmit,
|
|
70
|
+
canEmitType,
|
|
73
71
|
getRootDirs,
|
|
74
72
|
getSourceFileOrNull,
|
|
75
73
|
getTokenAtPosition,
|
|
@@ -85,15 +83,17 @@ import {
|
|
|
85
83
|
normalizeSeparators,
|
|
86
84
|
relativePathBetween,
|
|
87
85
|
replaceTsWithNgInErrors,
|
|
88
|
-
toUnredirectedSourceFile
|
|
89
|
-
|
|
86
|
+
toUnredirectedSourceFile,
|
|
87
|
+
translateExpression,
|
|
88
|
+
translateType
|
|
89
|
+
} from "./chunk-3WRR7A6G.js";
|
|
90
90
|
import {
|
|
91
91
|
ActivePerfRecorder,
|
|
92
92
|
DelegatingPerfRecorder,
|
|
93
93
|
PerfCheckpoint,
|
|
94
94
|
PerfEvent,
|
|
95
95
|
PerfPhase
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-JOIB3454.js";
|
|
97
97
|
import {
|
|
98
98
|
LogicalFileSystem,
|
|
99
99
|
absoluteFrom,
|
|
@@ -103,9 +103,9 @@ import {
|
|
|
103
103
|
getSourceFileOrError,
|
|
104
104
|
join,
|
|
105
105
|
resolve
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-I3M5LXMW.js";
|
|
107
107
|
|
|
108
|
-
// bazel-out/
|
|
108
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
109
109
|
var DEFAULT_ERROR_CODE = 100;
|
|
110
110
|
var UNKNOWN_ERROR_CODE = 500;
|
|
111
111
|
var SOURCE = "angular";
|
|
@@ -123,7 +123,7 @@ var EmitFlags;
|
|
|
123
123
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
124
124
|
})(EmitFlags || (EmitFlags = {}));
|
|
125
125
|
|
|
126
|
-
// bazel-out/
|
|
126
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
127
127
|
import ts from "typescript";
|
|
128
128
|
var wrapHostForTest = null;
|
|
129
129
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -133,7 +133,7 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
133
133
|
return tsHost;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
// bazel-out/
|
|
136
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
|
|
137
137
|
var EntryType;
|
|
138
138
|
(function(EntryType2) {
|
|
139
139
|
EntryType2["Block"] = "block";
|
|
@@ -176,11 +176,11 @@ var MemberTags;
|
|
|
176
176
|
MemberTags2["Inherited"] = "override";
|
|
177
177
|
})(MemberTags || (MemberTags = {}));
|
|
178
178
|
|
|
179
|
-
// bazel-out/
|
|
179
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
180
180
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
181
181
|
import ts37 from "typescript";
|
|
182
182
|
|
|
183
|
-
// bazel-out/
|
|
183
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
184
184
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
185
185
|
import * as path from "path";
|
|
186
186
|
function i18nGetExtension(formatName) {
|
|
@@ -231,10 +231,10 @@ function getPathNormalizer(basePath) {
|
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
// bazel-out/
|
|
234
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
235
235
|
import ts2 from "typescript";
|
|
236
236
|
|
|
237
|
-
// bazel-out/
|
|
237
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
238
238
|
function toNumbers(value) {
|
|
239
239
|
const suffixIndex = value.lastIndexOf("-");
|
|
240
240
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -269,7 +269,7 @@ function compareVersions(v1, v2) {
|
|
|
269
269
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
// bazel-out/
|
|
272
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
273
273
|
var MIN_TS_VERSION = "5.2.0";
|
|
274
274
|
var MAX_TS_VERSION = "5.4.0";
|
|
275
275
|
var tsVersion = ts2.version;
|
|
@@ -282,10 +282,10 @@ function verifySupportedTypeScriptVersion() {
|
|
|
282
282
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
// bazel-out/
|
|
285
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
286
286
|
import ts35 from "typescript";
|
|
287
287
|
|
|
288
|
-
// bazel-out/
|
|
288
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
289
289
|
var CycleAnalyzer = class {
|
|
290
290
|
constructor(importGraph) {
|
|
291
291
|
this.importGraph = importGraph;
|
|
@@ -356,7 +356,7 @@ var Cycle = class {
|
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
358
|
|
|
359
|
-
// bazel-out/
|
|
359
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
360
360
|
import ts3 from "typescript";
|
|
361
361
|
var ImportGraph = class {
|
|
362
362
|
constructor(checker, perf) {
|
|
@@ -448,23 +448,23 @@ var Found = class {
|
|
|
448
448
|
}
|
|
449
449
|
};
|
|
450
450
|
|
|
451
|
-
// bazel-out/
|
|
451
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
452
452
|
import ts9 from "typescript";
|
|
453
453
|
|
|
454
|
-
// bazel-out/
|
|
454
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
455
455
|
import ts6 from "typescript";
|
|
456
456
|
|
|
457
|
-
// bazel-out/
|
|
457
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
|
|
458
458
|
function isAngularPrivateName(name) {
|
|
459
459
|
var _a;
|
|
460
460
|
const firstChar = (_a = name[0]) != null ? _a : "";
|
|
461
461
|
return firstChar === "\u0275" || firstChar === "_";
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
-
// bazel-out/
|
|
464
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
465
465
|
import ts5 from "typescript";
|
|
466
466
|
|
|
467
|
-
// bazel-out/
|
|
467
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
|
|
468
468
|
function extractGenerics(declaration) {
|
|
469
469
|
var _a, _b;
|
|
470
470
|
return (_b = (_a = declaration.typeParameters) == null ? void 0 : _a.map((typeParam) => {
|
|
@@ -477,7 +477,7 @@ function extractGenerics(declaration) {
|
|
|
477
477
|
})) != null ? _b : [];
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
// bazel-out/
|
|
480
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
|
|
481
481
|
import ts4 from "typescript";
|
|
482
482
|
var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf))/g;
|
|
483
483
|
function extractJsDocTags(node) {
|
|
@@ -521,12 +521,12 @@ function unescapeAngularDecorators(comment) {
|
|
|
521
521
|
return comment.replace(/_NG_AT_/g, "@");
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
// bazel-out/
|
|
524
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
|
|
525
525
|
function extractResolvedTypeString(node, checker) {
|
|
526
526
|
return checker.typeToString(checker.getTypeAtLocation(node));
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
-
// bazel-out/
|
|
529
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
530
530
|
var FunctionExtractor = class {
|
|
531
531
|
constructor(declaration, typeChecker) {
|
|
532
532
|
this.declaration = declaration;
|
|
@@ -580,7 +580,7 @@ var FunctionExtractor = class {
|
|
|
580
580
|
}
|
|
581
581
|
};
|
|
582
582
|
|
|
583
|
-
// bazel-out/
|
|
583
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
584
584
|
var ClassExtractor = class {
|
|
585
585
|
constructor(declaration, typeChecker) {
|
|
586
586
|
this.declaration = declaration;
|
|
@@ -812,7 +812,7 @@ function extractInterface(declaration, typeChecker) {
|
|
|
812
812
|
return extractor.extract();
|
|
813
813
|
}
|
|
814
814
|
|
|
815
|
-
// bazel-out/
|
|
815
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
816
816
|
function extractConstant(declaration, typeChecker) {
|
|
817
817
|
const resolvedType = typeChecker.getBaseTypeOfLiteralType(typeChecker.getTypeAtLocation(declaration));
|
|
818
818
|
const variableStatement = declaration.parent.parent;
|
|
@@ -830,7 +830,7 @@ function isSyntheticAngularConstant(declaration) {
|
|
|
830
830
|
return declaration.name.getText() === "USED_FOR_NG_TYPE_CHECKING";
|
|
831
831
|
}
|
|
832
832
|
|
|
833
|
-
// bazel-out/
|
|
833
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
|
|
834
834
|
import ts7 from "typescript";
|
|
835
835
|
function extractorDecorator(declaration, typeChecker) {
|
|
836
836
|
const documentedNode = getDecoratorJsDocNode(declaration);
|
|
@@ -903,7 +903,7 @@ function getDecoratorJsDocNode(declaration) {
|
|
|
903
903
|
return callSignature;
|
|
904
904
|
}
|
|
905
905
|
|
|
906
|
-
// bazel-out/
|
|
906
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
907
907
|
import ts8 from "typescript";
|
|
908
908
|
function extractEnum(declaration, typeChecker) {
|
|
909
909
|
return {
|
|
@@ -934,7 +934,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
934
934
|
return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
|
|
935
935
|
}
|
|
936
936
|
|
|
937
|
-
// bazel-out/
|
|
937
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
938
938
|
function extractTypeAlias(declaration) {
|
|
939
939
|
return {
|
|
940
940
|
name: declaration.name.getText(),
|
|
@@ -946,7 +946,7 @@ function extractTypeAlias(declaration) {
|
|
|
946
946
|
};
|
|
947
947
|
}
|
|
948
948
|
|
|
949
|
-
// bazel-out/
|
|
949
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
950
950
|
var DocsExtractor = class {
|
|
951
951
|
constructor(typeChecker, metadataReader) {
|
|
952
952
|
this.typeChecker = typeChecker;
|
|
@@ -1008,7 +1008,7 @@ function isIgnoredInterface(node) {
|
|
|
1008
1008
|
return node.name.getText().endsWith("Decorator") || isDecoratorOptionsInterface(node);
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
|
-
// bazel-out/
|
|
1011
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
1012
1012
|
import ts10 from "typescript";
|
|
1013
1013
|
var FlatIndexGenerator = class {
|
|
1014
1014
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -1033,7 +1033,7 @@ export * from '${relativeEntryPoint}';
|
|
|
1033
1033
|
}
|
|
1034
1034
|
};
|
|
1035
1035
|
|
|
1036
|
-
// bazel-out/
|
|
1036
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
1037
1037
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
1038
1038
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
1039
1039
|
let resolvedEntryPoint = null;
|
|
@@ -1049,7 +1049,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
1049
1049
|
return resolvedEntryPoint;
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
|
-
// bazel-out/
|
|
1052
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
1053
1053
|
import ts11 from "typescript";
|
|
1054
1054
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
1055
1055
|
const diagnostics = [];
|
|
@@ -1129,7 +1129,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
|
-
// bazel-out/
|
|
1132
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
1133
1133
|
var ReferenceGraph = class {
|
|
1134
1134
|
constructor() {
|
|
1135
1135
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -1183,7 +1183,7 @@ var ReferenceGraph = class {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
};
|
|
1185
1185
|
|
|
1186
|
-
// bazel-out/
|
|
1186
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
1187
1187
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
1188
1188
|
var UpdateMode;
|
|
1189
1189
|
(function(UpdateMode2) {
|
|
@@ -1191,13 +1191,13 @@ var UpdateMode;
|
|
|
1191
1191
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
1192
1192
|
})(UpdateMode || (UpdateMode = {}));
|
|
1193
1193
|
|
|
1194
|
-
// bazel-out/
|
|
1194
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1195
1195
|
import ts13 from "typescript";
|
|
1196
1196
|
|
|
1197
|
-
// bazel-out/
|
|
1197
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
1198
1198
|
import ts12 from "typescript";
|
|
1199
1199
|
|
|
1200
|
-
// bazel-out/
|
|
1200
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
1201
1201
|
var NgExtension = Symbol("NgExtension");
|
|
1202
1202
|
function isExtended(sf) {
|
|
1203
1203
|
return sf[NgExtension] !== void 0;
|
|
@@ -1257,13 +1257,13 @@ function retagTsFile(sf) {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
|
-
// bazel-out/
|
|
1260
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
1261
1261
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
1262
1262
|
function makeShimFileName(fileName, suffix) {
|
|
1263
1263
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
1264
1264
|
}
|
|
1265
1265
|
|
|
1266
|
-
// bazel-out/
|
|
1266
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
1267
1267
|
var ShimAdapter = class {
|
|
1268
1268
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
1269
1269
|
this.delegate = delegate;
|
|
@@ -1358,7 +1358,7 @@ var ShimAdapter = class {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
};
|
|
1360
1360
|
|
|
1361
|
-
// bazel-out/
|
|
1361
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
1362
1362
|
var ShimReferenceTagger = class {
|
|
1363
1363
|
constructor(shimExtensions) {
|
|
1364
1364
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -1392,7 +1392,7 @@ var ShimReferenceTagger = class {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
};
|
|
1394
1394
|
|
|
1395
|
-
// bazel-out/
|
|
1395
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1396
1396
|
var DelegatingCompilerHost = class {
|
|
1397
1397
|
get jsDocParsingMode() {
|
|
1398
1398
|
return this.delegate.jsDocParsingMode;
|
|
@@ -1511,7 +1511,7 @@ var TsCreateProgramDriver = class {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
};
|
|
1513
1513
|
|
|
1514
|
-
// bazel-out/
|
|
1514
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1515
1515
|
var FileDependencyGraph = class {
|
|
1516
1516
|
constructor() {
|
|
1517
1517
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1578,7 +1578,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1578
1578
|
return false;
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
|
-
// bazel-out/
|
|
1581
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1582
1582
|
var IncrementalStateKind;
|
|
1583
1583
|
(function(IncrementalStateKind2) {
|
|
1584
1584
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1586,7 +1586,7 @@ var IncrementalStateKind;
|
|
|
1586
1586
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1587
1587
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1588
1588
|
|
|
1589
|
-
// bazel-out/
|
|
1589
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1590
1590
|
var PhaseKind;
|
|
1591
1591
|
(function(PhaseKind2) {
|
|
1592
1592
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1787,7 +1787,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
|
-
// bazel-out/
|
|
1790
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1791
1791
|
var TrackedIncrementalBuildStrategy = class {
|
|
1792
1792
|
constructor() {
|
|
1793
1793
|
this.state = null;
|
|
@@ -1823,7 +1823,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1823
1823
|
};
|
|
1824
1824
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1825
1825
|
|
|
1826
|
-
// bazel-out/
|
|
1826
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1827
1827
|
var IdentifierKind;
|
|
1828
1828
|
(function(IdentifierKind2) {
|
|
1829
1829
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1841,7 +1841,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
};
|
|
1843
1843
|
|
|
1844
|
-
// bazel-out/
|
|
1844
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1845
1845
|
var IndexingContext = class {
|
|
1846
1846
|
constructor() {
|
|
1847
1847
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1851,10 +1851,10 @@ var IndexingContext = class {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
};
|
|
1853
1853
|
|
|
1854
|
-
// bazel-out/
|
|
1854
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1855
1855
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1856
1856
|
|
|
1857
|
-
// bazel-out/
|
|
1857
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1858
1858
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1859
1859
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1860
1860
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -2136,7 +2136,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2136
2136
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2137
2137
|
}
|
|
2138
2138
|
|
|
2139
|
-
// bazel-out/
|
|
2139
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2140
2140
|
function generateAnalysis(context) {
|
|
2141
2141
|
const analysis = /* @__PURE__ */ new Map();
|
|
2142
2142
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2172,7 +2172,7 @@ function generateAnalysis(context) {
|
|
|
2172
2172
|
return analysis;
|
|
2173
2173
|
}
|
|
2174
2174
|
|
|
2175
|
-
// bazel-out/
|
|
2175
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2176
2176
|
var NgModuleIndexImpl = class {
|
|
2177
2177
|
constructor(metaReader, localReader) {
|
|
2178
2178
|
this.metaReader = metaReader;
|
|
@@ -2261,7 +2261,7 @@ var NgModuleIndexImpl = class {
|
|
|
2261
2261
|
}
|
|
2262
2262
|
};
|
|
2263
2263
|
|
|
2264
|
-
// bazel-out/
|
|
2264
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2265
2265
|
import ts14 from "typescript";
|
|
2266
2266
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2267
2267
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -2407,7 +2407,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2407
2407
|
};
|
|
2408
2408
|
}
|
|
2409
2409
|
|
|
2410
|
-
// bazel-out/
|
|
2410
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2411
2411
|
var StandaloneComponentScopeReader = class {
|
|
2412
2412
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
2413
2413
|
this.metaReader = metaReader;
|
|
@@ -2425,6 +2425,7 @@ var StandaloneComponentScopeReader = class {
|
|
|
2425
2425
|
return null;
|
|
2426
2426
|
}
|
|
2427
2427
|
const dependencies = /* @__PURE__ */ new Set([clazzMeta]);
|
|
2428
|
+
const deferredDependencies = /* @__PURE__ */ new Set();
|
|
2428
2429
|
const seen = /* @__PURE__ */ new Set([clazz]);
|
|
2429
2430
|
let isPoisoned = clazzMeta.isPoisoned;
|
|
2430
2431
|
if (clazzMeta.imports !== null) {
|
|
@@ -2470,10 +2471,27 @@ var StandaloneComponentScopeReader = class {
|
|
|
2470
2471
|
isPoisoned = true;
|
|
2471
2472
|
}
|
|
2472
2473
|
}
|
|
2474
|
+
if (clazzMeta.deferredImports !== null) {
|
|
2475
|
+
for (const ref of clazzMeta.deferredImports) {
|
|
2476
|
+
const dirMeta = this.metaReader.getDirectiveMetadata(ref);
|
|
2477
|
+
if (dirMeta !== null) {
|
|
2478
|
+
deferredDependencies.add({ ...dirMeta, ref, isExplicitlyDeferred: true });
|
|
2479
|
+
isPoisoned = isPoisoned || dirMeta.isPoisoned || !dirMeta.isStandalone;
|
|
2480
|
+
continue;
|
|
2481
|
+
}
|
|
2482
|
+
const pipeMeta = this.metaReader.getPipeMetadata(ref);
|
|
2483
|
+
if (pipeMeta !== null) {
|
|
2484
|
+
deferredDependencies.add({ ...pipeMeta, ref, isExplicitlyDeferred: true });
|
|
2485
|
+
isPoisoned = isPoisoned || !pipeMeta.isStandalone;
|
|
2486
|
+
continue;
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2473
2490
|
this.cache.set(clazz, {
|
|
2474
2491
|
kind: ComponentScopeKind.Standalone,
|
|
2475
2492
|
component: clazz,
|
|
2476
2493
|
dependencies: Array.from(dependencies),
|
|
2494
|
+
deferredDependencies: Array.from(deferredDependencies),
|
|
2477
2495
|
isPoisoned,
|
|
2478
2496
|
schemas: (_a = clazzMeta.schemas) != null ? _a : []
|
|
2479
2497
|
});
|
|
@@ -2485,10 +2503,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2485
2503
|
}
|
|
2486
2504
|
};
|
|
2487
2505
|
|
|
2488
|
-
// bazel-out/
|
|
2506
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
2489
2507
|
import { CssSelector as CssSelector2, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
2490
2508
|
|
|
2491
|
-
// bazel-out/
|
|
2509
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
2492
2510
|
import ts15 from "typescript";
|
|
2493
2511
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
2494
2512
|
var _a;
|
|
@@ -2595,7 +2613,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
2595
2613
|
return ts15.createSourceFile(fileName, template, ts15.ScriptTarget.Latest, false, ts15.ScriptKind.JSX);
|
|
2596
2614
|
}
|
|
2597
2615
|
|
|
2598
|
-
// bazel-out/
|
|
2616
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
2599
2617
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
2600
2618
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
2601
2619
|
function getTemplateId(clazz) {
|
|
@@ -2612,11 +2630,11 @@ function allocateTemplateId(sf) {
|
|
|
2612
2630
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
2613
2631
|
}
|
|
2614
2632
|
|
|
2615
|
-
// bazel-out/
|
|
2633
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2616
2634
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2617
2635
|
import ts17 from "typescript";
|
|
2618
2636
|
|
|
2619
|
-
// bazel-out/
|
|
2637
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
2620
2638
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
2621
2639
|
import ts16 from "typescript";
|
|
2622
2640
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -2746,7 +2764,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
2746
2764
|
}) || false;
|
|
2747
2765
|
}
|
|
2748
2766
|
|
|
2749
|
-
// bazel-out/
|
|
2767
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2750
2768
|
var CompletionEngine = class {
|
|
2751
2769
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
2752
2770
|
this.tcb = tcb;
|
|
@@ -2903,10 +2921,10 @@ var CompletionEngine = class {
|
|
|
2903
2921
|
}
|
|
2904
2922
|
};
|
|
2905
2923
|
|
|
2906
|
-
// bazel-out/
|
|
2924
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
2907
2925
|
import ts30 from "typescript";
|
|
2908
2926
|
|
|
2909
|
-
// bazel-out/
|
|
2927
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
2910
2928
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
2911
2929
|
import ts18 from "typescript";
|
|
2912
2930
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -2959,10 +2977,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
2959
2977
|
}
|
|
2960
2978
|
};
|
|
2961
2979
|
|
|
2962
|
-
// bazel-out/
|
|
2980
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2963
2981
|
import ts23 from "typescript";
|
|
2964
2982
|
|
|
2965
|
-
// bazel-out/
|
|
2983
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
|
|
2966
2984
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2967
2985
|
var ReferenceEmitEnvironment = class {
|
|
2968
2986
|
constructor(importManager, refEmitter, reflector, contextFile) {
|
|
@@ -2993,7 +3011,7 @@ var ReferenceEmitEnvironment = class {
|
|
|
2993
3011
|
}
|
|
2994
3012
|
};
|
|
2995
3013
|
|
|
2996
|
-
// bazel-out/
|
|
3014
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
2997
3015
|
import ts19 from "typescript";
|
|
2998
3016
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
2999
3017
|
ts19.SyntaxKind.ParenthesizedExpression,
|
|
@@ -3078,15 +3096,15 @@ function tsNumericExpression(value) {
|
|
|
3078
3096
|
return ts19.factory.createNumericLiteral(value);
|
|
3079
3097
|
}
|
|
3080
3098
|
|
|
3081
|
-
// bazel-out/
|
|
3099
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
3082
3100
|
import { ExpressionType as ExpressionType2, R3Identifiers as R3Identifiers2, WrappedNodeExpr } from "@angular/compiler";
|
|
3083
3101
|
import ts22 from "typescript";
|
|
3084
3102
|
|
|
3085
|
-
// bazel-out/
|
|
3103
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
3086
3104
|
import { R3Identifiers } from "@angular/compiler";
|
|
3087
3105
|
import ts21 from "typescript";
|
|
3088
3106
|
|
|
3089
|
-
// bazel-out/
|
|
3107
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
3090
3108
|
import ts20 from "typescript";
|
|
3091
3109
|
var TypeParameterEmitter = class {
|
|
3092
3110
|
constructor(typeParameters, reflector) {
|
|
@@ -3164,7 +3182,7 @@ var TypeParameterEmitter = class {
|
|
|
3164
3182
|
}
|
|
3165
3183
|
};
|
|
3166
3184
|
|
|
3167
|
-
// bazel-out/
|
|
3185
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
3168
3186
|
var TCB_FILE_IMPORT_GRAPH_PREPARE_MODULES = [
|
|
3169
3187
|
R3Identifiers.InputSignalBrandWriteType.moduleName
|
|
3170
3188
|
];
|
|
@@ -3252,7 +3270,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
3252
3270
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
3253
3271
|
}
|
|
3254
3272
|
|
|
3255
|
-
// bazel-out/
|
|
3273
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
3256
3274
|
function generateTypeCtorDeclarationFn(env, meta, nodeTypeRef, typeParams) {
|
|
3257
3275
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
3258
3276
|
const rawType = ts22.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -3313,8 +3331,8 @@ function constructTypeCtorParameter(env, meta, rawType) {
|
|
|
3313
3331
|
const plainKeys = [];
|
|
3314
3332
|
const coercedKeys = [];
|
|
3315
3333
|
const signalInputKeys = [];
|
|
3316
|
-
for (const { classPropertyName, transform, isSignal } of meta.fields.inputs) {
|
|
3317
|
-
if (
|
|
3334
|
+
for (const { classPropertyName, transform, isSignal: isSignal2 } of meta.fields.inputs) {
|
|
3335
|
+
if (isSignal2) {
|
|
3318
3336
|
signalInputKeys.push(ts22.factory.createLiteralTypeNode(ts22.factory.createStringLiteral(classPropertyName)));
|
|
3319
3337
|
} else if (!meta.coercedInputFields.has(classPropertyName)) {
|
|
3320
3338
|
plainKeys.push(ts22.factory.createLiteralTypeNode(ts22.factory.createStringLiteral(classPropertyName)));
|
|
@@ -3375,7 +3393,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
3375
3393
|
});
|
|
3376
3394
|
}
|
|
3377
3395
|
|
|
3378
|
-
// bazel-out/
|
|
3396
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
3379
3397
|
var Environment = class extends ReferenceEmitEnvironment {
|
|
3380
3398
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
3381
3399
|
super(importManager, refEmitter, reflector, contextFile);
|
|
@@ -3450,8 +3468,8 @@ var Environment = class extends ReferenceEmitEnvironment {
|
|
|
3450
3468
|
}
|
|
3451
3469
|
};
|
|
3452
3470
|
|
|
3453
|
-
// bazel-out/
|
|
3454
|
-
import { TmplAstElement as TmplAstElement2, TmplAstForLoopBlock, TmplAstForLoopBlockEmpty } from "@angular/compiler";
|
|
3471
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
3472
|
+
import { AbsoluteSourceSpan as AbsoluteSourceSpan3, TmplAstElement as TmplAstElement2, TmplAstForLoopBlock, TmplAstForLoopBlockEmpty } from "@angular/compiler";
|
|
3455
3473
|
import ts24 from "typescript";
|
|
3456
3474
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
3457
3475
|
constructor(resolver) {
|
|
@@ -3481,6 +3499,30 @@ var OutOfBandDiagnosticRecorderImpl = class {
|
|
|
3481
3499
|
this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, ts24.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
|
|
3482
3500
|
this.recordedPipes.add(ast);
|
|
3483
3501
|
}
|
|
3502
|
+
deferredPipeUsedEagerly(templateId, ast) {
|
|
3503
|
+
if (this.recordedPipes.has(ast)) {
|
|
3504
|
+
return;
|
|
3505
|
+
}
|
|
3506
|
+
const mapping = this.resolver.getSourceMapping(templateId);
|
|
3507
|
+
const errorMsg = `Pipe '${ast.name}' was imported via \`@Component.deferredImports\`, but was used outside of a \`@defer\` block in a template. To fix this, either use the '${ast.name}' pipe inside of a \`@defer\` block or import this dependency using the \`@Component.imports\` field.`;
|
|
3508
|
+
const sourceSpan = this.resolver.toParseSourceSpan(templateId, ast.nameSpan);
|
|
3509
|
+
if (sourceSpan === null) {
|
|
3510
|
+
throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${ast.name}'.`);
|
|
3511
|
+
}
|
|
3512
|
+
this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, ts24.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DEFERRED_PIPE_USED_EAGERLY), errorMsg));
|
|
3513
|
+
this.recordedPipes.add(ast);
|
|
3514
|
+
}
|
|
3515
|
+
deferredComponentUsedEagerly(templateId, element) {
|
|
3516
|
+
const mapping = this.resolver.getSourceMapping(templateId);
|
|
3517
|
+
const errorMsg = `Element '${element.name}' contains a component or a directive that was imported via \`@Component.deferredImports\`, but the element itself is located outside of a \`@defer\` block in a template. To fix this, either use the '${element.name}' element inside of a \`@defer\` block or import referenced component/directive dependency using the \`@Component.imports\` field.`;
|
|
3518
|
+
const { start, end } = element.startSourceSpan;
|
|
3519
|
+
const absoluteSourceSpan = new AbsoluteSourceSpan3(start.offset, end.offset);
|
|
3520
|
+
const sourceSpan = this.resolver.toParseSourceSpan(templateId, absoluteSourceSpan);
|
|
3521
|
+
if (sourceSpan === null) {
|
|
3522
|
+
throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${element.name}'.`);
|
|
3523
|
+
}
|
|
3524
|
+
this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, ts24.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DEFERRED_DIRECTIVE_USED_EAGERLY), errorMsg));
|
|
3525
|
+
}
|
|
3484
3526
|
illegalAssignmentToTemplateVar(templateId, assignment, target) {
|
|
3485
3527
|
var _a, _b;
|
|
3486
3528
|
const mapping = this.resolver.getSourceMapping(templateId);
|
|
@@ -3628,7 +3670,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
3628
3670
|
};
|
|
3629
3671
|
}
|
|
3630
3672
|
|
|
3631
|
-
// bazel-out/
|
|
3673
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
3632
3674
|
import ts25 from "typescript";
|
|
3633
3675
|
var TypeCheckShimGenerator = class {
|
|
3634
3676
|
constructor() {
|
|
@@ -3646,12 +3688,12 @@ var TypeCheckShimGenerator = class {
|
|
|
3646
3688
|
}
|
|
3647
3689
|
};
|
|
3648
3690
|
|
|
3649
|
-
// bazel-out/
|
|
3691
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3650
3692
|
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";
|
|
3651
3693
|
import ts28 from "typescript";
|
|
3652
3694
|
|
|
3653
|
-
// bazel-out/
|
|
3654
|
-
import { AbsoluteSourceSpan as
|
|
3695
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
3696
|
+
import { AbsoluteSourceSpan as AbsoluteSourceSpan4 } from "@angular/compiler";
|
|
3655
3697
|
import ts26 from "typescript";
|
|
3656
3698
|
function wrapForDiagnostics(expr) {
|
|
3657
3699
|
return ts26.factory.createParenthesizedExpression(expr);
|
|
@@ -3661,7 +3703,7 @@ function wrapForTypeChecker(expr) {
|
|
|
3661
3703
|
}
|
|
3662
3704
|
function addParseSpanInfo(node, span) {
|
|
3663
3705
|
let commentText;
|
|
3664
|
-
if (span instanceof
|
|
3706
|
+
if (span instanceof AbsoluteSourceSpan4) {
|
|
3665
3707
|
commentText = `${span.start},${span.end}`;
|
|
3666
3708
|
} else {
|
|
3667
3709
|
commentText = `${span.start.offset},${span.end.offset}`;
|
|
@@ -3696,7 +3738,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
3696
3738
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
3697
3739
|
}
|
|
3698
3740
|
|
|
3699
|
-
// bazel-out/
|
|
3741
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
3700
3742
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
3701
3743
|
import ts27 from "typescript";
|
|
3702
3744
|
var NULL_AS_ANY = ts27.factory.createAsExpression(ts27.factory.createNull(), ts27.factory.createKeywordTypeNode(ts27.SyntaxKind.AnyKeyword));
|
|
@@ -4029,7 +4071,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
4029
4071
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
4030
4072
|
})();
|
|
4031
4073
|
|
|
4032
|
-
// bazel-out/
|
|
4074
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
4033
4075
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
4034
4076
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
4035
4077
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -4053,7 +4095,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
4053
4095
|
}
|
|
4054
4096
|
};
|
|
4055
4097
|
|
|
4056
|
-
// bazel-out/
|
|
4098
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
4057
4099
|
var TcbGenericContextBehavior;
|
|
4058
4100
|
(function(TcbGenericContextBehavior2) {
|
|
4059
4101
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -4407,7 +4449,7 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
4407
4449
|
for (const attr of boundAttrs) {
|
|
4408
4450
|
const expr = widenBinding(translateInput(attr.attribute, this.tcb, this.scope), this.tcb);
|
|
4409
4451
|
let assignment = wrapForDiagnostics(expr);
|
|
4410
|
-
for (const { fieldName, required, transformType, isSignal } of attr.inputs) {
|
|
4452
|
+
for (const { fieldName, required, transformType, isSignal: isSignal2 } of attr.inputs) {
|
|
4411
4453
|
let target;
|
|
4412
4454
|
if (required) {
|
|
4413
4455
|
seenRequiredInputs.add(fieldName);
|
|
@@ -4447,7 +4489,7 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
4447
4489
|
}
|
|
4448
4490
|
target = this.dir.stringLiteralInputFields.has(fieldName) ? ts28.factory.createElementAccessExpression(dirId, ts28.factory.createStringLiteral(fieldName)) : ts28.factory.createPropertyAccessExpression(dirId, ts28.factory.createIdentifier(fieldName));
|
|
4449
4491
|
}
|
|
4450
|
-
if (
|
|
4492
|
+
if (isSignal2) {
|
|
4451
4493
|
const inputSignalBrandWriteSymbol = this.tcb.env.referenceExternalSymbol(R3Identifiers3.InputSignalBrandWriteType.moduleName, R3Identifiers3.InputSignalBrandWriteType.name);
|
|
4452
4494
|
if (!ts28.isIdentifier(inputSignalBrandWriteSymbol) && !ts28.isPropertyAccessExpression(inputSignalBrandWriteSymbol)) {
|
|
4453
4495
|
throw new Error(`Expected identifier or property access for reference to ${R3Identifiers3.InputSignalBrandWriteType.name}`);
|
|
@@ -5164,6 +5206,13 @@ var _Scope = class {
|
|
|
5164
5206
|
this.opQueue.push(new TcbDomSchemaCheckerOp(this.tcb, node, true, claimedInputs));
|
|
5165
5207
|
}
|
|
5166
5208
|
return;
|
|
5209
|
+
} else {
|
|
5210
|
+
if (node instanceof TmplAstElement3) {
|
|
5211
|
+
const isDeferred = this.tcb.boundTarget.isDeferred(node);
|
|
5212
|
+
if (!isDeferred && directives.some((dirMeta) => dirMeta.isExplicitlyDeferred)) {
|
|
5213
|
+
this.tcb.oobRecorder.deferredComponentUsedEagerly(this.tcb.id, node);
|
|
5214
|
+
}
|
|
5215
|
+
}
|
|
5167
5216
|
}
|
|
5168
5217
|
const dirMap = /* @__PURE__ */ new Map();
|
|
5169
5218
|
for (const dir of directives) {
|
|
@@ -5341,13 +5390,16 @@ var TcbExpressionTranslator = class {
|
|
|
5341
5390
|
return ts28.factory.createThis();
|
|
5342
5391
|
} else if (ast instanceof BindingPipe) {
|
|
5343
5392
|
const expr = this.translate(ast.exp);
|
|
5344
|
-
const
|
|
5393
|
+
const pipeMeta = this.tcb.getPipeByName(ast.name);
|
|
5345
5394
|
let pipe;
|
|
5346
|
-
if (
|
|
5395
|
+
if (pipeMeta === null) {
|
|
5347
5396
|
this.tcb.oobRecorder.missingPipe(this.tcb.id, ast);
|
|
5348
5397
|
pipe = NULL_AS_ANY;
|
|
5398
|
+
} else if (pipeMeta.isExplicitlyDeferred && this.tcb.boundTarget.getEagerlyUsedPipes().includes(ast.name)) {
|
|
5399
|
+
this.tcb.oobRecorder.deferredPipeUsedEagerly(this.tcb.id, ast);
|
|
5400
|
+
pipe = NULL_AS_ANY;
|
|
5349
5401
|
} else {
|
|
5350
|
-
pipe = this.tcb.env.pipeInst(
|
|
5402
|
+
pipe = this.tcb.env.pipeInst(pipeMeta.ref);
|
|
5351
5403
|
}
|
|
5352
5404
|
const args = ast.args.map((arg) => this.translate(arg));
|
|
5353
5405
|
let methodAccess = ts28.factory.createPropertyAccessExpression(pipe, "transform");
|
|
@@ -5544,7 +5596,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
5544
5596
|
}
|
|
5545
5597
|
};
|
|
5546
5598
|
|
|
5547
|
-
// bazel-out/
|
|
5599
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
5548
5600
|
import ts29 from "typescript";
|
|
5549
5601
|
var TypeCheckFile = class extends Environment {
|
|
5550
5602
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -5581,7 +5633,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
5581
5633
|
}
|
|
5582
5634
|
};
|
|
5583
5635
|
|
|
5584
|
-
// bazel-out/
|
|
5636
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
5585
5637
|
var InliningMode;
|
|
5586
5638
|
(function(InliningMode2) {
|
|
5587
5639
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -5643,7 +5695,7 @@ var TypeCheckContextImpl = class {
|
|
|
5643
5695
|
if (!pipes.has(name)) {
|
|
5644
5696
|
continue;
|
|
5645
5697
|
}
|
|
5646
|
-
usedPipes.push(pipes.get(name));
|
|
5698
|
+
usedPipes.push(pipes.get(name).ref);
|
|
5647
5699
|
}
|
|
5648
5700
|
const inliningRequirement = requiresInlineTypeCheckBlock(ref, shimData.file, usedPipes, this.reflector);
|
|
5649
5701
|
if (this.inlining === InliningMode.Error && inliningRequirement === TcbInliningRequirement.MustInline) {
|
|
@@ -5821,10 +5873,10 @@ function splitStringAtPoints(str, points) {
|
|
|
5821
5873
|
return splits;
|
|
5822
5874
|
}
|
|
5823
5875
|
|
|
5824
|
-
// bazel-out/
|
|
5876
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
5825
5877
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
5826
5878
|
|
|
5827
|
-
// bazel-out/
|
|
5879
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
5828
5880
|
var LF_CHAR = 10;
|
|
5829
5881
|
var CR_CHAR = 13;
|
|
5830
5882
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -5865,7 +5917,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
5865
5917
|
return low - 1;
|
|
5866
5918
|
}
|
|
5867
5919
|
|
|
5868
|
-
// bazel-out/
|
|
5920
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
5869
5921
|
var TemplateSource = class {
|
|
5870
5922
|
constructor(mapping, file) {
|
|
5871
5923
|
this.mapping = mapping;
|
|
@@ -5916,7 +5968,7 @@ var TemplateSourceManager = class {
|
|
|
5916
5968
|
}
|
|
5917
5969
|
};
|
|
5918
5970
|
|
|
5919
|
-
// bazel-out/
|
|
5971
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
5920
5972
|
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";
|
|
5921
5973
|
import ts31 from "typescript";
|
|
5922
5974
|
var SymbolBuilder = class {
|
|
@@ -6400,7 +6452,7 @@ function sourceSpanEqual(a, b) {
|
|
|
6400
6452
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
6401
6453
|
}
|
|
6402
6454
|
|
|
6403
|
-
// bazel-out/
|
|
6455
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
6404
6456
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
6405
6457
|
var TemplateTypeCheckerImpl = class {
|
|
6406
6458
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -7097,10 +7149,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
7097
7149
|
}
|
|
7098
7150
|
};
|
|
7099
7151
|
|
|
7100
|
-
// bazel-out/
|
|
7152
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
7101
7153
|
import { Interpolation, PropertyRead as PropertyRead6 } from "@angular/compiler";
|
|
7102
7154
|
|
|
7103
|
-
// bazel-out/
|
|
7155
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
7104
7156
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
7105
7157
|
var TemplateCheckWithVisitor = class {
|
|
7106
7158
|
run(ctx, component, template) {
|
|
@@ -7224,7 +7276,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
7224
7276
|
}
|
|
7225
7277
|
};
|
|
7226
7278
|
|
|
7227
|
-
// bazel-out/
|
|
7279
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
7228
7280
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
7229
7281
|
constructor() {
|
|
7230
7282
|
super(...arguments);
|
|
@@ -7242,10 +7294,12 @@ var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
|
7242
7294
|
return [];
|
|
7243
7295
|
}
|
|
7244
7296
|
};
|
|
7297
|
+
function isSignal(symbol) {
|
|
7298
|
+
return ((symbol == null ? void 0 : symbol.escapedName) === "WritableSignal" || (symbol == null ? void 0 : symbol.escapedName) === "Signal" || (symbol == null ? void 0 : symbol.escapedName) === "InputSignal") && symbol.parent.escapedName.includes("@angular/core");
|
|
7299
|
+
}
|
|
7245
7300
|
function buildDiagnosticForSignal(ctx, node, component) {
|
|
7246
|
-
var _a, _b;
|
|
7247
7301
|
const symbol = ctx.templateTypeChecker.getSymbolOfNode(node, component);
|
|
7248
|
-
if ((symbol == null ? void 0 : symbol.kind) === SymbolKind.Expression && ((
|
|
7302
|
+
if ((symbol == null ? void 0 : symbol.kind) === SymbolKind.Expression && (isSignal(symbol.tsType.symbol) || isSignal(symbol.tsType.aliasSymbol))) {
|
|
7249
7303
|
const templateMapping = ctx.templateTypeChecker.getTemplateMappingAtTcbLocation(symbol.tcbLocation);
|
|
7250
7304
|
const errorString = `${node.name} is a function and should be invoked: ${node.name}()`;
|
|
7251
7305
|
const diagnostic = ctx.makeTemplateDiagnostic(templateMapping.span, errorString);
|
|
@@ -7259,7 +7313,7 @@ var factory = {
|
|
|
7259
7313
|
create: () => new InterpolatedSignalCheck()
|
|
7260
7314
|
};
|
|
7261
7315
|
|
|
7262
|
-
// bazel-out/
|
|
7316
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
7263
7317
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
7264
7318
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
7265
7319
|
constructor() {
|
|
@@ -7285,7 +7339,7 @@ var factory2 = {
|
|
|
7285
7339
|
create: () => new InvalidBananaInBoxCheck()
|
|
7286
7340
|
};
|
|
7287
7341
|
|
|
7288
|
-
// bazel-out/
|
|
7342
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
7289
7343
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
7290
7344
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
7291
7345
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -7330,7 +7384,7 @@ var factory3 = {
|
|
|
7330
7384
|
}
|
|
7331
7385
|
};
|
|
7332
7386
|
|
|
7333
|
-
// bazel-out/
|
|
7387
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
7334
7388
|
import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
|
|
7335
7389
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
7336
7390
|
constructor() {
|
|
@@ -7363,7 +7417,7 @@ var factory4 = {
|
|
|
7363
7417
|
create: () => new MissingNgForOfLetCheck()
|
|
7364
7418
|
};
|
|
7365
7419
|
|
|
7366
|
-
// bazel-out/
|
|
7420
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
7367
7421
|
import { Binary } from "@angular/compiler";
|
|
7368
7422
|
import ts32 from "typescript";
|
|
7369
7423
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7408,7 +7462,7 @@ var factory5 = {
|
|
|
7408
7462
|
}
|
|
7409
7463
|
};
|
|
7410
7464
|
|
|
7411
|
-
// bazel-out/
|
|
7465
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
7412
7466
|
import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
|
|
7413
7467
|
import ts33 from "typescript";
|
|
7414
7468
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7454,7 +7508,7 @@ var factory6 = {
|
|
|
7454
7508
|
}
|
|
7455
7509
|
};
|
|
7456
7510
|
|
|
7457
|
-
// bazel-out/
|
|
7511
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
7458
7512
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
7459
7513
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
7460
7514
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -7478,7 +7532,7 @@ var factory7 = {
|
|
|
7478
7532
|
create: () => new SuffixNotSupportedCheck()
|
|
7479
7533
|
};
|
|
7480
7534
|
|
|
7481
|
-
// bazel-out/
|
|
7535
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
7482
7536
|
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
7483
7537
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
7484
7538
|
constructor() {
|
|
@@ -7517,10 +7571,10 @@ var factory8 = {
|
|
|
7517
7571
|
create: () => new TextAttributeNotBindingSpec()
|
|
7518
7572
|
};
|
|
7519
7573
|
|
|
7520
|
-
// bazel-out/
|
|
7574
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
7521
7575
|
import ts34 from "typescript";
|
|
7522
7576
|
|
|
7523
|
-
// bazel-out/
|
|
7577
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
7524
7578
|
var DiagnosticCategoryLabel;
|
|
7525
7579
|
(function(DiagnosticCategoryLabel2) {
|
|
7526
7580
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -7528,7 +7582,7 @@ var DiagnosticCategoryLabel;
|
|
|
7528
7582
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
7529
7583
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
7530
7584
|
|
|
7531
|
-
// bazel-out/
|
|
7585
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
7532
7586
|
var ExtendedTemplateCheckerImpl = class {
|
|
7533
7587
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
7534
7588
|
var _a, _b, _c, _d, _e;
|
|
@@ -7581,7 +7635,7 @@ function assertNever(value) {
|
|
|
7581
7635
|
${value}`);
|
|
7582
7636
|
}
|
|
7583
7637
|
|
|
7584
|
-
// bazel-out/
|
|
7638
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
7585
7639
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
7586
7640
|
factory2,
|
|
7587
7641
|
factory5,
|
|
@@ -7597,7 +7651,7 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
|
7597
7651
|
...ALL_DIAGNOSTIC_FACTORIES.map((factory9) => factory9.name)
|
|
7598
7652
|
]);
|
|
7599
7653
|
|
|
7600
|
-
// bazel-out/
|
|
7654
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
7601
7655
|
var CompilationTicketKind;
|
|
7602
7656
|
(function(CompilationTicketKind2) {
|
|
7603
7657
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -7752,10 +7806,17 @@ var NgCompiler = class {
|
|
|
7752
7806
|
return this.addMessageTextDetails(diagnostics);
|
|
7753
7807
|
}
|
|
7754
7808
|
getDiagnosticsForFile(file, optimizeFor) {
|
|
7755
|
-
const diagnostics = [];
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7809
|
+
const diagnostics = [...this.getNonTemplateDiagnostics().filter((diag) => diag.file === file)];
|
|
7810
|
+
try {
|
|
7811
|
+
diagnostics.push(...this.getTemplateDiagnosticsForFile(file, optimizeFor));
|
|
7812
|
+
if (this.options.strictTemplates) {
|
|
7813
|
+
diagnostics.push(...this.getExtendedTemplateDiagnostics(file));
|
|
7814
|
+
}
|
|
7815
|
+
} catch (e) {
|
|
7816
|
+
if (e instanceof FatalDiagnosticError) {
|
|
7817
|
+
diagnostics.push(e.toDiagnostic());
|
|
7818
|
+
}
|
|
7819
|
+
throw e;
|
|
7759
7820
|
}
|
|
7760
7821
|
return this.addMessageTextDetails(diagnostics);
|
|
7761
7822
|
}
|
|
@@ -8048,14 +8109,7 @@ var NgCompiler = class {
|
|
|
8048
8109
|
const compilation = this.ensureAnalyzed();
|
|
8049
8110
|
const diagnostics = [];
|
|
8050
8111
|
if (!sf.isDeclarationFile && !this.adapter.isShim(sf)) {
|
|
8051
|
-
|
|
8052
|
-
diagnostics.push(...compilation.templateTypeChecker.getDiagnosticsForFile(sf, optimizeFor));
|
|
8053
|
-
} catch (err) {
|
|
8054
|
-
if (!(err instanceof FatalDiagnosticError)) {
|
|
8055
|
-
throw err;
|
|
8056
|
-
}
|
|
8057
|
-
diagnostics.push(err.toDiagnostic());
|
|
8058
|
-
}
|
|
8112
|
+
diagnostics.push(...compilation.templateTypeChecker.getDiagnosticsForFile(sf, optimizeFor));
|
|
8059
8113
|
}
|
|
8060
8114
|
const program = this.programDriver.getProgram();
|
|
8061
8115
|
this.incrementalStrategy.setIncrementalState(this.incrementalCompilation.state, program);
|
|
@@ -8088,7 +8142,7 @@ var NgCompiler = class {
|
|
|
8088
8142
|
return diagnostics;
|
|
8089
8143
|
}
|
|
8090
8144
|
makeCompilation() {
|
|
8091
|
-
var _a, _b, _c;
|
|
8145
|
+
var _a, _b, _c, _d;
|
|
8092
8146
|
const isCore = isAngularCorePackage(this.inputProgram);
|
|
8093
8147
|
let compilationMode = CompilationMode.FULL;
|
|
8094
8148
|
if (!isCore) {
|
|
@@ -8157,11 +8211,11 @@ var NgCompiler = class {
|
|
|
8157
8211
|
}
|
|
8158
8212
|
const dtsTransforms = new DtsTransformRegistry();
|
|
8159
8213
|
const resourceRegistry = new ResourceRegistry();
|
|
8160
|
-
const deferredSymbolsTracker = new DeferredSymbolTracker(this.inputProgram.getTypeChecker());
|
|
8214
|
+
const deferredSymbolsTracker = new DeferredSymbolTracker(this.inputProgram.getTypeChecker(), (_a = this.options.onlyExplicitDeferDependencyImports) != null ? _a : false);
|
|
8161
8215
|
const cycleHandlingStrategy = compilationMode === CompilationMode.FULL ? 0 : 1;
|
|
8162
8216
|
const strictCtorDeps = this.options.strictInjectionParameters || false;
|
|
8163
|
-
const supportJitMode = (
|
|
8164
|
-
const supportTestBed = (
|
|
8217
|
+
const supportJitMode = (_b = this.options["supportJitMode"]) != null ? _b : true;
|
|
8218
|
+
const supportTestBed = (_c = this.options["supportTestBed"]) != null ? _c : true;
|
|
8165
8219
|
if (supportTestBed === false && compilationMode === CompilationMode.PARTIAL) {
|
|
8166
8220
|
throw new Error('TestBed support ("supportTestBed" option) cannot be disabled in partial compilation mode.');
|
|
8167
8221
|
}
|
|
@@ -8176,7 +8230,7 @@ var NgCompiler = class {
|
|
|
8176
8230
|
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
8177
8231
|
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
8178
8232
|
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
8179
|
-
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (
|
|
8233
|
+
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (_d = this.options.onlyPublishPublicTypingsForNgModules) != null ? _d : false, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, supportJitMode, compilationMode)
|
|
8180
8234
|
];
|
|
8181
8235
|
const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
|
|
8182
8236
|
const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
|
|
@@ -8362,7 +8416,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
8362
8416
|
return versions;
|
|
8363
8417
|
}
|
|
8364
8418
|
|
|
8365
|
-
// bazel-out/
|
|
8419
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
8366
8420
|
import ts36 from "typescript";
|
|
8367
8421
|
var DelegatingCompilerHost2 = class {
|
|
8368
8422
|
get jsDocParsingMode() {
|
|
@@ -8501,7 +8555,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
8501
8555
|
}
|
|
8502
8556
|
};
|
|
8503
8557
|
|
|
8504
|
-
// bazel-out/
|
|
8558
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
8505
8559
|
var NgtscProgram = class {
|
|
8506
8560
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
8507
8561
|
this.options = options;
|
|
@@ -8728,15 +8782,15 @@ function mergeEmitResults(emitResults) {
|
|
|
8728
8782
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
8729
8783
|
}
|
|
8730
8784
|
|
|
8731
|
-
// bazel-out/
|
|
8785
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
8732
8786
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
8733
8787
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
8734
8788
|
}
|
|
8735
8789
|
|
|
8736
|
-
// bazel-out/
|
|
8790
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
8737
8791
|
import ts39 from "typescript";
|
|
8738
8792
|
|
|
8739
|
-
// bazel-out/
|
|
8793
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
8740
8794
|
import ts38 from "typescript";
|
|
8741
8795
|
function createMessageDiagnostic(messageText) {
|
|
8742
8796
|
return {
|
|
@@ -8750,7 +8804,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
8750
8804
|
};
|
|
8751
8805
|
}
|
|
8752
8806
|
|
|
8753
|
-
// bazel-out/
|
|
8807
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
8754
8808
|
var defaultFormatHost = {
|
|
8755
8809
|
getCurrentDirectory: () => ts39.sys.getCurrentDirectory(),
|
|
8756
8810
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -8963,4 +9017,4 @@ export {
|
|
|
8963
9017
|
* Use of this source code is governed by an MIT-style license that can be
|
|
8964
9018
|
* found in the LICENSE file at https://angular.io/license
|
|
8965
9019
|
*/
|
|
8966
|
-
//# sourceMappingURL=chunk-
|
|
9020
|
+
//# sourceMappingURL=chunk-YFIBJR5K.js.map
|