@angular/compiler-cli 15.0.0-rc.4 → 15.1.0-next.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-ZXBCBXWY.js → chunk-22N3RTKA.js} +7 -7
- package/bundles/chunk-22N3RTKA.js.map +6 -0
- package/bundles/{chunk-3KIUHCHT.js → chunk-6TLW4724.js} +41 -41
- package/bundles/chunk-6TLW4724.js.map +6 -0
- package/bundles/{chunk-KGXXQYFO.js → chunk-A6MA5NDQ.js} +384 -169
- package/bundles/chunk-A6MA5NDQ.js.map +6 -0
- package/bundles/{chunk-E7NQQTT7.js → chunk-FPQZA7NP.js} +4 -3
- package/bundles/chunk-FPQZA7NP.js.map +6 -0
- package/bundles/{chunk-GQT3DC2W.js → chunk-GIA6ASYG.js} +19 -9
- package/bundles/chunk-GIA6ASYG.js.map +6 -0
- package/bundles/{chunk-PKFN6ZKR.js → chunk-JY5KP5YT.js} +4 -4
- package/bundles/chunk-JY5KP5YT.js.map +6 -0
- package/bundles/{chunk-SHFEZGDP.js → chunk-JZDWEOSI.js} +151 -76
- package/bundles/chunk-JZDWEOSI.js.map +6 -0
- package/bundles/{chunk-5QCN26YI.js → chunk-KGTNU2UU.js} +5 -5
- package/bundles/chunk-KGTNU2UU.js.map +6 -0
- package/bundles/{chunk-24QFMHYM.js → chunk-LHZD6YT2.js} +31 -31
- package/bundles/chunk-LHZD6YT2.js.map +6 -0
- package/bundles/{chunk-XYNRD7NE.js → chunk-NDREJTCS.js} +5 -2
- package/bundles/{chunk-XYNRD7NE.js.map → chunk-NDREJTCS.js.map} +0 -0
- package/bundles/{chunk-WEEZR5JR.js → chunk-NXGWYLNC.js} +8 -8
- package/bundles/chunk-NXGWYLNC.js.map +6 -0
- package/bundles/{chunk-CYVTLM4Z.js → chunk-OKDR75TI.js} +8 -7
- package/bundles/chunk-OKDR75TI.js.map +6 -0
- package/bundles/{chunk-RSZNB3FD.js → chunk-QKS2XPFG.js} +150 -85
- package/bundles/chunk-QKS2XPFG.js.map +6 -0
- package/bundles/{chunk-JBW3LNWN.js → chunk-TZNP5L2W.js} +55 -31
- package/bundles/chunk-TZNP5L2W.js.map +6 -0
- package/bundles/{chunk-F526PAOI.js → chunk-UUIUKASM.js} +3 -2
- package/bundles/chunk-UUIUKASM.js.map +6 -0
- package/bundles/{chunk-R3C7RFJ4.js → chunk-VOEFUUJH.js} +3 -2
- package/bundles/chunk-VOEFUUJH.js.map +6 -0
- package/bundles/{chunk-2HPI44CB.js → chunk-XVHC4VAO.js} +6 -5
- package/bundles/chunk-XVHC4VAO.js.map +6 -0
- package/bundles/index.js +23 -15
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +14 -14
- package/bundles/linker/babel/index.js.map +2 -2
- package/bundles/linker/index.js +6 -6
- package/bundles/ngcc/index.js +14 -14
- package/bundles/ngcc/index.js.map +1 -1
- package/bundles/ngcc/main-ngcc.js +15 -15
- package/bundles/ngcc/main-ngcc.js.map +1 -1
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +15 -15
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +2 -2
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +5 -5
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js.map +1 -1
- package/bundles/private/bazel.js +2 -2
- package/bundles/private/bazel.js.map +2 -2
- package/bundles/private/localize.js +4 -4
- package/bundles/private/localize.js.map +2 -2
- package/bundles/private/migrations.js +7 -7
- package/bundles/private/migrations.js.map +2 -2
- package/bundles/private/tooling.js +4 -4
- package/bundles/src/bin/ng_xi18n.js +12 -12
- package/bundles/src/bin/ng_xi18n.js.map +2 -2
- package/bundles/src/bin/ngc.js +10 -10
- package/bundles/src/bin/ngc.js.map +1 -1
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/metadata/src/api.d.ts +1 -1
- package/src/ngtsc/metadata/src/registry.d.ts +2 -2
- package/src/ngtsc/typecheck/api/api.d.ts +2 -1
- package/src/ngtsc/typecheck/api/checker.d.ts +2 -2
- package/src/ngtsc/typecheck/api/scope.d.ts +2 -1
- package/src/ngtsc/typecheck/api/symbols.d.ts +14 -5
- package/src/ngtsc/typecheck/src/checker.d.ts +2 -1
- package/src/ngtsc/typecheck/src/template_symbol_builder.d.ts +1 -0
- package/bundles/chunk-24QFMHYM.js.map +0 -6
- package/bundles/chunk-2HPI44CB.js.map +0 -6
- package/bundles/chunk-3KIUHCHT.js.map +0 -6
- package/bundles/chunk-5QCN26YI.js.map +0 -6
- package/bundles/chunk-CYVTLM4Z.js.map +0 -6
- package/bundles/chunk-E7NQQTT7.js.map +0 -6
- package/bundles/chunk-F526PAOI.js.map +0 -6
- package/bundles/chunk-GQT3DC2W.js.map +0 -6
- package/bundles/chunk-JBW3LNWN.js.map +0 -6
- package/bundles/chunk-KGXXQYFO.js.map +0 -6
- package/bundles/chunk-PKFN6ZKR.js.map +0 -6
- package/bundles/chunk-R3C7RFJ4.js.map +0 -6
- package/bundles/chunk-RSZNB3FD.js.map +0 -6
- package/bundles/chunk-SHFEZGDP.js.map +0 -6
- package/bundles/chunk-WEEZR5JR.js.map +0 -6
- package/bundles/chunk-ZXBCBXWY.js.map +0 -6
|
@@ -31,11 +31,11 @@ import {
|
|
|
31
31
|
aliasTransformFactory,
|
|
32
32
|
declarationTransformFactory,
|
|
33
33
|
ivyTransformFactory
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-QKS2XPFG.js";
|
|
35
35
|
import {
|
|
36
36
|
TypeScriptReflectionHost,
|
|
37
37
|
isNamedClassDeclaration
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-22N3RTKA.js";
|
|
39
39
|
import {
|
|
40
40
|
AbsoluteModuleStrategy,
|
|
41
41
|
AliasStrategy,
|
|
@@ -76,12 +76,12 @@ import {
|
|
|
76
76
|
toUnredirectedSourceFile,
|
|
77
77
|
translateExpression,
|
|
78
78
|
translateType
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-TZNP5L2W.js";
|
|
80
80
|
import {
|
|
81
81
|
getDecorators,
|
|
82
82
|
getModifiers,
|
|
83
83
|
updateImportDeclaration
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-UUIUKASM.js";
|
|
85
85
|
import {
|
|
86
86
|
LogicalFileSystem,
|
|
87
87
|
absoluteFrom,
|
|
@@ -92,16 +92,16 @@ import {
|
|
|
92
92
|
getSourceFileOrError,
|
|
93
93
|
join,
|
|
94
94
|
resolve
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-NXGWYLNC.js";
|
|
96
96
|
import {
|
|
97
97
|
ActivePerfRecorder,
|
|
98
98
|
DelegatingPerfRecorder,
|
|
99
99
|
PerfCheckpoint,
|
|
100
100
|
PerfEvent,
|
|
101
101
|
PerfPhase
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-XVHC4VAO.js";
|
|
103
103
|
|
|
104
|
-
// bazel-out/
|
|
104
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
105
105
|
var DEFAULT_ERROR_CODE = 100;
|
|
106
106
|
var UNKNOWN_ERROR_CODE = 500;
|
|
107
107
|
var SOURCE = "angular";
|
|
@@ -119,7 +119,7 @@ var EmitFlags;
|
|
|
119
119
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
120
120
|
})(EmitFlags || (EmitFlags = {}));
|
|
121
121
|
|
|
122
|
-
// bazel-out/
|
|
122
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
123
123
|
import ts from "typescript";
|
|
124
124
|
var wrapHostForTest = null;
|
|
125
125
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -129,28 +129,28 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
129
129
|
return tsHost;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
// bazel-out/
|
|
132
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
133
133
|
var OptimizeFor;
|
|
134
134
|
(function(OptimizeFor2) {
|
|
135
135
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
136
136
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
137
137
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
138
138
|
|
|
139
|
-
// bazel-out/
|
|
139
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
140
140
|
var CompletionKind;
|
|
141
141
|
(function(CompletionKind2) {
|
|
142
142
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
143
143
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
144
144
|
})(CompletionKind || (CompletionKind = {}));
|
|
145
145
|
|
|
146
|
-
// bazel-out/
|
|
146
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
147
147
|
var PotentialImportKind;
|
|
148
148
|
(function(PotentialImportKind2) {
|
|
149
149
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
150
150
|
PotentialImportKind2[PotentialImportKind2["Standalone"] = 1] = "Standalone";
|
|
151
151
|
})(PotentialImportKind || (PotentialImportKind = {}));
|
|
152
152
|
|
|
153
|
-
// bazel-out/
|
|
153
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
154
154
|
var SymbolKind;
|
|
155
155
|
(function(SymbolKind2) {
|
|
156
156
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -166,11 +166,11 @@ var SymbolKind;
|
|
|
166
166
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
167
167
|
})(SymbolKind || (SymbolKind = {}));
|
|
168
168
|
|
|
169
|
-
// bazel-out/
|
|
169
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
170
170
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
171
171
|
import ts34 from "typescript";
|
|
172
172
|
|
|
173
|
-
// bazel-out/
|
|
173
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
174
174
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
175
175
|
import * as path from "path";
|
|
176
176
|
function i18nGetExtension(formatName) {
|
|
@@ -221,10 +221,10 @@ function getPathNormalizer(basePath) {
|
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
// bazel-out/
|
|
224
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
225
225
|
import ts2 from "typescript";
|
|
226
226
|
|
|
227
|
-
// bazel-out/
|
|
227
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
228
228
|
function toNumbers(value) {
|
|
229
229
|
const suffixIndex = value.lastIndexOf("-");
|
|
230
230
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -259,7 +259,7 @@ function compareVersions(v1, v2) {
|
|
|
259
259
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
// bazel-out/
|
|
262
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
263
263
|
var MIN_TS_VERSION = "4.8.2";
|
|
264
264
|
var MAX_TS_VERSION = "4.9.0";
|
|
265
265
|
var tsVersion = ts2.version;
|
|
@@ -272,10 +272,10 @@ function verifySupportedTypeScriptVersion() {
|
|
|
272
272
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
// bazel-out/
|
|
275
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
276
276
|
import ts32 from "typescript";
|
|
277
277
|
|
|
278
|
-
// bazel-out/
|
|
278
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
279
279
|
var CycleAnalyzer = class {
|
|
280
280
|
constructor(importGraph) {
|
|
281
281
|
this.importGraph = importGraph;
|
|
@@ -346,7 +346,7 @@ var Cycle = class {
|
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
348
|
|
|
349
|
-
// bazel-out/
|
|
349
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
350
350
|
import ts3 from "typescript";
|
|
351
351
|
var ImportGraph = class {
|
|
352
352
|
constructor(checker, perf) {
|
|
@@ -438,7 +438,7 @@ var Found = class {
|
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
440
|
|
|
441
|
-
// bazel-out/
|
|
441
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
442
442
|
import ts4 from "typescript";
|
|
443
443
|
var FlatIndexGenerator = class {
|
|
444
444
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -463,7 +463,7 @@ export * from '${relativeEntryPoint}';
|
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
465
|
|
|
466
|
-
// bazel-out/
|
|
466
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
467
467
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
468
468
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
469
469
|
let resolvedEntryPoint = null;
|
|
@@ -479,7 +479,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
479
479
|
return resolvedEntryPoint;
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
-
// bazel-out/
|
|
482
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
483
483
|
import ts5 from "typescript";
|
|
484
484
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
485
485
|
const diagnostics = [];
|
|
@@ -559,7 +559,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
|
|
562
|
-
// bazel-out/
|
|
562
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
563
563
|
var ReferenceGraph = class {
|
|
564
564
|
constructor() {
|
|
565
565
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -613,7 +613,7 @@ var ReferenceGraph = class {
|
|
|
613
613
|
}
|
|
614
614
|
};
|
|
615
615
|
|
|
616
|
-
// bazel-out/
|
|
616
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
617
617
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
618
618
|
var UpdateMode;
|
|
619
619
|
(function(UpdateMode2) {
|
|
@@ -621,13 +621,13 @@ var UpdateMode;
|
|
|
621
621
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
622
622
|
})(UpdateMode || (UpdateMode = {}));
|
|
623
623
|
|
|
624
|
-
// bazel-out/
|
|
624
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
625
625
|
import ts9 from "typescript";
|
|
626
626
|
|
|
627
|
-
// bazel-out/
|
|
627
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
628
628
|
import ts6 from "typescript";
|
|
629
629
|
|
|
630
|
-
// bazel-out/
|
|
630
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
631
631
|
var NgExtension = Symbol("NgExtension");
|
|
632
632
|
function isExtended(sf) {
|
|
633
633
|
return sf[NgExtension] !== void 0;
|
|
@@ -687,7 +687,7 @@ function retagTsFile(sf) {
|
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
|
|
690
|
-
// bazel-out/
|
|
690
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
691
691
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
692
692
|
function makeShimFileName(fileName, suffix) {
|
|
693
693
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
@@ -702,7 +702,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
|
|
|
702
702
|
return moduleName;
|
|
703
703
|
}
|
|
704
704
|
|
|
705
|
-
// bazel-out/
|
|
705
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
706
706
|
var ShimAdapter = class {
|
|
707
707
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
708
708
|
this.delegate = delegate;
|
|
@@ -797,7 +797,7 @@ var ShimAdapter = class {
|
|
|
797
797
|
}
|
|
798
798
|
};
|
|
799
799
|
|
|
800
|
-
// bazel-out/
|
|
800
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
|
|
801
801
|
import ts7 from "typescript";
|
|
802
802
|
var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
|
|
803
803
|
var STRIP_NG_FACTORY = /(.*)NgFactory$/;
|
|
@@ -935,17 +935,29 @@ function getFileoverviewComment(sourceFile) {
|
|
|
935
935
|
}
|
|
936
936
|
function wrapInNoSideEffects(expr) {
|
|
937
937
|
const noSideEffects = ts7.factory.createPropertyAccessExpression(ts7.factory.createIdentifier("i0"), "\u0275noSideEffects");
|
|
938
|
-
return ts7.factory.createCallExpression(
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
938
|
+
return ts7.factory.createCallExpression(
|
|
939
|
+
noSideEffects,
|
|
940
|
+
[],
|
|
941
|
+
[
|
|
942
|
+
ts7.factory.createFunctionExpression(
|
|
943
|
+
[],
|
|
944
|
+
void 0,
|
|
945
|
+
void 0,
|
|
946
|
+
[],
|
|
947
|
+
[],
|
|
948
|
+
void 0,
|
|
949
|
+
ts7.factory.createBlock([
|
|
950
|
+
ts7.factory.createReturnStatement(expr)
|
|
951
|
+
])
|
|
952
|
+
)
|
|
953
|
+
]
|
|
954
|
+
);
|
|
943
955
|
}
|
|
944
956
|
function updateInitializers(stmt, update) {
|
|
945
957
|
return ts7.factory.updateVariableStatement(stmt, getModifiers(stmt), ts7.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => ts7.factory.updateVariableDeclaration(decl, decl.name, decl.exclamationToken, decl.type, update(decl.initializer)))));
|
|
946
958
|
}
|
|
947
959
|
|
|
948
|
-
// bazel-out/
|
|
960
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
949
961
|
var ShimReferenceTagger = class {
|
|
950
962
|
constructor(shimExtensions) {
|
|
951
963
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -979,7 +991,7 @@ var ShimReferenceTagger = class {
|
|
|
979
991
|
}
|
|
980
992
|
};
|
|
981
993
|
|
|
982
|
-
// bazel-out/
|
|
994
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
|
|
983
995
|
import ts8 from "typescript";
|
|
984
996
|
var SummaryGenerator = class {
|
|
985
997
|
constructor() {
|
|
@@ -1020,7 +1032,7 @@ function isExported2(decl) {
|
|
|
1020
1032
|
return modifiers !== void 0 && modifiers.some((mod) => mod.kind == ts8.SyntaxKind.ExportKeyword) || false;
|
|
1021
1033
|
}
|
|
1022
1034
|
|
|
1023
|
-
// bazel-out/
|
|
1035
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1024
1036
|
var DelegatingCompilerHost = class {
|
|
1025
1037
|
constructor(delegate) {
|
|
1026
1038
|
this.delegate = delegate;
|
|
@@ -1131,7 +1143,7 @@ var TsCreateProgramDriver = class {
|
|
|
1131
1143
|
}
|
|
1132
1144
|
};
|
|
1133
1145
|
|
|
1134
|
-
// bazel-out/
|
|
1146
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1135
1147
|
var FileDependencyGraph = class {
|
|
1136
1148
|
constructor() {
|
|
1137
1149
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1198,7 +1210,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1198
1210
|
return false;
|
|
1199
1211
|
}
|
|
1200
1212
|
|
|
1201
|
-
// bazel-out/
|
|
1213
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1202
1214
|
var IncrementalStateKind;
|
|
1203
1215
|
(function(IncrementalStateKind2) {
|
|
1204
1216
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1206,7 +1218,7 @@ var IncrementalStateKind;
|
|
|
1206
1218
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1207
1219
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1208
1220
|
|
|
1209
|
-
// bazel-out/
|
|
1221
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1210
1222
|
var PhaseKind;
|
|
1211
1223
|
(function(PhaseKind2) {
|
|
1212
1224
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1407,7 +1419,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1407
1419
|
}
|
|
1408
1420
|
}
|
|
1409
1421
|
|
|
1410
|
-
// bazel-out/
|
|
1422
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1411
1423
|
var TrackedIncrementalBuildStrategy = class {
|
|
1412
1424
|
constructor() {
|
|
1413
1425
|
this.state = null;
|
|
@@ -1443,7 +1455,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1443
1455
|
};
|
|
1444
1456
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1445
1457
|
|
|
1446
|
-
// bazel-out/
|
|
1458
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1447
1459
|
var IdentifierKind;
|
|
1448
1460
|
(function(IdentifierKind2) {
|
|
1449
1461
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1461,7 +1473,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1461
1473
|
}
|
|
1462
1474
|
};
|
|
1463
1475
|
|
|
1464
|
-
// bazel-out/
|
|
1476
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1465
1477
|
var IndexingContext = class {
|
|
1466
1478
|
constructor() {
|
|
1467
1479
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1471,10 +1483,10 @@ var IndexingContext = class {
|
|
|
1471
1483
|
}
|
|
1472
1484
|
};
|
|
1473
1485
|
|
|
1474
|
-
// bazel-out/
|
|
1486
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1475
1487
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1476
1488
|
|
|
1477
|
-
// bazel-out/
|
|
1489
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1478
1490
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1479
1491
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1480
1492
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -1711,7 +1723,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
1711
1723
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
1712
1724
|
}
|
|
1713
1725
|
|
|
1714
|
-
// bazel-out/
|
|
1726
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1715
1727
|
function generateAnalysis(context) {
|
|
1716
1728
|
const analysis = /* @__PURE__ */ new Map();
|
|
1717
1729
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -1747,7 +1759,7 @@ function generateAnalysis(context) {
|
|
|
1747
1759
|
return analysis;
|
|
1748
1760
|
}
|
|
1749
1761
|
|
|
1750
|
-
// bazel-out/
|
|
1762
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
1751
1763
|
import ts10 from "typescript";
|
|
1752
1764
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
1753
1765
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -1893,7 +1905,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
1893
1905
|
};
|
|
1894
1906
|
}
|
|
1895
1907
|
|
|
1896
|
-
// bazel-out/
|
|
1908
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
1897
1909
|
var StandaloneComponentScopeReader = class {
|
|
1898
1910
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
1899
1911
|
this.metaReader = metaReader;
|
|
@@ -1971,10 +1983,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
1971
1983
|
}
|
|
1972
1984
|
};
|
|
1973
1985
|
|
|
1974
|
-
// bazel-out/
|
|
1975
|
-
import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2 } from "@angular/compiler";
|
|
1986
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
1987
|
+
import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr } from "@angular/compiler";
|
|
1976
1988
|
|
|
1977
|
-
// bazel-out/
|
|
1989
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
1978
1990
|
import ts11 from "typescript";
|
|
1979
1991
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
1980
1992
|
var _a;
|
|
@@ -2081,7 +2093,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
2081
2093
|
return ts11.createSourceFile(fileName, template, ts11.ScriptTarget.Latest, false, ts11.ScriptKind.JSX);
|
|
2082
2094
|
}
|
|
2083
2095
|
|
|
2084
|
-
// bazel-out/
|
|
2096
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
2085
2097
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
2086
2098
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
2087
2099
|
function getTemplateId(clazz) {
|
|
@@ -2098,11 +2110,11 @@ function allocateTemplateId(sf) {
|
|
|
2098
2110
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
2099
2111
|
}
|
|
2100
2112
|
|
|
2101
|
-
// bazel-out/
|
|
2113
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2102
2114
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2103
2115
|
import ts13 from "typescript";
|
|
2104
2116
|
|
|
2105
|
-
// bazel-out/
|
|
2117
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
2106
2118
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
2107
2119
|
import ts12 from "typescript";
|
|
2108
2120
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -2131,11 +2143,21 @@ var ExpressionIdentifier;
|
|
|
2131
2143
|
ExpressionIdentifier2["EVENT_PARAMETER"] = "EP";
|
|
2132
2144
|
})(ExpressionIdentifier || (ExpressionIdentifier = {}));
|
|
2133
2145
|
function addExpressionIdentifier(node, identifier) {
|
|
2134
|
-
ts12.addSyntheticTrailingComment(
|
|
2146
|
+
ts12.addSyntheticTrailingComment(
|
|
2147
|
+
node,
|
|
2148
|
+
ts12.SyntaxKind.MultiLineCommentTrivia,
|
|
2149
|
+
`${CommentTriviaType.EXPRESSION_TYPE_IDENTIFIER}:${identifier}`,
|
|
2150
|
+
false
|
|
2151
|
+
);
|
|
2135
2152
|
}
|
|
2136
2153
|
var IGNORE_FOR_DIAGNOSTICS_MARKER = `${CommentTriviaType.DIAGNOSTIC}:ignore`;
|
|
2137
2154
|
function markIgnoreDiagnostics(node) {
|
|
2138
|
-
ts12.addSyntheticTrailingComment(
|
|
2155
|
+
ts12.addSyntheticTrailingComment(
|
|
2156
|
+
node,
|
|
2157
|
+
ts12.SyntaxKind.MultiLineCommentTrivia,
|
|
2158
|
+
IGNORE_FOR_DIAGNOSTICS_MARKER,
|
|
2159
|
+
false
|
|
2160
|
+
);
|
|
2139
2161
|
}
|
|
2140
2162
|
function hasIgnoreForDiagnosticsMarker(node, sourceFile) {
|
|
2141
2163
|
return ts12.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
|
|
@@ -2222,7 +2244,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
2222
2244
|
}) || false;
|
|
2223
2245
|
}
|
|
2224
2246
|
|
|
2225
|
-
// bazel-out/
|
|
2247
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2226
2248
|
var CompletionEngine = class {
|
|
2227
2249
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
2228
2250
|
this.tcb = tcb;
|
|
@@ -2379,10 +2401,10 @@ var CompletionEngine = class {
|
|
|
2379
2401
|
}
|
|
2380
2402
|
};
|
|
2381
2403
|
|
|
2382
|
-
// bazel-out/
|
|
2404
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
2383
2405
|
import ts27 from "typescript";
|
|
2384
2406
|
|
|
2385
|
-
// bazel-out/
|
|
2407
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
2386
2408
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
2387
2409
|
import ts14 from "typescript";
|
|
2388
2410
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -2435,11 +2457,11 @@ var RegistryDomSchemaChecker = class {
|
|
|
2435
2457
|
}
|
|
2436
2458
|
};
|
|
2437
2459
|
|
|
2438
|
-
// bazel-out/
|
|
2460
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2439
2461
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2440
2462
|
import ts20 from "typescript";
|
|
2441
2463
|
|
|
2442
|
-
// bazel-out/
|
|
2464
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
2443
2465
|
import ts15 from "typescript";
|
|
2444
2466
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
2445
2467
|
ts15.SyntaxKind.ParenthesizedExpression,
|
|
@@ -2464,38 +2486,65 @@ function tsCastToAny(expr) {
|
|
|
2464
2486
|
return ts15.factory.createParenthesizedExpression(ts15.factory.createAsExpression(expr, ts15.factory.createKeywordTypeNode(ts15.SyntaxKind.AnyKeyword)));
|
|
2465
2487
|
}
|
|
2466
2488
|
function tsCreateElement(tagName) {
|
|
2467
|
-
const createElement = ts15.factory.createPropertyAccessExpression(
|
|
2468
|
-
|
|
2489
|
+
const createElement = ts15.factory.createPropertyAccessExpression(
|
|
2490
|
+
ts15.factory.createIdentifier("document"),
|
|
2491
|
+
"createElement"
|
|
2492
|
+
);
|
|
2493
|
+
return ts15.factory.createCallExpression(
|
|
2494
|
+
createElement,
|
|
2495
|
+
void 0,
|
|
2496
|
+
[ts15.factory.createStringLiteral(tagName)]
|
|
2497
|
+
);
|
|
2469
2498
|
}
|
|
2470
2499
|
function tsDeclareVariable(id, type) {
|
|
2471
|
-
const decl = ts15.factory.createVariableDeclaration(
|
|
2472
|
-
|
|
2500
|
+
const decl = ts15.factory.createVariableDeclaration(
|
|
2501
|
+
id,
|
|
2502
|
+
void 0,
|
|
2503
|
+
type,
|
|
2504
|
+
ts15.factory.createNonNullExpression(ts15.factory.createNull())
|
|
2505
|
+
);
|
|
2506
|
+
return ts15.factory.createVariableStatement(
|
|
2507
|
+
void 0,
|
|
2508
|
+
[decl]
|
|
2509
|
+
);
|
|
2473
2510
|
}
|
|
2474
2511
|
function tsCreateTypeQueryForCoercedInput(typeName, coercedInputName) {
|
|
2475
2512
|
return ts15.factory.createTypeQueryNode(ts15.factory.createQualifiedName(typeName, `ngAcceptInputType_${coercedInputName}`));
|
|
2476
2513
|
}
|
|
2477
2514
|
function tsCreateVariable(id, initializer) {
|
|
2478
|
-
const decl = ts15.factory.createVariableDeclaration(
|
|
2479
|
-
|
|
2515
|
+
const decl = ts15.factory.createVariableDeclaration(
|
|
2516
|
+
id,
|
|
2517
|
+
void 0,
|
|
2518
|
+
void 0,
|
|
2519
|
+
initializer
|
|
2520
|
+
);
|
|
2521
|
+
return ts15.factory.createVariableStatement(
|
|
2522
|
+
void 0,
|
|
2523
|
+
[decl]
|
|
2524
|
+
);
|
|
2480
2525
|
}
|
|
2481
2526
|
function tsCallMethod(receiver, methodName, args = []) {
|
|
2482
2527
|
const methodAccess = ts15.factory.createPropertyAccessExpression(receiver, methodName);
|
|
2483
|
-
return ts15.factory.createCallExpression(
|
|
2528
|
+
return ts15.factory.createCallExpression(
|
|
2529
|
+
methodAccess,
|
|
2530
|
+
void 0,
|
|
2531
|
+
args
|
|
2532
|
+
);
|
|
2484
2533
|
}
|
|
2485
2534
|
function isAccessExpression(node) {
|
|
2486
2535
|
return ts15.isPropertyAccessExpression(node) || ts15.isElementAccessExpression(node);
|
|
2487
2536
|
}
|
|
2488
2537
|
|
|
2489
|
-
// bazel-out/
|
|
2538
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2490
2539
|
import ts19 from "typescript";
|
|
2491
2540
|
|
|
2492
|
-
// bazel-out/
|
|
2541
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2493
2542
|
import ts18 from "typescript";
|
|
2494
2543
|
|
|
2495
|
-
// bazel-out/
|
|
2544
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2496
2545
|
import ts17 from "typescript";
|
|
2497
2546
|
|
|
2498
|
-
// bazel-out/
|
|
2547
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
2499
2548
|
import ts16 from "typescript";
|
|
2500
2549
|
var INELIGIBLE = {};
|
|
2501
2550
|
function canEmitType(type, canEmit) {
|
|
@@ -2570,7 +2619,7 @@ var TypeEmitter = class {
|
|
|
2570
2619
|
}
|
|
2571
2620
|
};
|
|
2572
2621
|
|
|
2573
|
-
// bazel-out/
|
|
2622
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2574
2623
|
var TypeParameterEmitter = class {
|
|
2575
2624
|
constructor(typeParameters, reflector) {
|
|
2576
2625
|
this.typeParameters = typeParameters;
|
|
@@ -2647,7 +2696,7 @@ var TypeParameterEmitter = class {
|
|
|
2647
2696
|
}
|
|
2648
2697
|
};
|
|
2649
2698
|
|
|
2650
|
-
// bazel-out/
|
|
2699
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2651
2700
|
var TcbInliningRequirement;
|
|
2652
2701
|
(function(TcbInliningRequirement2) {
|
|
2653
2702
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -2727,19 +2776,40 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
2727
2776
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
2728
2777
|
}
|
|
2729
2778
|
|
|
2730
|
-
// bazel-out/
|
|
2779
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2731
2780
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
2732
2781
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
2733
2782
|
const rawType = ts19.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
2734
2783
|
const initParam = constructTypeCtorParameter(node, meta, rawType);
|
|
2735
2784
|
const typeParameters = typeParametersWithDefaultTypes(typeParams);
|
|
2736
2785
|
if (meta.body) {
|
|
2737
|
-
const fnType = ts19.factory.createFunctionTypeNode(
|
|
2738
|
-
|
|
2786
|
+
const fnType = ts19.factory.createFunctionTypeNode(
|
|
2787
|
+
typeParameters,
|
|
2788
|
+
[initParam],
|
|
2789
|
+
rawType
|
|
2790
|
+
);
|
|
2791
|
+
const decl = ts19.factory.createVariableDeclaration(
|
|
2792
|
+
meta.fnName,
|
|
2793
|
+
void 0,
|
|
2794
|
+
fnType,
|
|
2795
|
+
ts19.factory.createNonNullExpression(ts19.factory.createNull())
|
|
2796
|
+
);
|
|
2739
2797
|
const declList = ts19.factory.createVariableDeclarationList([decl], ts19.NodeFlags.Const);
|
|
2740
|
-
return ts19.factory.createVariableStatement(
|
|
2798
|
+
return ts19.factory.createVariableStatement(
|
|
2799
|
+
void 0,
|
|
2800
|
+
declList
|
|
2801
|
+
);
|
|
2741
2802
|
} else {
|
|
2742
|
-
return ts19.factory.createFunctionDeclaration(
|
|
2803
|
+
return ts19.factory.createFunctionDeclaration(
|
|
2804
|
+
void 0,
|
|
2805
|
+
[ts19.factory.createModifier(ts19.SyntaxKind.DeclareKeyword)],
|
|
2806
|
+
void 0,
|
|
2807
|
+
meta.fnName,
|
|
2808
|
+
typeParameters,
|
|
2809
|
+
[initParam],
|
|
2810
|
+
rawType,
|
|
2811
|
+
void 0
|
|
2812
|
+
);
|
|
2743
2813
|
}
|
|
2744
2814
|
}
|
|
2745
2815
|
function generateInlineTypeCtor(node, meta) {
|
|
@@ -2752,7 +2822,17 @@ function generateInlineTypeCtor(node, meta) {
|
|
|
2752
2822
|
ts19.factory.createReturnStatement(ts19.factory.createNonNullExpression(ts19.factory.createNull()))
|
|
2753
2823
|
]);
|
|
2754
2824
|
}
|
|
2755
|
-
return ts19.factory.createMethodDeclaration(
|
|
2825
|
+
return ts19.factory.createMethodDeclaration(
|
|
2826
|
+
void 0,
|
|
2827
|
+
[ts19.factory.createModifier(ts19.SyntaxKind.StaticKeyword)],
|
|
2828
|
+
void 0,
|
|
2829
|
+
meta.fnName,
|
|
2830
|
+
void 0,
|
|
2831
|
+
typeParametersWithDefaultTypes(node.typeParameters),
|
|
2832
|
+
[initParam],
|
|
2833
|
+
rawType,
|
|
2834
|
+
body
|
|
2835
|
+
);
|
|
2756
2836
|
}
|
|
2757
2837
|
function constructTypeCtorParameter(node, meta, rawType) {
|
|
2758
2838
|
let initType = null;
|
|
@@ -2763,7 +2843,12 @@ function constructTypeCtorParameter(node, meta, rawType) {
|
|
|
2763
2843
|
if (!meta.coercedInputFields.has(key)) {
|
|
2764
2844
|
plainKeys.push(ts19.factory.createLiteralTypeNode(ts19.factory.createStringLiteral(key)));
|
|
2765
2845
|
} else {
|
|
2766
|
-
coercedKeys.push(ts19.factory.createPropertySignature(
|
|
2846
|
+
coercedKeys.push(ts19.factory.createPropertySignature(
|
|
2847
|
+
void 0,
|
|
2848
|
+
key,
|
|
2849
|
+
void 0,
|
|
2850
|
+
tsCreateTypeQueryForCoercedInput(rawType.typeName, key)
|
|
2851
|
+
));
|
|
2767
2852
|
}
|
|
2768
2853
|
}
|
|
2769
2854
|
if (plainKeys.length > 0) {
|
|
@@ -2777,7 +2862,15 @@ function constructTypeCtorParameter(node, meta, rawType) {
|
|
|
2777
2862
|
if (initType === null) {
|
|
2778
2863
|
initType = ts19.factory.createTypeLiteralNode([]);
|
|
2779
2864
|
}
|
|
2780
|
-
return ts19.factory.createParameterDeclaration(
|
|
2865
|
+
return ts19.factory.createParameterDeclaration(
|
|
2866
|
+
void 0,
|
|
2867
|
+
void 0,
|
|
2868
|
+
void 0,
|
|
2869
|
+
"init",
|
|
2870
|
+
void 0,
|
|
2871
|
+
initType,
|
|
2872
|
+
void 0
|
|
2873
|
+
);
|
|
2781
2874
|
}
|
|
2782
2875
|
function generateGenericArgs(params) {
|
|
2783
2876
|
return params.map((param) => ts19.factory.createTypeReferenceNode(param.name, void 0));
|
|
@@ -2798,7 +2891,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
2798
2891
|
});
|
|
2799
2892
|
}
|
|
2800
2893
|
|
|
2801
|
-
// bazel-out/
|
|
2894
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2802
2895
|
var Environment = class {
|
|
2803
2896
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
2804
2897
|
this.config = config;
|
|
@@ -2890,7 +2983,7 @@ var Environment = class {
|
|
|
2890
2983
|
}
|
|
2891
2984
|
};
|
|
2892
2985
|
|
|
2893
|
-
// bazel-out/
|
|
2986
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
2894
2987
|
import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
|
|
2895
2988
|
import ts21 from "typescript";
|
|
2896
2989
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
@@ -3023,7 +3116,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
3023
3116
|
};
|
|
3024
3117
|
}
|
|
3025
3118
|
|
|
3026
|
-
// bazel-out/
|
|
3119
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
3027
3120
|
import ts22 from "typescript";
|
|
3028
3121
|
var TypeCheckShimGenerator = class {
|
|
3029
3122
|
constructor() {
|
|
@@ -3041,11 +3134,11 @@ var TypeCheckShimGenerator = class {
|
|
|
3041
3134
|
}
|
|
3042
3135
|
};
|
|
3043
3136
|
|
|
3044
|
-
// bazel-out/
|
|
3137
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3045
3138
|
import { BindingPipe, Call as Call2, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, SafeCall, SafePropertyRead as SafePropertyRead3, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstElement as TmplAstElement3, TmplAstIcu, TmplAstReference as TmplAstReference3, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
|
|
3046
3139
|
import ts25 from "typescript";
|
|
3047
3140
|
|
|
3048
|
-
// bazel-out/
|
|
3141
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
3049
3142
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
3050
3143
|
import ts23 from "typescript";
|
|
3051
3144
|
function wrapForDiagnostics(expr) {
|
|
@@ -3091,7 +3184,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
3091
3184
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
3092
3185
|
}
|
|
3093
3186
|
|
|
3094
|
-
// bazel-out/
|
|
3187
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
3095
3188
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
3096
3189
|
import ts24 from "typescript";
|
|
3097
3190
|
var NULL_AS_ANY = ts24.factory.createAsExpression(ts24.factory.createNull(), ts24.factory.createKeywordTypeNode(ts24.SyntaxKind.AnyKeyword));
|
|
@@ -3421,7 +3514,7 @@ var VeSafeLhsInferenceBugDetector = class {
|
|
|
3421
3514
|
};
|
|
3422
3515
|
VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
|
|
3423
3516
|
|
|
3424
|
-
// bazel-out/
|
|
3517
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
3425
3518
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
3426
3519
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
3427
3520
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -3445,7 +3538,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
3445
3538
|
}
|
|
3446
3539
|
};
|
|
3447
3540
|
|
|
3448
|
-
// bazel-out/
|
|
3541
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3449
3542
|
var TcbGenericContextBehavior;
|
|
3450
3543
|
(function(TcbGenericContextBehavior2) {
|
|
3451
3544
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -3486,7 +3579,16 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
|
|
|
3486
3579
|
...scopeStatements
|
|
3487
3580
|
]);
|
|
3488
3581
|
const body = ts25.factory.createBlock([ts25.factory.createIfStatement(ts25.factory.createTrue(), innerBody, void 0)]);
|
|
3489
|
-
const fnDecl = ts25.factory.createFunctionDeclaration(
|
|
3582
|
+
const fnDecl = ts25.factory.createFunctionDeclaration(
|
|
3583
|
+
void 0,
|
|
3584
|
+
void 0,
|
|
3585
|
+
void 0,
|
|
3586
|
+
name,
|
|
3587
|
+
env.config.useContextGenericType ? typeParameters : void 0,
|
|
3588
|
+
paramList,
|
|
3589
|
+
void 0,
|
|
3590
|
+
body
|
|
3591
|
+
);
|
|
3490
3592
|
addTemplateId(fnDecl, meta.id);
|
|
3491
3593
|
return fnDecl;
|
|
3492
3594
|
}
|
|
@@ -3527,7 +3629,10 @@ var TcbVariableOp = class extends TcbOp {
|
|
|
3527
3629
|
execute() {
|
|
3528
3630
|
const ctx = this.scope.resolve(this.template);
|
|
3529
3631
|
const id = this.tcb.allocateId();
|
|
3530
|
-
const initializer = ts25.factory.createPropertyAccessExpression(
|
|
3632
|
+
const initializer = ts25.factory.createPropertyAccessExpression(
|
|
3633
|
+
ctx,
|
|
3634
|
+
this.variable.value || "$implicit"
|
|
3635
|
+
);
|
|
3531
3636
|
addParseSpanInfo(id, this.variable.keySpan);
|
|
3532
3637
|
let variable;
|
|
3533
3638
|
if (this.variable.valueSpan !== void 0) {
|
|
@@ -4007,7 +4112,11 @@ var TcbUnclaimedOutputsOp = class extends TcbOp {
|
|
|
4007
4112
|
}
|
|
4008
4113
|
const propertyAccess = ts25.factory.createPropertyAccessExpression(elId, "addEventListener");
|
|
4009
4114
|
addParseSpanInfo(propertyAccess, output.keySpan);
|
|
4010
|
-
const call = ts25.factory.createCallExpression(
|
|
4115
|
+
const call = ts25.factory.createCallExpression(
|
|
4116
|
+
propertyAccess,
|
|
4117
|
+
void 0,
|
|
4118
|
+
[ts25.factory.createStringLiteral(output.name), handler]
|
|
4119
|
+
);
|
|
4011
4120
|
addParseSpanInfo(call, output.sourceSpan);
|
|
4012
4121
|
this.scope.addStatement(ts25.factory.createExpressionStatement(call));
|
|
4013
4122
|
} else {
|
|
@@ -4318,7 +4427,15 @@ var Scope = class {
|
|
|
4318
4427
|
};
|
|
4319
4428
|
function tcbThisParam(node, name, typeArguments) {
|
|
4320
4429
|
const type = ts25.factory.createTypeReferenceNode(name, typeArguments);
|
|
4321
|
-
return ts25.factory.createParameterDeclaration(
|
|
4430
|
+
return ts25.factory.createParameterDeclaration(
|
|
4431
|
+
void 0,
|
|
4432
|
+
void 0,
|
|
4433
|
+
void 0,
|
|
4434
|
+
"this",
|
|
4435
|
+
void 0,
|
|
4436
|
+
type,
|
|
4437
|
+
void 0
|
|
4438
|
+
);
|
|
4322
4439
|
}
|
|
4323
4440
|
function tcbExpression(ast, tcb, scope) {
|
|
4324
4441
|
const translator = new TcbExpressionTranslator(tcb, scope);
|
|
@@ -4362,7 +4479,11 @@ var TcbExpressionTranslator = class {
|
|
|
4362
4479
|
if (!this.tcb.env.config.checkTypeOfPipes) {
|
|
4363
4480
|
methodAccess = ts25.factory.createAsExpression(methodAccess, ts25.factory.createKeywordTypeNode(ts25.SyntaxKind.AnyKeyword));
|
|
4364
4481
|
}
|
|
4365
|
-
const result = ts25.factory.createCallExpression(
|
|
4482
|
+
const result = ts25.factory.createCallExpression(
|
|
4483
|
+
methodAccess,
|
|
4484
|
+
void 0,
|
|
4485
|
+
[expr, ...args]
|
|
4486
|
+
);
|
|
4366
4487
|
addParseSpanInfo(result, ast.sourceSpan);
|
|
4367
4488
|
return result;
|
|
4368
4489
|
} else if ((ast instanceof Call2 || ast instanceof SafeCall) && (ast.receiver instanceof PropertyRead4 || ast.receiver instanceof SafePropertyRead3)) {
|
|
@@ -4410,7 +4531,11 @@ function tcbCallTypeCtor(dir, tcb, inputs) {
|
|
|
4410
4531
|
return ts25.factory.createPropertyAssignment(propertyName, NULL_AS_ANY);
|
|
4411
4532
|
}
|
|
4412
4533
|
});
|
|
4413
|
-
return ts25.factory.createCallExpression(
|
|
4534
|
+
return ts25.factory.createCallExpression(
|
|
4535
|
+
typeCtor,
|
|
4536
|
+
void 0,
|
|
4537
|
+
[ts25.factory.createObjectLiteralExpression(members)]
|
|
4538
|
+
);
|
|
4414
4539
|
}
|
|
4415
4540
|
function getBoundInputs(directive, node, tcb) {
|
|
4416
4541
|
const boundInputs = [];
|
|
@@ -4468,9 +4593,23 @@ function tcbCreateEventHandler(event, tcb, scope, eventType) {
|
|
|
4468
4593
|
if (guards !== null) {
|
|
4469
4594
|
body = ts25.factory.createIfStatement(guards, body);
|
|
4470
4595
|
}
|
|
4471
|
-
const eventParam = ts25.factory.createParameterDeclaration(
|
|
4596
|
+
const eventParam = ts25.factory.createParameterDeclaration(
|
|
4597
|
+
void 0,
|
|
4598
|
+
void 0,
|
|
4599
|
+
void 0,
|
|
4600
|
+
EVENT_PARAMETER,
|
|
4601
|
+
void 0,
|
|
4602
|
+
eventParamType
|
|
4603
|
+
);
|
|
4472
4604
|
addExpressionIdentifier(eventParam, ExpressionIdentifier.EVENT_PARAMETER);
|
|
4473
|
-
return ts25.factory.createArrowFunction(
|
|
4605
|
+
return ts25.factory.createArrowFunction(
|
|
4606
|
+
void 0,
|
|
4607
|
+
void 0,
|
|
4608
|
+
[eventParam],
|
|
4609
|
+
ts25.factory.createKeywordTypeNode(ts25.SyntaxKind.AnyKeyword),
|
|
4610
|
+
void 0,
|
|
4611
|
+
ts25.factory.createBlock([body])
|
|
4612
|
+
);
|
|
4474
4613
|
}
|
|
4475
4614
|
function tcbEventHandlerExpression(ast, tcb, scope) {
|
|
4476
4615
|
const translator = new TcbEventHandlerTranslator(tcb, scope);
|
|
@@ -4506,7 +4645,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
4506
4645
|
}
|
|
4507
4646
|
};
|
|
4508
4647
|
|
|
4509
|
-
// bazel-out/
|
|
4648
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
4510
4649
|
import ts26 from "typescript";
|
|
4511
4650
|
var TypeCheckFile = class extends Environment {
|
|
4512
4651
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -4542,7 +4681,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
4542
4681
|
}
|
|
4543
4682
|
};
|
|
4544
4683
|
|
|
4545
|
-
// bazel-out/
|
|
4684
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
4546
4685
|
var InliningMode;
|
|
4547
4686
|
(function(InliningMode2) {
|
|
4548
4687
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -4780,10 +4919,10 @@ function splitStringAtPoints(str, points) {
|
|
|
4780
4919
|
return splits;
|
|
4781
4920
|
}
|
|
4782
4921
|
|
|
4783
|
-
// bazel-out/
|
|
4922
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4784
4923
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
4785
4924
|
|
|
4786
|
-
// bazel-out/
|
|
4925
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
4787
4926
|
var LF_CHAR = 10;
|
|
4788
4927
|
var CR_CHAR = 13;
|
|
4789
4928
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -4824,7 +4963,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
4824
4963
|
return low - 1;
|
|
4825
4964
|
}
|
|
4826
4965
|
|
|
4827
|
-
// bazel-out/
|
|
4966
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4828
4967
|
var TemplateSource = class {
|
|
4829
4968
|
constructor(mapping, file) {
|
|
4830
4969
|
this.mapping = mapping;
|
|
@@ -4875,7 +5014,7 @@ var TemplateSourceManager = class {
|
|
|
4875
5014
|
}
|
|
4876
5015
|
};
|
|
4877
5016
|
|
|
4878
|
-
// bazel-out/
|
|
5017
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
4879
5018
|
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";
|
|
4880
5019
|
import ts28 from "typescript";
|
|
4881
5020
|
var SymbolBuilder = class {
|
|
@@ -4943,35 +5082,63 @@ var SymbolBuilder = class {
|
|
|
4943
5082
|
const tcbSourceFile = this.typeCheckBlock.getSourceFile();
|
|
4944
5083
|
const isDirectiveDeclaration = (node) => (ts28.isTypeNode(node) || ts28.isIdentifier(node)) && ts28.isVariableDeclaration(node.parent) && hasExpressionIdentifier(tcbSourceFile, node, ExpressionIdentifier.DIRECTIVE);
|
|
4945
5084
|
const nodes = findAllMatchingNodes(this.typeCheckBlock, { withSpan: elementSourceSpan, filter: isDirectiveDeclaration });
|
|
4946
|
-
|
|
4947
|
-
|
|
5085
|
+
const symbols = [];
|
|
5086
|
+
for (const node of nodes) {
|
|
4948
5087
|
const symbol = this.getSymbolOfTsNode(node.parent);
|
|
4949
5088
|
if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !ts28.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
|
|
4950
|
-
|
|
5089
|
+
continue;
|
|
4951
5090
|
}
|
|
4952
5091
|
const meta = this.getDirectiveMeta(element, symbol.tsSymbol.valueDeclaration);
|
|
4953
|
-
if (meta
|
|
4954
|
-
|
|
5092
|
+
if (meta !== null && meta.selector !== null) {
|
|
5093
|
+
const ref = new Reference(symbol.tsSymbol.valueDeclaration);
|
|
5094
|
+
if (meta.hostDirectives !== null) {
|
|
5095
|
+
this.addHostDirectiveSymbols(element, meta.hostDirectives, symbols);
|
|
5096
|
+
}
|
|
5097
|
+
const directiveSymbol = {
|
|
5098
|
+
...symbol,
|
|
5099
|
+
ref,
|
|
5100
|
+
tsSymbol: symbol.tsSymbol,
|
|
5101
|
+
selector: meta.selector,
|
|
5102
|
+
isComponent: meta.isComponent,
|
|
5103
|
+
ngModule: this.getDirectiveModule(symbol.tsSymbol.valueDeclaration),
|
|
5104
|
+
kind: SymbolKind.Directive,
|
|
5105
|
+
isStructural: meta.isStructural,
|
|
5106
|
+
isInScope: true,
|
|
5107
|
+
isHostDirective: false
|
|
5108
|
+
};
|
|
5109
|
+
symbols.push(directiveSymbol);
|
|
4955
5110
|
}
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
5111
|
+
}
|
|
5112
|
+
return symbols;
|
|
5113
|
+
}
|
|
5114
|
+
addHostDirectiveSymbols(host, hostDirectives, symbols) {
|
|
5115
|
+
for (const current of hostDirectives) {
|
|
5116
|
+
if (!ts28.isClassDeclaration(current.directive.node)) {
|
|
5117
|
+
continue;
|
|
4959
5118
|
}
|
|
4960
|
-
const
|
|
4961
|
-
const
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
5119
|
+
const symbol = this.getSymbolOfTsNode(current.directive.node);
|
|
5120
|
+
const meta = this.getDirectiveMeta(host, current.directive.node);
|
|
5121
|
+
if (meta !== null && symbol !== null && isSymbolWithValueDeclaration(symbol.tsSymbol)) {
|
|
5122
|
+
if (meta.hostDirectives !== null) {
|
|
5123
|
+
this.addHostDirectiveSymbols(host, meta.hostDirectives, symbols);
|
|
5124
|
+
}
|
|
5125
|
+
const directiveSymbol = {
|
|
5126
|
+
...symbol,
|
|
5127
|
+
isHostDirective: true,
|
|
5128
|
+
ref: current.directive,
|
|
5129
|
+
tsSymbol: symbol.tsSymbol,
|
|
5130
|
+
exposedInputs: current.inputs,
|
|
5131
|
+
exposedOutputs: current.outputs,
|
|
5132
|
+
selector: meta.selector || "",
|
|
5133
|
+
isComponent: meta.isComponent,
|
|
5134
|
+
ngModule: this.getDirectiveModule(current.directive.node),
|
|
5135
|
+
kind: SymbolKind.Directive,
|
|
5136
|
+
isStructural: meta.isStructural,
|
|
5137
|
+
isInScope: true
|
|
5138
|
+
};
|
|
5139
|
+
symbols.push(directiveSymbol);
|
|
5140
|
+
}
|
|
5141
|
+
}
|
|
4975
5142
|
}
|
|
4976
5143
|
getDirectiveMeta(host, directiveDeclaration) {
|
|
4977
5144
|
var _a;
|
|
@@ -5125,7 +5292,11 @@ var SymbolBuilder = class {
|
|
|
5125
5292
|
return null;
|
|
5126
5293
|
}
|
|
5127
5294
|
const [declaration] = tsSymbol.declarations;
|
|
5128
|
-
if (!ts28.isVariableDeclaration(declaration) || !hasExpressionIdentifier(
|
|
5295
|
+
if (!ts28.isVariableDeclaration(declaration) || !hasExpressionIdentifier(
|
|
5296
|
+
declaration.getSourceFile(),
|
|
5297
|
+
(_a = declaration.type) != null ? _a : declaration.name,
|
|
5298
|
+
ExpressionIdentifier.DIRECTIVE
|
|
5299
|
+
)) {
|
|
5129
5300
|
return null;
|
|
5130
5301
|
}
|
|
5131
5302
|
const symbol = this.getSymbolOfTsNode(declaration);
|
|
@@ -5144,6 +5315,7 @@ var SymbolBuilder = class {
|
|
|
5144
5315
|
isStructural,
|
|
5145
5316
|
selector,
|
|
5146
5317
|
ngModule,
|
|
5318
|
+
isHostDirective: false,
|
|
5147
5319
|
isInScope: true
|
|
5148
5320
|
};
|
|
5149
5321
|
}
|
|
@@ -5326,7 +5498,7 @@ function sourceSpanEqual(a, b) {
|
|
|
5326
5498
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
5327
5499
|
}
|
|
5328
5500
|
|
|
5329
|
-
// bazel-out/
|
|
5501
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
5330
5502
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
5331
5503
|
var TemplateTypeCheckerImpl = class {
|
|
5332
5504
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -5424,7 +5596,12 @@ var TemplateTypeCheckerImpl = class {
|
|
|
5424
5596
|
if (shimSf === void 0) {
|
|
5425
5597
|
return null;
|
|
5426
5598
|
}
|
|
5427
|
-
return getTemplateMapping(
|
|
5599
|
+
return getTemplateMapping(
|
|
5600
|
+
shimSf,
|
|
5601
|
+
tcbLocation.positionInFile,
|
|
5602
|
+
fileRecord.sourceManager,
|
|
5603
|
+
false
|
|
5604
|
+
);
|
|
5428
5605
|
}
|
|
5429
5606
|
generateAllTypeCheckBlocks() {
|
|
5430
5607
|
this.ensureAllShimsForAllFiles();
|
|
@@ -5681,7 +5858,7 @@ var TemplateTypeCheckerImpl = class {
|
|
|
5681
5858
|
for (const d of inScopeDirectives) {
|
|
5682
5859
|
resultingDirectives.set(d.ref.node, d);
|
|
5683
5860
|
}
|
|
5684
|
-
for (const directiveClass of this.localMetaReader.
|
|
5861
|
+
for (const directiveClass of this.localMetaReader.getKnown(MetaKind.Directive)) {
|
|
5685
5862
|
const directiveMeta = this.metaReader.getDirectiveMetadata(new Reference(directiveClass));
|
|
5686
5863
|
if (directiveMeta === null)
|
|
5687
5864
|
continue;
|
|
@@ -5694,12 +5871,26 @@ var TemplateTypeCheckerImpl = class {
|
|
|
5694
5871
|
}
|
|
5695
5872
|
return Array.from(resultingDirectives.values());
|
|
5696
5873
|
}
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5874
|
+
getPotentialPipes(component) {
|
|
5875
|
+
var _a, _b;
|
|
5876
|
+
const typeChecker = this.programDriver.getProgram().getTypeChecker();
|
|
5877
|
+
const inScopePipes = (_b = (_a = this.getScopeData(component)) == null ? void 0 : _a.pipes) != null ? _b : [];
|
|
5878
|
+
const resultingPipes = /* @__PURE__ */ new Map();
|
|
5879
|
+
for (const p of inScopePipes) {
|
|
5880
|
+
resultingPipes.set(p.ref.node, p);
|
|
5881
|
+
}
|
|
5882
|
+
for (const pipeClass of this.localMetaReader.getKnown(MetaKind.Pipe)) {
|
|
5883
|
+
const pipeMeta = this.metaReader.getPipeMetadata(new Reference(pipeClass));
|
|
5884
|
+
if (pipeMeta === null)
|
|
5885
|
+
continue;
|
|
5886
|
+
if (resultingPipes.has(pipeClass))
|
|
5887
|
+
continue;
|
|
5888
|
+
const withScope = this.scopeDataOfPipeMeta(typeChecker, pipeMeta);
|
|
5889
|
+
if (withScope === null)
|
|
5890
|
+
continue;
|
|
5891
|
+
resultingPipes.set(pipeClass, { ...withScope, isInScope: false });
|
|
5701
5892
|
}
|
|
5702
|
-
return
|
|
5893
|
+
return Array.from(resultingPipes.values());
|
|
5703
5894
|
}
|
|
5704
5895
|
getDirectiveMetadata(dir) {
|
|
5705
5896
|
if (!isNamedClassDeclaration(dir)) {
|
|
@@ -5779,11 +5970,18 @@ var TemplateTypeCheckerImpl = class {
|
|
|
5779
5970
|
if (toImport.ngModule !== null) {
|
|
5780
5971
|
ngModuleRef = (_a = this.metaReader.getNgModuleMetadata(new Reference(toImport.ngModule))) == null ? void 0 : _a.ref;
|
|
5781
5972
|
}
|
|
5973
|
+
const kind = ngModuleRef ? PotentialImportKind.NgModule : PotentialImportKind.Standalone;
|
|
5782
5974
|
const importTarget = ngModuleRef != null ? ngModuleRef : toImport.ref;
|
|
5783
5975
|
const emittedRef = this.refEmitter.emit(importTarget, inContext.getSourceFile());
|
|
5784
5976
|
if (emittedRef.kind === 1)
|
|
5785
5977
|
return [];
|
|
5786
5978
|
const emittedExpression = emittedRef.expression;
|
|
5979
|
+
if (emittedExpression instanceof WrappedNodeExpr) {
|
|
5980
|
+
return [{ kind, symbolName: emittedExpression.node.getText() }];
|
|
5981
|
+
}
|
|
5982
|
+
if (!(emittedExpression instanceof ExternalExpr2)) {
|
|
5983
|
+
return [];
|
|
5984
|
+
}
|
|
5787
5985
|
if (emittedExpression.value.moduleName === null || emittedExpression.value.name === null)
|
|
5788
5986
|
return [];
|
|
5789
5987
|
const preferredImport = {
|
|
@@ -5818,15 +6016,10 @@ var TemplateTypeCheckerImpl = class {
|
|
|
5818
6016
|
continue;
|
|
5819
6017
|
data.directives.push({ ...dirScope, isInScope: true });
|
|
5820
6018
|
} else if (dep.kind === MetaKind.Pipe) {
|
|
5821
|
-
const
|
|
5822
|
-
if (
|
|
6019
|
+
const pipeScope = this.scopeDataOfPipeMeta(typeChecker, dep);
|
|
6020
|
+
if (pipeScope === null)
|
|
5823
6021
|
continue;
|
|
5824
|
-
}
|
|
5825
|
-
data.pipes.push({
|
|
5826
|
-
name: dep.name,
|
|
5827
|
-
tsSymbol,
|
|
5828
|
-
isInScope: true
|
|
5829
|
-
});
|
|
6022
|
+
data.pipes.push({ ...pipeScope, isInScope: true });
|
|
5830
6023
|
}
|
|
5831
6024
|
}
|
|
5832
6025
|
this.scopeCache.set(component, data);
|
|
@@ -5854,6 +6047,17 @@ var TemplateTypeCheckerImpl = class {
|
|
|
5854
6047
|
ngModule
|
|
5855
6048
|
};
|
|
5856
6049
|
}
|
|
6050
|
+
scopeDataOfPipeMeta(typeChecker, dep) {
|
|
6051
|
+
const tsSymbol = typeChecker.getSymbolAtLocation(dep.ref.node.name);
|
|
6052
|
+
if (tsSymbol === void 0) {
|
|
6053
|
+
return null;
|
|
6054
|
+
}
|
|
6055
|
+
return {
|
|
6056
|
+
ref: dep.ref,
|
|
6057
|
+
name: dep.name,
|
|
6058
|
+
tsSymbol
|
|
6059
|
+
};
|
|
6060
|
+
}
|
|
5857
6061
|
};
|
|
5858
6062
|
function convertDiagnostic(diag, sourceResolver) {
|
|
5859
6063
|
if (!shouldReportDiagnostic(diag)) {
|
|
@@ -5941,10 +6145,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
5941
6145
|
}
|
|
5942
6146
|
};
|
|
5943
6147
|
|
|
5944
|
-
// bazel-out/
|
|
6148
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
5945
6149
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
5946
6150
|
|
|
5947
|
-
// bazel-out/
|
|
6151
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
5948
6152
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
|
|
5949
6153
|
var TemplateCheckWithVisitor = class {
|
|
5950
6154
|
run(ctx, component, template) {
|
|
@@ -6021,7 +6225,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
6021
6225
|
}
|
|
6022
6226
|
};
|
|
6023
6227
|
|
|
6024
|
-
// bazel-out/
|
|
6228
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
6025
6229
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
6026
6230
|
constructor() {
|
|
6027
6231
|
super(...arguments);
|
|
@@ -6046,7 +6250,7 @@ var factory = {
|
|
|
6046
6250
|
create: () => new InvalidBananaInBoxCheck()
|
|
6047
6251
|
};
|
|
6048
6252
|
|
|
6049
|
-
// bazel-out/
|
|
6253
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
6050
6254
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
6051
6255
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
6052
6256
|
["ngIf", "NgIf"],
|
|
@@ -6091,7 +6295,7 @@ var factory2 = {
|
|
|
6091
6295
|
}
|
|
6092
6296
|
};
|
|
6093
6297
|
|
|
6094
|
-
// bazel-out/
|
|
6298
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
6095
6299
|
import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
|
|
6096
6300
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
6097
6301
|
constructor() {
|
|
@@ -6124,7 +6328,7 @@ var factory3 = {
|
|
|
6124
6328
|
create: () => new MissingNgForOfLetCheck()
|
|
6125
6329
|
};
|
|
6126
6330
|
|
|
6127
|
-
// bazel-out/
|
|
6331
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
6128
6332
|
import { Binary } from "@angular/compiler";
|
|
6129
6333
|
import ts29 from "typescript";
|
|
6130
6334
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6169,7 +6373,7 @@ var factory4 = {
|
|
|
6169
6373
|
}
|
|
6170
6374
|
};
|
|
6171
6375
|
|
|
6172
|
-
// bazel-out/
|
|
6376
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
6173
6377
|
import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
|
|
6174
6378
|
import ts30 from "typescript";
|
|
6175
6379
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6215,7 +6419,7 @@ var factory5 = {
|
|
|
6215
6419
|
}
|
|
6216
6420
|
};
|
|
6217
6421
|
|
|
6218
|
-
// bazel-out/
|
|
6422
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
6219
6423
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
|
|
6220
6424
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
6221
6425
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -6239,7 +6443,7 @@ var factory6 = {
|
|
|
6239
6443
|
create: () => new SuffixNotSupportedCheck()
|
|
6240
6444
|
};
|
|
6241
6445
|
|
|
6242
|
-
// bazel-out/
|
|
6446
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
6243
6447
|
import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
|
|
6244
6448
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
6245
6449
|
constructor() {
|
|
@@ -6278,10 +6482,10 @@ var factory7 = {
|
|
|
6278
6482
|
create: () => new TextAttributeNotBindingSpec()
|
|
6279
6483
|
};
|
|
6280
6484
|
|
|
6281
|
-
// bazel-out/
|
|
6485
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
6282
6486
|
import ts31 from "typescript";
|
|
6283
6487
|
|
|
6284
|
-
// bazel-out/
|
|
6488
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
6285
6489
|
var DiagnosticCategoryLabel;
|
|
6286
6490
|
(function(DiagnosticCategoryLabel2) {
|
|
6287
6491
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -6289,7 +6493,7 @@ var DiagnosticCategoryLabel;
|
|
|
6289
6493
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
6290
6494
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
6291
6495
|
|
|
6292
|
-
// bazel-out/
|
|
6496
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
6293
6497
|
var ExtendedTemplateCheckerImpl = class {
|
|
6294
6498
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
6295
6499
|
var _a, _b, _c, _d, _e;
|
|
@@ -6342,7 +6546,7 @@ function assertNever(value) {
|
|
|
6342
6546
|
${value}`);
|
|
6343
6547
|
}
|
|
6344
6548
|
|
|
6345
|
-
// bazel-out/
|
|
6549
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
6346
6550
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
6347
6551
|
factory,
|
|
6348
6552
|
factory4,
|
|
@@ -6353,7 +6557,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
6353
6557
|
factory6
|
|
6354
6558
|
];
|
|
6355
6559
|
|
|
6356
|
-
// bazel-out/
|
|
6560
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
6357
6561
|
var CompilationTicketKind;
|
|
6358
6562
|
(function(CompilationTicketKind2) {
|
|
6359
6563
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -6431,7 +6635,10 @@ var NgCompiler = class {
|
|
|
6431
6635
|
this.currentProgram = inputProgram;
|
|
6432
6636
|
this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
|
|
6433
6637
|
this.entryPoint = adapter.entryPoint !== null ? getSourceFileOrNull(inputProgram, adapter.entryPoint) : null;
|
|
6434
|
-
const moduleResolutionCache = ts32.createModuleResolutionCache(
|
|
6638
|
+
const moduleResolutionCache = ts32.createModuleResolutionCache(
|
|
6639
|
+
this.adapter.getCurrentDirectory(),
|
|
6640
|
+
this.adapter.getCanonicalFileName.bind(this.adapter)
|
|
6641
|
+
);
|
|
6435
6642
|
this.moduleResolver = new ModuleResolver(inputProgram, this.options, this.adapter, moduleResolutionCache);
|
|
6436
6643
|
this.resourceManager = new AdapterResourceLoader(adapter, this.options);
|
|
6437
6644
|
this.cycleAnalyzer = new CycleAnalyzer(new ImportGraph(inputProgram.getTypeChecker(), this.delegatingPerfRecorder));
|
|
@@ -7055,7 +7262,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
7055
7262
|
return versions;
|
|
7056
7263
|
}
|
|
7057
7264
|
|
|
7058
|
-
// bazel-out/
|
|
7265
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
7059
7266
|
import ts33 from "typescript";
|
|
7060
7267
|
var DelegatingCompilerHost2 = class {
|
|
7061
7268
|
constructor(delegate) {
|
|
@@ -7200,7 +7407,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
7200
7407
|
}
|
|
7201
7408
|
};
|
|
7202
7409
|
|
|
7203
|
-
// bazel-out/
|
|
7410
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
7204
7411
|
var NgtscProgram = class {
|
|
7205
7412
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
7206
7413
|
this.options = options;
|
|
@@ -7232,7 +7439,15 @@ var NgtscProgram = class {
|
|
|
7232
7439
|
}
|
|
7233
7440
|
let ticket;
|
|
7234
7441
|
if (oldProgram === void 0) {
|
|
7235
|
-
ticket = freshCompilationTicket(
|
|
7442
|
+
ticket = freshCompilationTicket(
|
|
7443
|
+
this.tsProgram,
|
|
7444
|
+
options,
|
|
7445
|
+
this.incrementalStrategy,
|
|
7446
|
+
programDriver,
|
|
7447
|
+
perfRecorder,
|
|
7448
|
+
false,
|
|
7449
|
+
false
|
|
7450
|
+
);
|
|
7236
7451
|
} else {
|
|
7237
7452
|
ticket = incrementalFromCompilerTicket(oldProgram.compiler, this.tsProgram, this.incrementalStrategy, programDriver, modifiedResourceFiles, perfRecorder);
|
|
7238
7453
|
}
|
|
@@ -7410,15 +7625,15 @@ function mergeEmitResults(emitResults) {
|
|
|
7410
7625
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
7411
7626
|
}
|
|
7412
7627
|
|
|
7413
|
-
// bazel-out/
|
|
7628
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
7414
7629
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
7415
7630
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
7416
7631
|
}
|
|
7417
7632
|
|
|
7418
|
-
// bazel-out/
|
|
7633
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
7419
7634
|
import ts36 from "typescript";
|
|
7420
7635
|
|
|
7421
|
-
// bazel-out/
|
|
7636
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
7422
7637
|
import ts35 from "typescript";
|
|
7423
7638
|
function createMessageDiagnostic(messageText) {
|
|
7424
7639
|
return {
|
|
@@ -7432,7 +7647,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
7432
7647
|
};
|
|
7433
7648
|
}
|
|
7434
7649
|
|
|
7435
|
-
// bazel-out/
|
|
7650
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
7436
7651
|
var defaultFormatHost = {
|
|
7437
7652
|
getCurrentDirectory: () => ts36.sys.getCurrentDirectory(),
|
|
7438
7653
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -7645,4 +7860,4 @@ export {
|
|
|
7645
7860
|
* found in the LICENSE file at https://angular.io/license
|
|
7646
7861
|
*/
|
|
7647
7862
|
// Closure Compiler ignores @suppress and similar if the comment contains @license.
|
|
7648
|
-
//# sourceMappingURL=chunk-
|
|
7863
|
+
//# sourceMappingURL=chunk-A6MA5NDQ.js.map
|