@angular/compiler-cli 14.0.0-rc.1 → 14.0.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-LX5Q27EF.js → chunk-7J66ZDC5.js} +3 -3
- package/bundles/{chunk-LX5Q27EF.js.map → chunk-7J66ZDC5.js.map} +0 -0
- package/bundles/{chunk-W6KM7BUM.js → chunk-AKU7LV22.js} +6 -6
- package/bundles/{chunk-W6KM7BUM.js.map → chunk-AKU7LV22.js.map} +0 -0
- package/bundles/{chunk-UJXXCVVY.js → chunk-AXU2Z2WN.js} +70 -70
- package/bundles/{chunk-UJXXCVVY.js.map → chunk-AXU2Z2WN.js.map} +0 -0
- package/bundles/{chunk-WGBFSDVQ.js → chunk-BFPVXDJN.js} +7 -7
- package/bundles/{chunk-WGBFSDVQ.js.map → chunk-BFPVXDJN.js.map} +0 -0
- package/bundles/{chunk-UMY2M5GZ.js → chunk-EI6PFDB4.js} +40 -40
- package/bundles/{chunk-UMY2M5GZ.js.map → chunk-EI6PFDB4.js.map} +0 -0
- package/bundles/{chunk-R3C7RFJ4.js → chunk-HMWNYAAE.js} +2 -2
- package/bundles/{chunk-R3C7RFJ4.js.map → chunk-HMWNYAAE.js.map} +0 -0
- package/bundles/{chunk-N4EFPPNE.js → chunk-KIWI22Y5.js} +5 -5
- package/bundles/{chunk-N4EFPPNE.js.map → chunk-KIWI22Y5.js.map} +0 -0
- package/bundles/{chunk-T7MYRXIE.js → chunk-MURZUYM7.js} +7 -7
- package/bundles/{chunk-T7MYRXIE.js.map → chunk-MURZUYM7.js.map} +0 -0
- package/bundles/{chunk-74SXTDBS.js → chunk-NTRR4N4C.js} +212 -164
- package/bundles/chunk-NTRR4N4C.js.map +6 -0
- package/bundles/{chunk-R4NY3TJC.js → chunk-QK4SXRQA.js} +5 -5
- package/bundles/{chunk-R4NY3TJC.js.map → chunk-QK4SXRQA.js.map} +0 -0
- package/bundles/{chunk-TFEYVOY6.js → chunk-RT3OZMJ6.js} +112 -107
- package/bundles/chunk-RT3OZMJ6.js.map +6 -0
- package/bundles/{chunk-JDKMNZ6O.js → chunk-SFACRVMZ.js} +26 -26
- package/bundles/{chunk-JDKMNZ6O.js.map → chunk-SFACRVMZ.js.map} +0 -0
- package/bundles/{chunk-OLGEBPBY.js → chunk-U2VFXNL7.js} +4 -4
- package/bundles/{chunk-OLGEBPBY.js.map → chunk-U2VFXNL7.js.map} +0 -0
- package/bundles/{chunk-7XY4OMWJ.js → chunk-VEAB5CR7.js} +31 -31
- package/bundles/{chunk-7XY4OMWJ.js.map → chunk-VEAB5CR7.js.map} +0 -0
- package/bundles/{chunk-2IMT6JFI.js → chunk-ZJCM37WF.js} +6 -6
- package/bundles/{chunk-2IMT6JFI.js.map → chunk-ZJCM37WF.js.map} +0 -0
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +16 -16
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +12 -12
- package/bundles/ngcc/main-ngcc.js +13 -13
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +13 -13
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +5 -5
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/common/src/util.d.ts +6 -0
- package/src/ngtsc/annotations/ng_module/index.d.ts +1 -0
- package/src/ngtsc/annotations/ng_module/src/handler.d.ts +2 -20
- package/src/ngtsc/annotations/ng_module/src/module_with_providers.d.ts +26 -0
- package/src/ngtsc/typecheck/api/api.d.ts +1 -0
- package/src/ngtsc/typecheck/api/context.d.ts +2 -1
- package/src/ngtsc/typecheck/src/context.d.ts +1 -1
- package/src/ngtsc/typecheck/src/dom.d.ts +6 -4
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +2 -1
- package/bundles/chunk-74SXTDBS.js.map +0 -6
- package/bundles/chunk-TFEYVOY6.js.map +0 -6
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
aliasTransformFactory,
|
|
31
31
|
declarationTransformFactory,
|
|
32
32
|
ivyTransformFactory
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NTRR4N4C.js";
|
|
34
34
|
import {
|
|
35
35
|
TypeScriptReflectionHost,
|
|
36
36
|
isNamedClassDeclaration
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ZJCM37WF.js";
|
|
38
38
|
import {
|
|
39
39
|
AbsoluteModuleStrategy,
|
|
40
40
|
AliasStrategy,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
toUnredirectedSourceFile,
|
|
74
74
|
translateExpression,
|
|
75
75
|
translateType
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-SFACRVMZ.js";
|
|
77
77
|
import {
|
|
78
78
|
LogicalFileSystem,
|
|
79
79
|
absoluteFrom,
|
|
@@ -84,20 +84,20 @@ import {
|
|
|
84
84
|
getSourceFileOrError,
|
|
85
85
|
join,
|
|
86
86
|
resolve
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-MURZUYM7.js";
|
|
88
88
|
import {
|
|
89
89
|
ActivePerfRecorder,
|
|
90
90
|
DelegatingPerfRecorder,
|
|
91
91
|
PerfCheckpoint,
|
|
92
92
|
PerfEvent,
|
|
93
93
|
PerfPhase
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-QK4SXRQA.js";
|
|
95
95
|
import {
|
|
96
96
|
__spreadProps,
|
|
97
97
|
__spreadValues
|
|
98
98
|
} from "./chunk-GMSUYBZP.js";
|
|
99
99
|
|
|
100
|
-
// bazel-out/
|
|
100
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
101
101
|
var DEFAULT_ERROR_CODE = 100;
|
|
102
102
|
var UNKNOWN_ERROR_CODE = 500;
|
|
103
103
|
var SOURCE = "angular";
|
|
@@ -115,7 +115,7 @@ var EmitFlags;
|
|
|
115
115
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
116
116
|
})(EmitFlags || (EmitFlags = {}));
|
|
117
117
|
|
|
118
|
-
// bazel-out/
|
|
118
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
119
119
|
import ts from "typescript";
|
|
120
120
|
var wrapHostForTest = null;
|
|
121
121
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -125,21 +125,21 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
125
125
|
return tsHost;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
// bazel-out/
|
|
128
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
129
129
|
var OptimizeFor;
|
|
130
130
|
(function(OptimizeFor2) {
|
|
131
131
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
132
132
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
133
133
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
134
134
|
|
|
135
|
-
// bazel-out/
|
|
135
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
136
136
|
var CompletionKind;
|
|
137
137
|
(function(CompletionKind2) {
|
|
138
138
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
139
139
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
140
140
|
})(CompletionKind || (CompletionKind = {}));
|
|
141
141
|
|
|
142
|
-
// bazel-out/
|
|
142
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
143
143
|
var SymbolKind;
|
|
144
144
|
(function(SymbolKind2) {
|
|
145
145
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -155,11 +155,11 @@ var SymbolKind;
|
|
|
155
155
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
156
156
|
})(SymbolKind || (SymbolKind = {}));
|
|
157
157
|
|
|
158
|
-
// bazel-out/
|
|
158
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
159
159
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
160
160
|
import ts33 from "typescript";
|
|
161
161
|
|
|
162
|
-
// bazel-out/
|
|
162
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
163
163
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
164
164
|
import * as path from "path";
|
|
165
165
|
function i18nGetExtension(formatName) {
|
|
@@ -210,10 +210,10 @@ function getPathNormalizer(basePath) {
|
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
// bazel-out/
|
|
213
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
214
214
|
import ts2 from "typescript";
|
|
215
215
|
|
|
216
|
-
// bazel-out/
|
|
216
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
217
217
|
function toNumbers(value) {
|
|
218
218
|
const suffixIndex = value.lastIndexOf("-");
|
|
219
219
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -248,7 +248,7 @@ function compareVersions(v1, v2) {
|
|
|
248
248
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
// bazel-out/
|
|
251
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
252
252
|
var MIN_TS_VERSION = "4.6.2";
|
|
253
253
|
var MAX_TS_VERSION = "4.8.0";
|
|
254
254
|
var tsVersion = ts2.version;
|
|
@@ -261,10 +261,10 @@ function verifySupportedTypeScriptVersion() {
|
|
|
261
261
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
// bazel-out/
|
|
264
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
265
265
|
import ts31 from "typescript";
|
|
266
266
|
|
|
267
|
-
// bazel-out/
|
|
267
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
268
268
|
var CycleAnalyzer = class {
|
|
269
269
|
constructor(importGraph) {
|
|
270
270
|
this.importGraph = importGraph;
|
|
@@ -335,7 +335,7 @@ var Cycle = class {
|
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
// bazel-out/
|
|
338
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
339
339
|
import ts3 from "typescript";
|
|
340
340
|
var ImportGraph = class {
|
|
341
341
|
constructor(checker, perf) {
|
|
@@ -427,7 +427,7 @@ var Found = class {
|
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
|
|
430
|
-
// bazel-out/
|
|
430
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
431
431
|
import ts4 from "typescript";
|
|
432
432
|
var FlatIndexGenerator = class {
|
|
433
433
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -452,7 +452,7 @@ export * from '${relativeEntryPoint}';
|
|
|
452
452
|
}
|
|
453
453
|
};
|
|
454
454
|
|
|
455
|
-
// bazel-out/
|
|
455
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
456
456
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
457
457
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
458
458
|
let resolvedEntryPoint = null;
|
|
@@ -468,7 +468,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
468
468
|
return resolvedEntryPoint;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
// bazel-out/
|
|
471
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
472
472
|
import ts5 from "typescript";
|
|
473
473
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
474
474
|
const diagnostics = [];
|
|
@@ -548,7 +548,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
|
|
551
|
-
// bazel-out/
|
|
551
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
552
552
|
var ReferenceGraph = class {
|
|
553
553
|
constructor() {
|
|
554
554
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -602,7 +602,7 @@ var ReferenceGraph = class {
|
|
|
602
602
|
}
|
|
603
603
|
};
|
|
604
604
|
|
|
605
|
-
// bazel-out/
|
|
605
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
606
606
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
607
607
|
var UpdateMode;
|
|
608
608
|
(function(UpdateMode2) {
|
|
@@ -610,13 +610,13 @@ var UpdateMode;
|
|
|
610
610
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
611
611
|
})(UpdateMode || (UpdateMode = {}));
|
|
612
612
|
|
|
613
|
-
// bazel-out/
|
|
613
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
614
614
|
import ts9 from "typescript";
|
|
615
615
|
|
|
616
|
-
// bazel-out/
|
|
616
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
617
617
|
import ts6 from "typescript";
|
|
618
618
|
|
|
619
|
-
// bazel-out/
|
|
619
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
620
620
|
var NgExtension = Symbol("NgExtension");
|
|
621
621
|
function isExtended(sf) {
|
|
622
622
|
return sf[NgExtension] !== void 0;
|
|
@@ -676,7 +676,7 @@ function retagTsFile(sf) {
|
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
// bazel-out/
|
|
679
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
680
680
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
681
681
|
function makeShimFileName(fileName, suffix) {
|
|
682
682
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
@@ -691,7 +691,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
|
|
|
691
691
|
return moduleName;
|
|
692
692
|
}
|
|
693
693
|
|
|
694
|
-
// bazel-out/
|
|
694
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
695
695
|
var ShimAdapter = class {
|
|
696
696
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
697
697
|
this.delegate = delegate;
|
|
@@ -788,7 +788,7 @@ var ShimAdapter = class {
|
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
790
|
|
|
791
|
-
// bazel-out/
|
|
791
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
|
|
792
792
|
import ts7 from "typescript";
|
|
793
793
|
var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
|
|
794
794
|
var STRIP_NG_FACTORY = /(.*)NgFactory$/;
|
|
@@ -935,7 +935,7 @@ function updateInitializers(stmt, update) {
|
|
|
935
935
|
return ts7.factory.updateVariableStatement(stmt, stmt.modifiers, ts7.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => ts7.updateVariableDeclaration(decl, decl.name, decl.type, update(decl.initializer)))));
|
|
936
936
|
}
|
|
937
937
|
|
|
938
|
-
// bazel-out/
|
|
938
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
939
939
|
var ShimReferenceTagger = class {
|
|
940
940
|
constructor(shimExtensions) {
|
|
941
941
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -969,7 +969,7 @@ var ShimReferenceTagger = class {
|
|
|
969
969
|
}
|
|
970
970
|
};
|
|
971
971
|
|
|
972
|
-
// bazel-out/
|
|
972
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
|
|
973
973
|
import ts8 from "typescript";
|
|
974
974
|
var SummaryGenerator = class {
|
|
975
975
|
constructor() {
|
|
@@ -1009,7 +1009,7 @@ function isExported2(decl) {
|
|
|
1009
1009
|
return decl.modifiers !== void 0 && decl.modifiers.some((mod) => mod.kind == ts8.SyntaxKind.ExportKeyword);
|
|
1010
1010
|
}
|
|
1011
1011
|
|
|
1012
|
-
// bazel-out/
|
|
1012
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
1013
1013
|
var DelegatingCompilerHost = class {
|
|
1014
1014
|
constructor(delegate) {
|
|
1015
1015
|
this.delegate = delegate;
|
|
@@ -1119,7 +1119,7 @@ var TsCreateProgramDriver = class {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
1121
|
|
|
1122
|
-
// bazel-out/
|
|
1122
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1123
1123
|
var FileDependencyGraph = class {
|
|
1124
1124
|
constructor() {
|
|
1125
1125
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1186,7 +1186,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1186
1186
|
return false;
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
|
-
// bazel-out/
|
|
1189
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1190
1190
|
var IncrementalStateKind;
|
|
1191
1191
|
(function(IncrementalStateKind2) {
|
|
1192
1192
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1194,7 +1194,7 @@ var IncrementalStateKind;
|
|
|
1194
1194
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1195
1195
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1196
1196
|
|
|
1197
|
-
// bazel-out/
|
|
1197
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1198
1198
|
var PhaseKind;
|
|
1199
1199
|
(function(PhaseKind2) {
|
|
1200
1200
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1395,7 +1395,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
|
|
1398
|
-
// bazel-out/
|
|
1398
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1399
1399
|
var TrackedIncrementalBuildStrategy = class {
|
|
1400
1400
|
constructor() {
|
|
1401
1401
|
this.state = null;
|
|
@@ -1431,7 +1431,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1431
1431
|
};
|
|
1432
1432
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1433
1433
|
|
|
1434
|
-
// bazel-out/
|
|
1434
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1435
1435
|
var IdentifierKind;
|
|
1436
1436
|
(function(IdentifierKind2) {
|
|
1437
1437
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1449,7 +1449,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
};
|
|
1451
1451
|
|
|
1452
|
-
// bazel-out/
|
|
1452
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1453
1453
|
var IndexingContext = class {
|
|
1454
1454
|
constructor() {
|
|
1455
1455
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1459,10 +1459,10 @@ var IndexingContext = class {
|
|
|
1459
1459
|
}
|
|
1460
1460
|
};
|
|
1461
1461
|
|
|
1462
|
-
// bazel-out/
|
|
1462
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1463
1463
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1464
1464
|
|
|
1465
|
-
// bazel-out/
|
|
1465
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1466
1466
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
|
|
1467
1467
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1468
1468
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -1699,7 +1699,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
1699
1699
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
1700
1700
|
}
|
|
1701
1701
|
|
|
1702
|
-
// bazel-out/
|
|
1702
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1703
1703
|
function generateAnalysis(context) {
|
|
1704
1704
|
const analysis = /* @__PURE__ */ new Map();
|
|
1705
1705
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -1735,7 +1735,7 @@ function generateAnalysis(context) {
|
|
|
1735
1735
|
return analysis;
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
|
-
// bazel-out/
|
|
1738
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
1739
1739
|
import ts10 from "typescript";
|
|
1740
1740
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
1741
1741
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -1881,7 +1881,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
1881
1881
|
};
|
|
1882
1882
|
}
|
|
1883
1883
|
|
|
1884
|
-
// bazel-out/
|
|
1884
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
1885
1885
|
var StandaloneComponentScopeReader = class {
|
|
1886
1886
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
1887
1887
|
this.metaReader = metaReader;
|
|
@@ -1959,10 +1959,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
};
|
|
1961
1961
|
|
|
1962
|
-
// bazel-out/
|
|
1962
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
1963
1963
|
import { CssSelector, DomElementSchemaRegistry as DomElementSchemaRegistry2 } from "@angular/compiler";
|
|
1964
1964
|
|
|
1965
|
-
// bazel-out/
|
|
1965
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
1966
1966
|
import ts11 from "typescript";
|
|
1967
1967
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
1968
1968
|
if (mapping.type === "direct") {
|
|
@@ -2035,7 +2035,7 @@ function makeTemplateDiagnostic(templateId, mapping, span, category, code, messa
|
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
2038
|
-
// bazel-out/
|
|
2038
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
2039
2039
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
2040
2040
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
2041
2041
|
function getTemplateId(clazz) {
|
|
@@ -2052,11 +2052,11 @@ function allocateTemplateId(sf) {
|
|
|
2052
2052
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
2053
2053
|
}
|
|
2054
2054
|
|
|
2055
|
-
// bazel-out/
|
|
2055
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2056
2056
|
import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
|
|
2057
2057
|
import ts13 from "typescript";
|
|
2058
2058
|
|
|
2059
|
-
// bazel-out/
|
|
2059
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
2060
2060
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
|
|
2061
2061
|
import ts12 from "typescript";
|
|
2062
2062
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
@@ -2176,7 +2176,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
2176
2176
|
}) || false;
|
|
2177
2177
|
}
|
|
2178
2178
|
|
|
2179
|
-
// bazel-out/
|
|
2179
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
2180
2180
|
var CompletionEngine = class {
|
|
2181
2181
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
2182
2182
|
this.tcb = tcb;
|
|
@@ -2333,10 +2333,10 @@ var CompletionEngine = class {
|
|
|
2333
2333
|
}
|
|
2334
2334
|
};
|
|
2335
2335
|
|
|
2336
|
-
// bazel-out/
|
|
2336
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
2337
2337
|
import ts27 from "typescript";
|
|
2338
2338
|
|
|
2339
|
-
// bazel-out/
|
|
2339
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
2340
2340
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
2341
2341
|
import ts14 from "typescript";
|
|
2342
2342
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
@@ -2349,36 +2349,39 @@ var RegistryDomSchemaChecker = class {
|
|
|
2349
2349
|
get diagnostics() {
|
|
2350
2350
|
return this._diagnostics;
|
|
2351
2351
|
}
|
|
2352
|
-
checkElement(id, element, schemas) {
|
|
2352
|
+
checkElement(id, element, schemas, hostIsStandalone) {
|
|
2353
2353
|
const name = element.name.replace(REMOVE_XHTML_REGEX, "");
|
|
2354
2354
|
if (!REGISTRY.hasElement(name, schemas)) {
|
|
2355
2355
|
const mapping = this.resolver.getSourceMapping(id);
|
|
2356
|
+
const schemas2 = `'${hostIsStandalone ? "@Component" : "@NgModule"}.schemas'`;
|
|
2356
2357
|
let errorMsg = `'${name}' is not a known element:
|
|
2357
2358
|
`;
|
|
2358
|
-
errorMsg += `1. If '${name}' is an Angular component, then verify that it is part of this module.
|
|
2359
|
+
errorMsg += `1. If '${name}' is an Angular component, then verify that it is ${hostIsStandalone ? "included in the '@Component.imports' of this component" : "part of this module"}.
|
|
2359
2360
|
`;
|
|
2360
2361
|
if (name.indexOf("-") > -1) {
|
|
2361
|
-
errorMsg += `2. If '${name}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the
|
|
2362
|
+
errorMsg += `2. If '${name}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${schemas2} of this component to suppress this message.`;
|
|
2362
2363
|
} else {
|
|
2363
|
-
errorMsg += `2. To allow any element add 'NO_ERRORS_SCHEMA' to the
|
|
2364
|
+
errorMsg += `2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
|
|
2364
2365
|
}
|
|
2365
2366
|
const diag = makeTemplateDiagnostic(id, mapping, element.startSourceSpan, ts14.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ELEMENT), errorMsg);
|
|
2366
2367
|
this._diagnostics.push(diag);
|
|
2367
2368
|
}
|
|
2368
2369
|
}
|
|
2369
|
-
checkProperty(id, element, name, span, schemas) {
|
|
2370
|
+
checkProperty(id, element, name, span, schemas, hostIsStandalone) {
|
|
2370
2371
|
if (!REGISTRY.hasProperty(element.name, name, schemas)) {
|
|
2371
2372
|
const mapping = this.resolver.getSourceMapping(id);
|
|
2373
|
+
const decorator = hostIsStandalone ? "@Component" : "@NgModule";
|
|
2374
|
+
const schemas2 = `'${decorator}.schemas'`;
|
|
2372
2375
|
let errorMsg = `Can't bind to '${name}' since it isn't a known property of '${element.name}'.`;
|
|
2373
2376
|
if (element.name.startsWith("ng-")) {
|
|
2374
2377
|
errorMsg += `
|
|
2375
|
-
1. If '${name}' is an Angular directive, then add 'CommonModule' to the '
|
|
2376
|
-
2. To allow any property add 'NO_ERRORS_SCHEMA' to the
|
|
2378
|
+
1. If '${name}' is an Angular directive, then add 'CommonModule' to the '${decorator}.imports' of this component.
|
|
2379
|
+
2. To allow any property add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
|
|
2377
2380
|
} else if (element.name.indexOf("-") > -1) {
|
|
2378
2381
|
errorMsg += `
|
|
2379
|
-
1. If '${element.name}' is an Angular component and it has '${name}' input, then verify that it is part of this module.
|
|
2380
|
-
2. If '${element.name}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the
|
|
2381
|
-
3. To allow any property add 'NO_ERRORS_SCHEMA' to the
|
|
2382
|
+
1. If '${element.name}' is an Angular component and it has '${name}' input, then verify that it is ${hostIsStandalone ? "included in the '@Component.imports' of this component" : "part of this module"}.
|
|
2383
|
+
2. If '${element.name}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${schemas2} of this component to suppress this message.
|
|
2384
|
+
3. To allow any property add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
|
|
2382
2385
|
}
|
|
2383
2386
|
const diag = makeTemplateDiagnostic(id, mapping, span, ts14.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ATTRIBUTE), errorMsg);
|
|
2384
2387
|
this._diagnostics.push(diag);
|
|
@@ -2386,11 +2389,11 @@ var RegistryDomSchemaChecker = class {
|
|
|
2386
2389
|
}
|
|
2387
2390
|
};
|
|
2388
2391
|
|
|
2389
|
-
// bazel-out/
|
|
2392
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2390
2393
|
import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
|
|
2391
2394
|
import ts20 from "typescript";
|
|
2392
2395
|
|
|
2393
|
-
// bazel-out/
|
|
2396
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
2394
2397
|
import ts15 from "typescript";
|
|
2395
2398
|
var PARSED_TS_VERSION = parseFloat(ts15.versionMajorMinor);
|
|
2396
2399
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
@@ -2463,16 +2466,16 @@ function isAccessExpression(node) {
|
|
|
2463
2466
|
return ts15.isPropertyAccessExpression(node) || ts15.isElementAccessExpression(node);
|
|
2464
2467
|
}
|
|
2465
2468
|
|
|
2466
|
-
// bazel-out/
|
|
2469
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2467
2470
|
import ts19 from "typescript";
|
|
2468
2471
|
|
|
2469
|
-
// bazel-out/
|
|
2472
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2470
2473
|
import ts18 from "typescript";
|
|
2471
2474
|
|
|
2472
|
-
// bazel-out/
|
|
2475
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2473
2476
|
import ts17 from "typescript";
|
|
2474
2477
|
|
|
2475
|
-
// bazel-out/
|
|
2478
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
2476
2479
|
import ts16 from "typescript";
|
|
2477
2480
|
var INELIGIBLE = {};
|
|
2478
2481
|
function canEmitType(type, canEmit) {
|
|
@@ -2534,7 +2537,7 @@ var TypeEmitter = class {
|
|
|
2534
2537
|
}
|
|
2535
2538
|
};
|
|
2536
2539
|
|
|
2537
|
-
// bazel-out/
|
|
2540
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
2538
2541
|
var TypeParameterEmitter = class {
|
|
2539
2542
|
constructor(typeParameters, reflector) {
|
|
2540
2543
|
this.typeParameters = typeParameters;
|
|
@@ -2611,7 +2614,7 @@ var TypeParameterEmitter = class {
|
|
|
2611
2614
|
}
|
|
2612
2615
|
};
|
|
2613
2616
|
|
|
2614
|
-
// bazel-out/
|
|
2617
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
2615
2618
|
var TcbInliningRequirement;
|
|
2616
2619
|
(function(TcbInliningRequirement2) {
|
|
2617
2620
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -2691,7 +2694,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
2691
2694
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
2692
2695
|
}
|
|
2693
2696
|
|
|
2694
|
-
// bazel-out/
|
|
2697
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
2695
2698
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
2696
2699
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
2697
2700
|
const rawType = ts19.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -2762,7 +2765,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
2762
2765
|
});
|
|
2763
2766
|
}
|
|
2764
2767
|
|
|
2765
|
-
// bazel-out/
|
|
2768
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
2766
2769
|
var Environment = class {
|
|
2767
2770
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
2768
2771
|
this.config = config;
|
|
@@ -2854,7 +2857,7 @@ var Environment = class {
|
|
|
2854
2857
|
}
|
|
2855
2858
|
};
|
|
2856
2859
|
|
|
2857
|
-
// bazel-out/
|
|
2860
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
2858
2861
|
import { TmplAstElement as TmplAstElement2 } from "@angular/compiler";
|
|
2859
2862
|
import ts21 from "typescript";
|
|
2860
2863
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
@@ -2986,7 +2989,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
2986
2989
|
});
|
|
2987
2990
|
}
|
|
2988
2991
|
|
|
2989
|
-
// bazel-out/
|
|
2992
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
2990
2993
|
import ts22 from "typescript";
|
|
2991
2994
|
var TypeCheckShimGenerator = class {
|
|
2992
2995
|
constructor() {
|
|
@@ -3004,11 +3007,11 @@ var TypeCheckShimGenerator = class {
|
|
|
3004
3007
|
}
|
|
3005
3008
|
};
|
|
3006
3009
|
|
|
3007
|
-
// bazel-out/
|
|
3010
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3008
3011
|
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";
|
|
3009
3012
|
import ts25 from "typescript";
|
|
3010
3013
|
|
|
3011
|
-
// bazel-out/
|
|
3014
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
3012
3015
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
3013
3016
|
import ts23 from "typescript";
|
|
3014
3017
|
function wrapForDiagnostics(expr) {
|
|
@@ -3054,7 +3057,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
3054
3057
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
3055
3058
|
}
|
|
3056
3059
|
|
|
3057
|
-
// bazel-out/
|
|
3060
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
3058
3061
|
import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
3059
3062
|
import ts24 from "typescript";
|
|
3060
3063
|
var NULL_AS_ANY = ts24.factory.createAsExpression(ts24.factory.createNull(), ts24.factory.createKeywordTypeNode(ts24.SyntaxKind.AnyKeyword));
|
|
@@ -3384,7 +3387,7 @@ var VeSafeLhsInferenceBugDetector = class {
|
|
|
3384
3387
|
};
|
|
3385
3388
|
VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
|
|
3386
3389
|
|
|
3387
|
-
// bazel-out/
|
|
3390
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
3388
3391
|
import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
|
|
3389
3392
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
3390
3393
|
constructor(templateId, boundTarget, oob) {
|
|
@@ -3408,7 +3411,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
3408
3411
|
}
|
|
3409
3412
|
};
|
|
3410
3413
|
|
|
3411
|
-
// bazel-out/
|
|
3414
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
3412
3415
|
var TcbGenericContextBehavior;
|
|
3413
3416
|
(function(TcbGenericContextBehavior2) {
|
|
3414
3417
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -3416,7 +3419,7 @@ var TcbGenericContextBehavior;
|
|
|
3416
3419
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["FallbackToAny"] = 2] = "FallbackToAny";
|
|
3417
3420
|
})(TcbGenericContextBehavior || (TcbGenericContextBehavior = {}));
|
|
3418
3421
|
function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecorder, genericContextBehavior) {
|
|
3419
|
-
const tcb = new Context(env, domSchemaChecker, oobRecorder, meta.id, meta.boundTarget, meta.pipes, meta.schemas);
|
|
3422
|
+
const tcb = new Context(env, domSchemaChecker, oobRecorder, meta.id, meta.boundTarget, meta.pipes, meta.schemas, meta.isStandalone);
|
|
3420
3423
|
const scope = Scope.forNodes(tcb, null, tcb.boundTarget.target.template, null);
|
|
3421
3424
|
const ctxRawType = env.referenceType(ref);
|
|
3422
3425
|
if (!ts25.isTypeReferenceNode(ctxRawType)) {
|
|
@@ -3828,7 +3831,7 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
|
|
|
3828
3831
|
}
|
|
3829
3832
|
execute() {
|
|
3830
3833
|
if (this.checkElement) {
|
|
3831
|
-
this.tcb.domSchemaChecker.checkElement(this.tcb.id, this.element, this.tcb.schemas);
|
|
3834
|
+
this.tcb.domSchemaChecker.checkElement(this.tcb.id, this.element, this.tcb.schemas, this.tcb.hostIsStandalone);
|
|
3832
3835
|
}
|
|
3833
3836
|
for (const binding of this.element.inputs) {
|
|
3834
3837
|
if (binding.type === 0 && this.claimedInputs.has(binding.name)) {
|
|
@@ -3837,7 +3840,7 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
|
|
|
3837
3840
|
if (binding.type === 0) {
|
|
3838
3841
|
if (binding.name !== "style" && binding.name !== "class") {
|
|
3839
3842
|
const propertyName = ATTR_TO_PROP[binding.name] || binding.name;
|
|
3840
|
-
this.tcb.domSchemaChecker.checkProperty(this.tcb.id, this.element, propertyName, binding.sourceSpan, this.tcb.schemas);
|
|
3843
|
+
this.tcb.domSchemaChecker.checkProperty(this.tcb.id, this.element, propertyName, binding.sourceSpan, this.tcb.schemas, this.tcb.hostIsStandalone);
|
|
3841
3844
|
}
|
|
3842
3845
|
}
|
|
3843
3846
|
}
|
|
@@ -3997,7 +4000,7 @@ var TcbComponentContextCompletionOp = class extends TcbOp {
|
|
|
3997
4000
|
};
|
|
3998
4001
|
var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = ts25.factory.createNonNullExpression(ts25.factory.createNull());
|
|
3999
4002
|
var Context = class {
|
|
4000
|
-
constructor(env, domSchemaChecker, oobRecorder, id, boundTarget, pipes, schemas) {
|
|
4003
|
+
constructor(env, domSchemaChecker, oobRecorder, id, boundTarget, pipes, schemas, hostIsStandalone) {
|
|
4001
4004
|
this.env = env;
|
|
4002
4005
|
this.domSchemaChecker = domSchemaChecker;
|
|
4003
4006
|
this.oobRecorder = oobRecorder;
|
|
@@ -4005,6 +4008,7 @@ var Context = class {
|
|
|
4005
4008
|
this.boundTarget = boundTarget;
|
|
4006
4009
|
this.pipes = pipes;
|
|
4007
4010
|
this.schemas = schemas;
|
|
4011
|
+
this.hostIsStandalone = hostIsStandalone;
|
|
4008
4012
|
this.nextId = 1;
|
|
4009
4013
|
}
|
|
4010
4014
|
allocateId() {
|
|
@@ -4458,7 +4462,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
4458
4462
|
}
|
|
4459
4463
|
};
|
|
4460
4464
|
|
|
4461
|
-
// bazel-out/
|
|
4465
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
4462
4466
|
import ts26 from "typescript";
|
|
4463
4467
|
var TypeCheckFile = class extends Environment {
|
|
4464
4468
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -4494,7 +4498,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
4494
4498
|
}
|
|
4495
4499
|
};
|
|
4496
4500
|
|
|
4497
|
-
// bazel-out/
|
|
4501
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
4498
4502
|
var InliningMode;
|
|
4499
4503
|
(function(InliningMode2) {
|
|
4500
4504
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -4516,7 +4520,7 @@ var TypeCheckContextImpl = class {
|
|
|
4516
4520
|
throw new Error(`AssertionError: invalid inlining configuration.`);
|
|
4517
4521
|
}
|
|
4518
4522
|
}
|
|
4519
|
-
addTemplate(ref, binder, template, pipes, schemas, sourceMapping, file, parseErrors) {
|
|
4523
|
+
addTemplate(ref, binder, template, pipes, schemas, sourceMapping, file, parseErrors, isStandalone) {
|
|
4520
4524
|
if (!this.host.shouldCheckComponent(ref.node)) {
|
|
4521
4525
|
return;
|
|
4522
4526
|
}
|
|
@@ -4562,7 +4566,8 @@ var TypeCheckContextImpl = class {
|
|
|
4562
4566
|
id: fileData.sourceManager.captureSource(ref.node, sourceMapping, file),
|
|
4563
4567
|
boundTarget,
|
|
4564
4568
|
pipes,
|
|
4565
|
-
schemas
|
|
4569
|
+
schemas,
|
|
4570
|
+
isStandalone
|
|
4566
4571
|
};
|
|
4567
4572
|
this.perf.eventCount(PerfEvent.GenerateTcb);
|
|
4568
4573
|
if (inliningRequirement !== TcbInliningRequirement.None && this.inlining === InliningMode.InlineOps) {
|
|
@@ -4724,10 +4729,10 @@ function splitStringAtPoints(str, points) {
|
|
|
4724
4729
|
return splits;
|
|
4725
4730
|
}
|
|
4726
4731
|
|
|
4727
|
-
// bazel-out/
|
|
4732
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4728
4733
|
import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
|
|
4729
4734
|
|
|
4730
|
-
// bazel-out/
|
|
4735
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
4731
4736
|
var LF_CHAR = 10;
|
|
4732
4737
|
var CR_CHAR = 13;
|
|
4733
4738
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -4768,7 +4773,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
4768
4773
|
return low - 1;
|
|
4769
4774
|
}
|
|
4770
4775
|
|
|
4771
|
-
// bazel-out/
|
|
4776
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
4772
4777
|
var TemplateSource = class {
|
|
4773
4778
|
constructor(mapping, file) {
|
|
4774
4779
|
this.mapping = mapping;
|
|
@@ -4819,7 +4824,7 @@ var TemplateSourceManager = class {
|
|
|
4819
4824
|
}
|
|
4820
4825
|
};
|
|
4821
4826
|
|
|
4822
|
-
// bazel-out/
|
|
4827
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
4823
4828
|
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";
|
|
4824
4829
|
import ts28 from "typescript";
|
|
4825
4830
|
var SymbolBuilder = class {
|
|
@@ -5259,7 +5264,7 @@ function sourceSpanEqual(a, b) {
|
|
|
5259
5264
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
5260
5265
|
}
|
|
5261
5266
|
|
|
5262
|
-
// bazel-out/
|
|
5267
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
5263
5268
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
5264
5269
|
var TemplateTypeCheckerImpl = class {
|
|
5265
5270
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -5795,10 +5800,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
5795
5800
|
}
|
|
5796
5801
|
};
|
|
5797
5802
|
|
|
5798
|
-
// bazel-out/
|
|
5803
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
5799
5804
|
import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
5800
5805
|
|
|
5801
|
-
// bazel-out/
|
|
5806
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
5802
5807
|
import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3 } from "@angular/compiler";
|
|
5803
5808
|
var TemplateCheckWithVisitor = class {
|
|
5804
5809
|
run(ctx, component, template) {
|
|
@@ -5875,7 +5880,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
|
|
|
5875
5880
|
}
|
|
5876
5881
|
};
|
|
5877
5882
|
|
|
5878
|
-
// bazel-out/
|
|
5883
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
5879
5884
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
5880
5885
|
constructor() {
|
|
5881
5886
|
super(...arguments);
|
|
@@ -5900,7 +5905,7 @@ var factory = {
|
|
|
5900
5905
|
create: () => new InvalidBananaInBoxCheck()
|
|
5901
5906
|
};
|
|
5902
5907
|
|
|
5903
|
-
// bazel-out/
|
|
5908
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
5904
5909
|
import { Binary } from "@angular/compiler";
|
|
5905
5910
|
import ts29 from "typescript";
|
|
5906
5911
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -5945,10 +5950,10 @@ var factory2 = {
|
|
|
5945
5950
|
}
|
|
5946
5951
|
};
|
|
5947
5952
|
|
|
5948
|
-
// bazel-out/
|
|
5953
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
5949
5954
|
import ts30 from "typescript";
|
|
5950
5955
|
|
|
5951
|
-
// bazel-out/
|
|
5956
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
5952
5957
|
var DiagnosticCategoryLabel;
|
|
5953
5958
|
(function(DiagnosticCategoryLabel2) {
|
|
5954
5959
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -5956,7 +5961,7 @@ var DiagnosticCategoryLabel;
|
|
|
5956
5961
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
5957
5962
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
5958
5963
|
|
|
5959
|
-
// bazel-out/
|
|
5964
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
5960
5965
|
var ExtendedTemplateCheckerImpl = class {
|
|
5961
5966
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
5962
5967
|
var _a, _b, _c, _d, _e;
|
|
@@ -6008,13 +6013,13 @@ function assertNever(value) {
|
|
|
6008
6013
|
${value}`);
|
|
6009
6014
|
}
|
|
6010
6015
|
|
|
6011
|
-
// bazel-out/
|
|
6016
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
6012
6017
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
6013
6018
|
factory,
|
|
6014
6019
|
factory2
|
|
6015
6020
|
];
|
|
6016
6021
|
|
|
6017
|
-
// bazel-out/
|
|
6022
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
6018
6023
|
var CompilationTicketKind;
|
|
6019
6024
|
(function(CompilationTicketKind2) {
|
|
6020
6025
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -6710,7 +6715,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
6710
6715
|
return versions;
|
|
6711
6716
|
}
|
|
6712
6717
|
|
|
6713
|
-
// bazel-out/
|
|
6718
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
6714
6719
|
import ts32 from "typescript";
|
|
6715
6720
|
var DelegatingCompilerHost2 = class {
|
|
6716
6721
|
constructor(delegate) {
|
|
@@ -6854,7 +6859,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
6854
6859
|
}
|
|
6855
6860
|
};
|
|
6856
6861
|
|
|
6857
|
-
// bazel-out/
|
|
6862
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
6858
6863
|
var NgtscProgram = class {
|
|
6859
6864
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
6860
6865
|
this.options = options;
|
|
@@ -7061,15 +7066,15 @@ function mergeEmitResults(emitResults) {
|
|
|
7061
7066
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
7062
7067
|
}
|
|
7063
7068
|
|
|
7064
|
-
// bazel-out/
|
|
7069
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
7065
7070
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
7066
7071
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
7067
7072
|
}
|
|
7068
7073
|
|
|
7069
|
-
// bazel-out/
|
|
7074
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
7070
7075
|
import ts35 from "typescript";
|
|
7071
7076
|
|
|
7072
|
-
// bazel-out/
|
|
7077
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
7073
7078
|
import ts34 from "typescript";
|
|
7074
7079
|
var GENERATED_FILES = /(.*?)\.(ngfactory|shim\.ngstyle|ngstyle|ngsummary)\.(js|d\.ts|ts)$/;
|
|
7075
7080
|
function createMessageDiagnostic(messageText) {
|
|
@@ -7084,7 +7089,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
7084
7089
|
};
|
|
7085
7090
|
}
|
|
7086
7091
|
|
|
7087
|
-
// bazel-out/
|
|
7092
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
7088
7093
|
var defaultFormatHost = {
|
|
7089
7094
|
getCurrentDirectory: () => ts35.sys.getCurrentDirectory(),
|
|
7090
7095
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -7297,4 +7302,4 @@ export {
|
|
|
7297
7302
|
* found in the LICENSE file at https://angular.io/license
|
|
7298
7303
|
*/
|
|
7299
7304
|
// Closure Compiler ignores @suppress and similar if the comment contains @license.
|
|
7300
|
-
//# sourceMappingURL=chunk-
|
|
7305
|
+
//# sourceMappingURL=chunk-RT3OZMJ6.js.map
|