@angular/compiler-cli 18.2.0-rc.0 → 18.2.1
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-OPQN45UO.js → chunk-4GMJ67OV.js} +3 -3
- package/bundles/{chunk-JN25LQVK.js → chunk-56IXZIL6.js} +129 -129
- package/bundles/{chunk-JN25LQVK.js.map → chunk-56IXZIL6.js.map} +1 -1
- package/bundles/{chunk-WYWH4ABE.js → chunk-5DVL3S3Z.js} +43 -43
- package/bundles/{chunk-BQJWNGMG.js → chunk-5I46MBAD.js} +152 -166
- package/bundles/chunk-5I46MBAD.js.map +6 -0
- package/bundles/{chunk-KCKRBU6N.js → chunk-B4ZOGV3N.js} +31 -31
- package/bundles/{chunk-E3LRITIP.js → chunk-NOUP24WG.js} +5 -5
- package/bundles/{chunk-LYJKWJUC.js → chunk-SBDNBITT.js} +3 -3
- package/bundles/{chunk-ERN7RQQ7.js → chunk-THQF5ZZE.js} +5 -5
- package/bundles/{chunk-QYV344EV.js → chunk-WR7TUJ7M.js} +7 -7
- package/bundles/{chunk-3W345P4E.js → chunk-XNL3EK5H.js} +7 -7
- package/bundles/{chunk-A35M6UXY.js → chunk-ZHJO7SMX.js} +12 -12
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +1 -1
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +4 -4
- package/bundles/private/tooling.js +6 -6
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +3 -3
- package/src/ngtsc/docs/src/entities.d.ts +9 -6
- package/src/ngtsc/docs/src/function_extractor.d.ts +16 -6
- package/src/ngtsc/typecheck/src/expression.d.ts +12 -1
- package/bundles/chunk-BQJWNGMG.js.map +0 -6
- /package/bundles/{chunk-OPQN45UO.js.map → chunk-4GMJ67OV.js.map} +0 -0
- /package/bundles/{chunk-WYWH4ABE.js.map → chunk-5DVL3S3Z.js.map} +0 -0
- /package/bundles/{chunk-KCKRBU6N.js.map → chunk-B4ZOGV3N.js.map} +0 -0
- /package/bundles/{chunk-E3LRITIP.js.map → chunk-NOUP24WG.js.map} +0 -0
- /package/bundles/{chunk-LYJKWJUC.js.map → chunk-SBDNBITT.js.map} +0 -0
- /package/bundles/{chunk-ERN7RQQ7.js.map → chunk-THQF5ZZE.js.map} +0 -0
- /package/bundles/{chunk-QYV344EV.js.map → chunk-WR7TUJ7M.js.map} +0 -0
- /package/bundles/{chunk-3W345P4E.js.map → chunk-XNL3EK5H.js.map} +0 -0
- /package/bundles/{chunk-A35M6UXY.js.map → chunk-ZHJO7SMX.js.map} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
angularJitApplicationTransform
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZHJO7SMX.js";
|
|
8
8
|
import {
|
|
9
9
|
CompilationMode,
|
|
10
10
|
ComponentDecoratorHandler,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
retagAllTsFiles,
|
|
52
52
|
tryParseInitializerApi,
|
|
53
53
|
untagAllTsFiles
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-56IXZIL6.js";
|
|
55
55
|
import {
|
|
56
56
|
AbsoluteModuleStrategy,
|
|
57
57
|
AliasStrategy,
|
|
@@ -87,14 +87,14 @@ import {
|
|
|
87
87
|
relativePathBetween,
|
|
88
88
|
replaceTsWithNgInErrors,
|
|
89
89
|
toUnredirectedSourceFile
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-5DVL3S3Z.js";
|
|
91
91
|
import {
|
|
92
92
|
ActivePerfRecorder,
|
|
93
93
|
DelegatingPerfRecorder,
|
|
94
94
|
PerfCheckpoint,
|
|
95
95
|
PerfEvent,
|
|
96
96
|
PerfPhase
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-THQF5ZZE.js";
|
|
98
98
|
import {
|
|
99
99
|
LogicalFileSystem,
|
|
100
100
|
absoluteFrom,
|
|
@@ -103,9 +103,9 @@ import {
|
|
|
103
103
|
getFileSystem,
|
|
104
104
|
join,
|
|
105
105
|
resolve
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-XNL3EK5H.js";
|
|
107
107
|
|
|
108
|
-
// bazel-out/
|
|
108
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
109
109
|
var DEFAULT_ERROR_CODE = 100;
|
|
110
110
|
var UNKNOWN_ERROR_CODE = 500;
|
|
111
111
|
var SOURCE = "angular";
|
|
@@ -123,7 +123,7 @@ var EmitFlags;
|
|
|
123
123
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
124
124
|
})(EmitFlags || (EmitFlags = {}));
|
|
125
125
|
|
|
126
|
-
// bazel-out/
|
|
126
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
127
127
|
import ts from "typescript";
|
|
128
128
|
var wrapHostForTest = null;
|
|
129
129
|
function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
|
|
@@ -133,7 +133,7 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
|
|
|
133
133
|
return tsHost;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
// bazel-out/
|
|
136
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
|
|
137
137
|
var EntryType;
|
|
138
138
|
(function(EntryType2) {
|
|
139
139
|
EntryType2["Block"] = "block";
|
|
@@ -180,23 +180,23 @@ function isDocEntryWithSourceInfo(entry) {
|
|
|
180
180
|
return "source" in entry;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
// bazel-out/
|
|
183
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
184
184
|
import ts10 from "typescript";
|
|
185
185
|
|
|
186
|
-
// bazel-out/
|
|
186
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
187
187
|
import ts5 from "typescript";
|
|
188
188
|
|
|
189
|
-
// bazel-out/
|
|
189
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
|
|
190
190
|
function isAngularPrivateName(name) {
|
|
191
191
|
var _a;
|
|
192
192
|
const firstChar = (_a = name[0]) != null ? _a : "";
|
|
193
193
|
return firstChar === "\u0275" || firstChar === "_";
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
// bazel-out/
|
|
196
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
197
197
|
import ts3 from "typescript";
|
|
198
198
|
|
|
199
|
-
// bazel-out/
|
|
199
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
|
|
200
200
|
function extractGenerics(declaration) {
|
|
201
201
|
var _a, _b;
|
|
202
202
|
return (_b = (_a = declaration.typeParameters) == null ? void 0 : _a.map((typeParam) => {
|
|
@@ -209,7 +209,7 @@ function extractGenerics(declaration) {
|
|
|
209
209
|
})) != null ? _b : [];
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
// bazel-out/
|
|
212
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
|
|
213
213
|
import ts2 from "typescript";
|
|
214
214
|
var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf|ViewChild|ViewChildren|ContentChild|ContentChildren))/g;
|
|
215
215
|
function extractJsDocTags(node) {
|
|
@@ -253,63 +253,52 @@ function unescapeAngularDecorators(comment) {
|
|
|
253
253
|
return comment.replace(/_NG_AT_/g, "@");
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
// bazel-out/
|
|
256
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
|
|
257
257
|
function extractResolvedTypeString(node, checker) {
|
|
258
258
|
return checker.typeToString(checker.getTypeAtLocation(node));
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
// bazel-out/
|
|
261
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
262
262
|
var FunctionExtractor = class {
|
|
263
|
-
constructor(name,
|
|
263
|
+
constructor(name, exportDeclaration, typeChecker) {
|
|
264
264
|
this.name = name;
|
|
265
|
-
this.
|
|
265
|
+
this.exportDeclaration = exportDeclaration;
|
|
266
266
|
this.typeChecker = typeChecker;
|
|
267
267
|
}
|
|
268
268
|
extract() {
|
|
269
|
-
var _a;
|
|
270
|
-
const signature = this.typeChecker.getSignatureFromDeclaration(this.
|
|
269
|
+
var _a, _b;
|
|
270
|
+
const signature = this.typeChecker.getSignatureFromDeclaration(this.exportDeclaration);
|
|
271
271
|
const returnType = signature ? this.typeChecker.typeToString(
|
|
272
272
|
this.typeChecker.getReturnTypeOfSignature(signature),
|
|
273
273
|
void 0,
|
|
274
274
|
ts3.TypeFormatFlags.NoTypeReduction | ts3.TypeFormatFlags.NoTruncation
|
|
275
275
|
) : "unknown";
|
|
276
|
-
const
|
|
276
|
+
const implementation = (_a = findImplementationOfFunction(this.exportDeclaration, this.typeChecker)) != null ? _a : this.exportDeclaration;
|
|
277
|
+
const type = this.typeChecker.getTypeAtLocation(this.exportDeclaration);
|
|
278
|
+
const overloads = extractCallSignatures(this.name, this.typeChecker, type);
|
|
279
|
+
const jsdocsTags = extractJsDocTags(implementation);
|
|
280
|
+
const description = extractJsDocDescription(implementation);
|
|
277
281
|
return {
|
|
278
|
-
params: extractAllParams(this.declaration.parameters, this.typeChecker),
|
|
279
282
|
name: this.name,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
+
signatures: overloads,
|
|
284
|
+
implementation: {
|
|
285
|
+
params: extractAllParams(implementation.parameters, this.typeChecker),
|
|
286
|
+
isNewType: ts3.isConstructSignatureDeclaration(implementation),
|
|
287
|
+
returnType,
|
|
288
|
+
returnDescription: (_b = jsdocsTags.find((tag) => tag.name === "returns")) == null ? void 0 : _b.comment,
|
|
289
|
+
generics: extractGenerics(implementation),
|
|
290
|
+
name: this.name,
|
|
291
|
+
description,
|
|
292
|
+
entryType: EntryType.Function,
|
|
293
|
+
jsdocTags: jsdocsTags,
|
|
294
|
+
rawComment: extractRawJsDoc(implementation)
|
|
295
|
+
},
|
|
283
296
|
entryType: EntryType.Function,
|
|
284
|
-
|
|
285
|
-
description: extractJsDocDescription(this.declaration),
|
|
297
|
+
description,
|
|
286
298
|
jsdocTags: jsdocsTags,
|
|
287
|
-
rawComment: extractRawJsDoc(
|
|
299
|
+
rawComment: extractRawJsDoc(implementation)
|
|
288
300
|
};
|
|
289
301
|
}
|
|
290
|
-
getOverloads() {
|
|
291
|
-
var _a, _b, _c, _d;
|
|
292
|
-
const overloads = [];
|
|
293
|
-
const symbol = this.getSymbol();
|
|
294
|
-
const declarationCount = (_b = (_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.length) != null ? _b : 0;
|
|
295
|
-
if (declarationCount > 1) {
|
|
296
|
-
for (let i = 0; i < declarationCount - 1; i++) {
|
|
297
|
-
const overloadDeclaration = (_c = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _c[i];
|
|
298
|
-
if ((overloadDeclaration == null ? void 0 : overloadDeclaration.pos) === this.declaration.pos)
|
|
299
|
-
continue;
|
|
300
|
-
if (overloadDeclaration && ts3.isFunctionDeclaration(overloadDeclaration) && ((_d = overloadDeclaration.modifiers) == null ? void 0 : _d.some((mod) => mod.kind === ts3.SyntaxKind.ExportKeyword))) {
|
|
301
|
-
overloads.push(overloadDeclaration);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
return overloads;
|
|
306
|
-
}
|
|
307
|
-
getSymbol() {
|
|
308
|
-
return this.typeChecker.getSymbolsInScope(this.declaration, ts3.SymbolFlags.Function).find((s) => {
|
|
309
|
-
var _a;
|
|
310
|
-
return s.name === ((_a = this.declaration.name) == null ? void 0 : _a.getText());
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
302
|
};
|
|
314
303
|
function extractAllParams(params, typeChecker) {
|
|
315
304
|
return params.map((param) => ({
|
|
@@ -320,8 +309,44 @@ function extractAllParams(params, typeChecker) {
|
|
|
320
309
|
isRestParam: !!param.dotDotDotToken
|
|
321
310
|
}));
|
|
322
311
|
}
|
|
312
|
+
function filterSignatureDeclarations(signatures) {
|
|
313
|
+
const result = [];
|
|
314
|
+
for (const signature of signatures) {
|
|
315
|
+
const decl = signature.getDeclaration();
|
|
316
|
+
if (ts3.isFunctionDeclaration(decl) || ts3.isCallSignatureDeclaration(decl) || ts3.isMethodDeclaration(decl)) {
|
|
317
|
+
result.push({ signature, decl });
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
return result;
|
|
321
|
+
}
|
|
322
|
+
function extractCallSignatures(name, typeChecker, type) {
|
|
323
|
+
return filterSignatureDeclarations(type.getCallSignatures()).map(({ decl, signature }) => ({
|
|
324
|
+
name,
|
|
325
|
+
entryType: EntryType.Function,
|
|
326
|
+
description: extractJsDocDescription(decl),
|
|
327
|
+
generics: extractGenerics(decl),
|
|
328
|
+
isNewType: false,
|
|
329
|
+
jsdocTags: extractJsDocTags(decl),
|
|
330
|
+
params: extractAllParams(decl.parameters, typeChecker),
|
|
331
|
+
rawComment: extractRawJsDoc(decl),
|
|
332
|
+
returnType: typeChecker.typeToString(
|
|
333
|
+
typeChecker.getReturnTypeOfSignature(signature),
|
|
334
|
+
void 0,
|
|
335
|
+
ts3.TypeFormatFlags.NoTypeReduction | ts3.TypeFormatFlags.NoTruncation
|
|
336
|
+
)
|
|
337
|
+
}));
|
|
338
|
+
}
|
|
339
|
+
function findImplementationOfFunction(node, typeChecker) {
|
|
340
|
+
var _a;
|
|
341
|
+
if (node.body !== void 0 || node.name === void 0) {
|
|
342
|
+
return node;
|
|
343
|
+
}
|
|
344
|
+
const symbol = typeChecker.getSymbolAtLocation(node.name);
|
|
345
|
+
const implementation = (_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.find((s) => ts3.isFunctionDeclaration(s) && s.body !== void 0);
|
|
346
|
+
return implementation;
|
|
347
|
+
}
|
|
323
348
|
|
|
324
|
-
// bazel-out/
|
|
349
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/internal.mjs
|
|
325
350
|
import ts4 from "typescript";
|
|
326
351
|
function isInternal(member) {
|
|
327
352
|
return extractJsDocTags(member).some((tag) => tag.name === "internal") || hasLeadingInternalComment(member);
|
|
@@ -340,7 +365,7 @@ function hasLeadingInternalComment(member) {
|
|
|
340
365
|
)) != null ? _a : false;
|
|
341
366
|
}
|
|
342
367
|
|
|
343
|
-
// bazel-out/
|
|
368
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
344
369
|
var ClassExtractor = class {
|
|
345
370
|
constructor(declaration, typeChecker) {
|
|
346
371
|
this.declaration = declaration;
|
|
@@ -371,7 +396,7 @@ var ClassExtractor = class {
|
|
|
371
396
|
return members;
|
|
372
397
|
}
|
|
373
398
|
extractClassMember(memberDeclaration) {
|
|
374
|
-
if (this.isMethod(memberDeclaration)
|
|
399
|
+
if (this.isMethod(memberDeclaration)) {
|
|
375
400
|
return this.extractMethod(memberDeclaration);
|
|
376
401
|
} else if (this.isProperty(memberDeclaration)) {
|
|
377
402
|
return this.extractClassProperty(memberDeclaration);
|
|
@@ -446,7 +471,7 @@ var ClassExtractor = class {
|
|
|
446
471
|
const staticMembers = typeOfConstructor.getProperties();
|
|
447
472
|
const result = [];
|
|
448
473
|
for (const member of [...members, ...staticMembers]) {
|
|
449
|
-
const memberDeclarations = (_a = member.getDeclarations()) != null ? _a : [];
|
|
474
|
+
const memberDeclarations = this.filterMethodOverloads((_a = member.getDeclarations()) != null ? _a : []);
|
|
450
475
|
for (const memberDeclaration of memberDeclarations) {
|
|
451
476
|
if (this.isDocumentableMember(memberDeclaration)) {
|
|
452
477
|
result.push(memberDeclaration);
|
|
@@ -455,6 +480,14 @@ var ClassExtractor = class {
|
|
|
455
480
|
}
|
|
456
481
|
return result;
|
|
457
482
|
}
|
|
483
|
+
filterMethodOverloads(declarations) {
|
|
484
|
+
return declarations.filter((declaration) => {
|
|
485
|
+
if (ts5.isFunctionDeclaration(declaration) || ts5.isMethodDeclaration(declaration)) {
|
|
486
|
+
return !!declaration.body || ts5.getCombinedModifierFlags(declaration) & ts5.ModifierFlags.Abstract;
|
|
487
|
+
}
|
|
488
|
+
return true;
|
|
489
|
+
});
|
|
490
|
+
}
|
|
458
491
|
getMemberTagsFromModifiers(mods) {
|
|
459
492
|
const tags = [];
|
|
460
493
|
for (const mod of mods) {
|
|
@@ -505,12 +538,6 @@ var ClassExtractor = class {
|
|
|
505
538
|
const modifiers = (_a = this.declaration.modifiers) != null ? _a : [];
|
|
506
539
|
return modifiers.some((mod) => mod.kind === ts5.SyntaxKind.AbstractKeyword);
|
|
507
540
|
}
|
|
508
|
-
isImplementationForOverload(method) {
|
|
509
|
-
if (method.kind === ts5.SyntaxKind.MethodSignature)
|
|
510
|
-
return false;
|
|
511
|
-
const signature = this.typeChecker.getSignatureFromDeclaration(method);
|
|
512
|
-
return signature && this.typeChecker.isImplementationOfOverload(signature.declaration);
|
|
513
|
-
}
|
|
514
541
|
};
|
|
515
542
|
var DirectiveExtractor = class extends ClassExtractor {
|
|
516
543
|
constructor(declaration, reference, metadata, checker) {
|
|
@@ -604,7 +631,7 @@ function extractInterface(declaration, typeChecker) {
|
|
|
604
631
|
return extractor.extract();
|
|
605
632
|
}
|
|
606
633
|
|
|
607
|
-
// bazel-out/
|
|
634
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
608
635
|
import ts6 from "typescript";
|
|
609
636
|
var LITERAL_AS_ENUM_TAG = "object-literal-as-enum";
|
|
610
637
|
function extractConstant(declaration, typeChecker) {
|
|
@@ -662,7 +689,7 @@ function extractLiteralPropertiesAsEnumMembers(declaration) {
|
|
|
662
689
|
});
|
|
663
690
|
}
|
|
664
691
|
|
|
665
|
-
// bazel-out/
|
|
692
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
|
|
666
693
|
import ts7 from "typescript";
|
|
667
694
|
function extractorDecorator(declaration, typeChecker) {
|
|
668
695
|
const documentedNode = getDecoratorJsDocNode(declaration);
|
|
@@ -735,7 +762,7 @@ function getDecoratorJsDocNode(declaration) {
|
|
|
735
762
|
return callSignature;
|
|
736
763
|
}
|
|
737
764
|
|
|
738
|
-
// bazel-out/
|
|
765
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
739
766
|
import ts8 from "typescript";
|
|
740
767
|
function extractEnum(declaration, typeChecker) {
|
|
741
768
|
return {
|
|
@@ -766,7 +793,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
766
793
|
return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
|
|
767
794
|
}
|
|
768
795
|
|
|
769
|
-
// bazel-out/
|
|
796
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/initializer_api_function_extractor.mjs
|
|
770
797
|
import ts9 from "typescript";
|
|
771
798
|
var initializerApiTag = "initializerApiFunction";
|
|
772
799
|
function isInitializerApiFunction(node, typeChecker) {
|
|
@@ -797,7 +824,7 @@ function extractInitializerApiFunction(node, typeChecker) {
|
|
|
797
824
|
}
|
|
798
825
|
const name = node.name.text;
|
|
799
826
|
const type = typeChecker.getTypeAtLocation(node);
|
|
800
|
-
const callFunction = extractFunctionWithOverloads(name, type
|
|
827
|
+
const callFunction = extractFunctionWithOverloads(name, type, typeChecker);
|
|
801
828
|
const subFunctions = [];
|
|
802
829
|
for (const property of type.getProperties()) {
|
|
803
830
|
const subName = property.getName();
|
|
@@ -806,7 +833,7 @@ function extractInitializerApiFunction(node, typeChecker) {
|
|
|
806
833
|
throw new Error(`Initializer API: Could not resolve declaration of sub-property: ${name}.${subName}`);
|
|
807
834
|
}
|
|
808
835
|
const subType = typeChecker.getTypeAtLocation(subDecl);
|
|
809
|
-
subFunctions.push(extractFunctionWithOverloads(subName, subType
|
|
836
|
+
subFunctions.push(extractFunctionWithOverloads(subName, subType, typeChecker));
|
|
810
837
|
}
|
|
811
838
|
let jsdocTags;
|
|
812
839
|
let description;
|
|
@@ -867,47 +894,15 @@ function getContainerVariableStatement(node) {
|
|
|
867
894
|
}
|
|
868
895
|
return node.parent.parent;
|
|
869
896
|
}
|
|
870
|
-
function
|
|
871
|
-
const result = [];
|
|
872
|
-
for (const signature of signatures) {
|
|
873
|
-
const decl = signature.getDeclaration();
|
|
874
|
-
if (ts9.isFunctionDeclaration(decl) || ts9.isCallSignatureDeclaration(decl)) {
|
|
875
|
-
result.push({ signature, decl });
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
return result;
|
|
879
|
-
}
|
|
880
|
-
function extractFunctionWithOverloads(name, signatures, typeChecker) {
|
|
897
|
+
function extractFunctionWithOverloads(name, type, typeChecker) {
|
|
881
898
|
return {
|
|
882
899
|
name,
|
|
883
|
-
signatures:
|
|
884
|
-
name,
|
|
885
|
-
entryType: EntryType.Function,
|
|
886
|
-
description: extractJsDocDescription(decl),
|
|
887
|
-
generics: extractGenerics(decl),
|
|
888
|
-
isNewType: false,
|
|
889
|
-
jsdocTags: extractJsDocTags(decl),
|
|
890
|
-
params: extractAllParams(decl.parameters, typeChecker),
|
|
891
|
-
rawComment: extractRawJsDoc(decl),
|
|
892
|
-
returnType: typeChecker.typeToString(
|
|
893
|
-
typeChecker.getReturnTypeOfSignature(signature),
|
|
894
|
-
void 0,
|
|
895
|
-
ts9.TypeFormatFlags.NoTypeReduction | ts9.TypeFormatFlags.NoTruncation
|
|
896
|
-
)
|
|
897
|
-
})),
|
|
900
|
+
signatures: extractCallSignatures(name, typeChecker, type),
|
|
898
901
|
implementation: null
|
|
899
902
|
};
|
|
900
903
|
}
|
|
901
|
-
function findImplementationOfFunction(node, typeChecker) {
|
|
902
|
-
var _a;
|
|
903
|
-
if (node.body !== void 0 || node.name === void 0) {
|
|
904
|
-
return node;
|
|
905
|
-
}
|
|
906
|
-
const symbol = typeChecker.getSymbolAtLocation(node.name);
|
|
907
|
-
return (_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.find((s) => ts9.isFunctionDeclaration(s) && s.body !== void 0);
|
|
908
|
-
}
|
|
909
904
|
|
|
910
|
-
// bazel-out/
|
|
905
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
911
906
|
function extractTypeAlias(declaration) {
|
|
912
907
|
return {
|
|
913
908
|
name: declaration.name.getText(),
|
|
@@ -919,7 +914,7 @@ function extractTypeAlias(declaration) {
|
|
|
919
914
|
};
|
|
920
915
|
}
|
|
921
916
|
|
|
922
|
-
// bazel-out/
|
|
917
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
923
918
|
var DocsExtractor = class {
|
|
924
919
|
constructor(typeChecker, metadataReader) {
|
|
925
920
|
this.typeChecker = typeChecker;
|
|
@@ -975,15 +970,6 @@ var DocsExtractor = class {
|
|
|
975
970
|
const reflector = new TypeScriptReflectionHost(this.typeChecker);
|
|
976
971
|
const exportedDeclarationMap = reflector.getExportsOfModule(sourceFile);
|
|
977
972
|
let exportedDeclarations = Array.from((_a = exportedDeclarationMap == null ? void 0 : exportedDeclarationMap.entries()) != null ? _a : []).map(([exportName, declaration]) => [exportName, declaration.node]);
|
|
978
|
-
const declarationCount = exportedDeclarations.length;
|
|
979
|
-
for (let i = 0; i < declarationCount; i++) {
|
|
980
|
-
const [exportName, declaration] = exportedDeclarations[i];
|
|
981
|
-
if (ts10.isFunctionDeclaration(declaration)) {
|
|
982
|
-
const extractor = new FunctionExtractor(exportName, declaration, this.typeChecker);
|
|
983
|
-
const overloads = extractor.getOverloads().map((overload) => [exportName, overload]);
|
|
984
|
-
exportedDeclarations.push(...overloads);
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
973
|
return exportedDeclarations.sort(([a, declarationA], [b, declarationB]) => declarationA.pos - declarationB.pos);
|
|
988
974
|
}
|
|
989
975
|
};
|
|
@@ -1003,11 +989,11 @@ function getRelativeFilePath(sourceFile, rootDir) {
|
|
|
1003
989
|
return relativePath;
|
|
1004
990
|
}
|
|
1005
991
|
|
|
1006
|
-
// bazel-out/
|
|
992
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
1007
993
|
import { HtmlParser, MessageBundle } from "@angular/compiler";
|
|
1008
994
|
import ts24 from "typescript";
|
|
1009
995
|
|
|
1010
|
-
// bazel-out/
|
|
996
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
1011
997
|
import { Xliff, Xliff2, Xmb } from "@angular/compiler";
|
|
1012
998
|
import * as path from "path";
|
|
1013
999
|
function i18nGetExtension(formatName) {
|
|
@@ -1058,10 +1044,10 @@ function getPathNormalizer(basePath) {
|
|
|
1058
1044
|
};
|
|
1059
1045
|
}
|
|
1060
1046
|
|
|
1061
|
-
// bazel-out/
|
|
1047
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1062
1048
|
import ts11 from "typescript";
|
|
1063
1049
|
|
|
1064
|
-
// bazel-out/
|
|
1050
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
1065
1051
|
function toNumbers(value) {
|
|
1066
1052
|
const suffixIndex = value.lastIndexOf("-");
|
|
1067
1053
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -1096,7 +1082,7 @@ function compareVersions(v1, v2) {
|
|
|
1096
1082
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
1097
1083
|
}
|
|
1098
1084
|
|
|
1099
|
-
// bazel-out/
|
|
1085
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1100
1086
|
var MIN_TS_VERSION = "5.4.0";
|
|
1101
1087
|
var MAX_TS_VERSION = "5.6.0";
|
|
1102
1088
|
var tsVersion = ts11.version;
|
|
@@ -1109,11 +1095,11 @@ function verifySupportedTypeScriptVersion() {
|
|
|
1109
1095
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
1110
1096
|
}
|
|
1111
1097
|
|
|
1112
|
-
// bazel-out/
|
|
1098
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
1113
1099
|
import { R3Identifiers } from "@angular/compiler";
|
|
1114
1100
|
import ts22 from "typescript";
|
|
1115
1101
|
|
|
1116
|
-
// bazel-out/
|
|
1102
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
1117
1103
|
var CycleAnalyzer = class {
|
|
1118
1104
|
constructor(importGraph) {
|
|
1119
1105
|
this.importGraph = importGraph;
|
|
@@ -1184,7 +1170,7 @@ var Cycle = class {
|
|
|
1184
1170
|
}
|
|
1185
1171
|
};
|
|
1186
1172
|
|
|
1187
|
-
// bazel-out/
|
|
1173
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
1188
1174
|
import ts12 from "typescript";
|
|
1189
1175
|
var ImportGraph = class {
|
|
1190
1176
|
constructor(checker, perf) {
|
|
@@ -1276,7 +1262,7 @@ var Found = class {
|
|
|
1276
1262
|
}
|
|
1277
1263
|
};
|
|
1278
1264
|
|
|
1279
|
-
// bazel-out/
|
|
1265
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
1280
1266
|
import ts13 from "typescript";
|
|
1281
1267
|
var FlatIndexGenerator = class {
|
|
1282
1268
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -1301,7 +1287,7 @@ export * from '${relativeEntryPoint}';
|
|
|
1301
1287
|
}
|
|
1302
1288
|
};
|
|
1303
1289
|
|
|
1304
|
-
// bazel-out/
|
|
1290
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
1305
1291
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
1306
1292
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
1307
1293
|
let resolvedEntryPoint = null;
|
|
@@ -1317,7 +1303,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
1317
1303
|
return resolvedEntryPoint;
|
|
1318
1304
|
}
|
|
1319
1305
|
|
|
1320
|
-
// bazel-out/
|
|
1306
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
1321
1307
|
import ts14 from "typescript";
|
|
1322
1308
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
1323
1309
|
const diagnostics = [];
|
|
@@ -1397,7 +1383,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
1397
1383
|
}
|
|
1398
1384
|
}
|
|
1399
1385
|
|
|
1400
|
-
// bazel-out/
|
|
1386
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
1401
1387
|
var ReferenceGraph = class {
|
|
1402
1388
|
constructor() {
|
|
1403
1389
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -1451,7 +1437,7 @@ var ReferenceGraph = class {
|
|
|
1451
1437
|
}
|
|
1452
1438
|
};
|
|
1453
1439
|
|
|
1454
|
-
// bazel-out/
|
|
1440
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1455
1441
|
var FileDependencyGraph = class {
|
|
1456
1442
|
constructor() {
|
|
1457
1443
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1518,7 +1504,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1518
1504
|
return false;
|
|
1519
1505
|
}
|
|
1520
1506
|
|
|
1521
|
-
// bazel-out/
|
|
1507
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1522
1508
|
var IncrementalStateKind;
|
|
1523
1509
|
(function(IncrementalStateKind2) {
|
|
1524
1510
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1526,7 +1512,7 @@ var IncrementalStateKind;
|
|
|
1526
1512
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1527
1513
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1528
1514
|
|
|
1529
|
-
// bazel-out/
|
|
1515
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1530
1516
|
var PhaseKind;
|
|
1531
1517
|
(function(PhaseKind2) {
|
|
1532
1518
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1727,7 +1713,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1727
1713
|
}
|
|
1728
1714
|
}
|
|
1729
1715
|
|
|
1730
|
-
// bazel-out/
|
|
1716
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1731
1717
|
var TrackedIncrementalBuildStrategy = class {
|
|
1732
1718
|
constructor() {
|
|
1733
1719
|
this.state = null;
|
|
@@ -1763,7 +1749,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1763
1749
|
};
|
|
1764
1750
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1765
1751
|
|
|
1766
|
-
// bazel-out/
|
|
1752
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1767
1753
|
var IdentifierKind;
|
|
1768
1754
|
(function(IdentifierKind2) {
|
|
1769
1755
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1782,7 +1768,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1782
1768
|
}
|
|
1783
1769
|
};
|
|
1784
1770
|
|
|
1785
|
-
// bazel-out/
|
|
1771
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1786
1772
|
var IndexingContext = class {
|
|
1787
1773
|
constructor() {
|
|
1788
1774
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1792,10 +1778,10 @@ var IndexingContext = class {
|
|
|
1792
1778
|
}
|
|
1793
1779
|
};
|
|
1794
1780
|
|
|
1795
|
-
// bazel-out/
|
|
1781
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1796
1782
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1797
1783
|
|
|
1798
|
-
// bazel-out/
|
|
1784
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1799
1785
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate, TmplAstVariable } from "@angular/compiler";
|
|
1800
1786
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1801
1787
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -2090,7 +2076,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2090
2076
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2091
2077
|
}
|
|
2092
2078
|
|
|
2093
|
-
// bazel-out/
|
|
2079
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2094
2080
|
function generateAnalysis(context) {
|
|
2095
2081
|
const analysis = /* @__PURE__ */ new Map();
|
|
2096
2082
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2126,7 +2112,7 @@ function generateAnalysis(context) {
|
|
|
2126
2112
|
return analysis;
|
|
2127
2113
|
}
|
|
2128
2114
|
|
|
2129
|
-
// bazel-out/
|
|
2115
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2130
2116
|
var NgModuleIndexImpl = class {
|
|
2131
2117
|
constructor(metaReader, localReader) {
|
|
2132
2118
|
this.metaReader = metaReader;
|
|
@@ -2215,7 +2201,7 @@ var NgModuleIndexImpl = class {
|
|
|
2215
2201
|
}
|
|
2216
2202
|
};
|
|
2217
2203
|
|
|
2218
|
-
// bazel-out/
|
|
2204
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2219
2205
|
import ts15 from "typescript";
|
|
2220
2206
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2221
2207
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -2365,7 +2351,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2365
2351
|
};
|
|
2366
2352
|
}
|
|
2367
2353
|
|
|
2368
|
-
// bazel-out/
|
|
2354
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2369
2355
|
var StandaloneComponentScopeReader = class {
|
|
2370
2356
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
2371
2357
|
this.metaReader = metaReader;
|
|
@@ -2461,10 +2447,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2461
2447
|
}
|
|
2462
2448
|
};
|
|
2463
2449
|
|
|
2464
|
-
// bazel-out/
|
|
2450
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2465
2451
|
import { ASTWithSource as ASTWithSource3, BindingType, Interpolation, PropertyRead as PropertyRead2, TmplAstBoundAttribute } from "@angular/compiler";
|
|
2466
2452
|
|
|
2467
|
-
// bazel-out/
|
|
2453
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
|
|
2468
2454
|
import ts16 from "typescript";
|
|
2469
2455
|
var SIGNAL_FNS = /* @__PURE__ */ new Set([
|
|
2470
2456
|
"WritableSignal",
|
|
@@ -2484,7 +2470,7 @@ function isSignalSymbol(symbol) {
|
|
|
2484
2470
|
});
|
|
2485
2471
|
}
|
|
2486
2472
|
|
|
2487
|
-
// bazel-out/
|
|
2473
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
2488
2474
|
import { ASTWithSource as ASTWithSource2, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
2489
2475
|
var TemplateCheckWithVisitor = class {
|
|
2490
2476
|
constructor() {
|
|
@@ -2618,7 +2604,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
2618
2604
|
}
|
|
2619
2605
|
};
|
|
2620
2606
|
|
|
2621
|
-
// bazel-out/
|
|
2607
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2622
2608
|
var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
|
|
2623
2609
|
var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
|
|
2624
2610
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2670,7 +2656,7 @@ var factory = {
|
|
|
2670
2656
|
create: () => new InterpolatedSignalCheck()
|
|
2671
2657
|
};
|
|
2672
2658
|
|
|
2673
|
-
// bazel-out/
|
|
2659
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
2674
2660
|
import { TmplAstBoundEvent } from "@angular/compiler";
|
|
2675
2661
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
2676
2662
|
constructor() {
|
|
@@ -2696,7 +2682,7 @@ var factory2 = {
|
|
|
2696
2682
|
create: () => new InvalidBananaInBoxCheck()
|
|
2697
2683
|
};
|
|
2698
2684
|
|
|
2699
|
-
// bazel-out/
|
|
2685
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
2700
2686
|
import { TmplAstTemplate as TmplAstTemplate2 } from "@angular/compiler";
|
|
2701
2687
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
2702
2688
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -2741,7 +2727,7 @@ var factory3 = {
|
|
|
2741
2727
|
}
|
|
2742
2728
|
};
|
|
2743
2729
|
|
|
2744
|
-
// bazel-out/
|
|
2730
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
2745
2731
|
import { TmplAstTemplate as TmplAstTemplate3 } from "@angular/compiler";
|
|
2746
2732
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
2747
2733
|
constructor() {
|
|
@@ -2774,7 +2760,7 @@ var factory4 = {
|
|
|
2774
2760
|
create: () => new MissingNgForOfLetCheck()
|
|
2775
2761
|
};
|
|
2776
2762
|
|
|
2777
|
-
// bazel-out/
|
|
2763
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
2778
2764
|
import { Binary } from "@angular/compiler";
|
|
2779
2765
|
import ts17 from "typescript";
|
|
2780
2766
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2820,7 +2806,7 @@ var factory5 = {
|
|
|
2820
2806
|
}
|
|
2821
2807
|
};
|
|
2822
2808
|
|
|
2823
|
-
// bazel-out/
|
|
2809
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
2824
2810
|
import { SafeCall, SafeKeyedRead, SafePropertyRead } from "@angular/compiler";
|
|
2825
2811
|
import ts18 from "typescript";
|
|
2826
2812
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2867,7 +2853,7 @@ var factory6 = {
|
|
|
2867
2853
|
}
|
|
2868
2854
|
};
|
|
2869
2855
|
|
|
2870
|
-
// bazel-out/
|
|
2856
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
2871
2857
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute2 } from "@angular/compiler";
|
|
2872
2858
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
2873
2859
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2891,7 +2877,7 @@ var factory7 = {
|
|
|
2891
2877
|
create: () => new SuffixNotSupportedCheck()
|
|
2892
2878
|
};
|
|
2893
2879
|
|
|
2894
|
-
// bazel-out/
|
|
2880
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
2895
2881
|
import { TmplAstTextAttribute } from "@angular/compiler";
|
|
2896
2882
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
2897
2883
|
constructor() {
|
|
@@ -2930,7 +2916,7 @@ var factory8 = {
|
|
|
2930
2916
|
create: () => new TextAttributeNotBindingSpec()
|
|
2931
2917
|
};
|
|
2932
2918
|
|
|
2933
|
-
// bazel-out/
|
|
2919
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.mjs
|
|
2934
2920
|
import { ASTWithSource as ASTWithSource4, Call, Chain, Conditional, ParsedEventType, PropertyRead as PropertyRead3, SafeCall as SafeCall2, SafePropertyRead as SafePropertyRead2, TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
2935
2921
|
var UninvokedFunctionInEventBindingSpec = class extends TemplateCheckWithVisitor {
|
|
2936
2922
|
constructor() {
|
|
@@ -2982,7 +2968,7 @@ var factory9 = {
|
|
|
2982
2968
|
create: () => new UninvokedFunctionInEventBindingSpec()
|
|
2983
2969
|
};
|
|
2984
2970
|
|
|
2985
|
-
// bazel-out/
|
|
2971
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.mjs
|
|
2986
2972
|
import { AST, ASTWithSource as ASTWithSource5, TmplAstLetDeclaration } from "@angular/compiler";
|
|
2987
2973
|
var UnusedLetDeclarationCheck = class extends TemplateCheckWithVisitor {
|
|
2988
2974
|
constructor() {
|
|
@@ -3027,10 +3013,10 @@ var factory10 = {
|
|
|
3027
3013
|
create: () => new UnusedLetDeclarationCheck()
|
|
3028
3014
|
};
|
|
3029
3015
|
|
|
3030
|
-
// bazel-out/
|
|
3016
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3031
3017
|
import ts19 from "typescript";
|
|
3032
3018
|
|
|
3033
|
-
// bazel-out/
|
|
3019
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
3034
3020
|
var DiagnosticCategoryLabel;
|
|
3035
3021
|
(function(DiagnosticCategoryLabel2) {
|
|
3036
3022
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -3038,7 +3024,7 @@ var DiagnosticCategoryLabel;
|
|
|
3038
3024
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
3039
3025
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
3040
3026
|
|
|
3041
|
-
// bazel-out/
|
|
3027
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3042
3028
|
var ExtendedTemplateCheckerImpl = class {
|
|
3043
3029
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
3044
3030
|
var _a, _b, _c, _d, _e;
|
|
@@ -3091,7 +3077,7 @@ function assertNever(value) {
|
|
|
3091
3077
|
${value}`);
|
|
3092
3078
|
}
|
|
3093
3079
|
|
|
3094
|
-
// bazel-out/
|
|
3080
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
3095
3081
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
3096
3082
|
factory2,
|
|
3097
3083
|
factory5,
|
|
@@ -3109,7 +3095,7 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
|
3109
3095
|
...ALL_DIAGNOSTIC_FACTORIES.map((factory11) => factory11.name)
|
|
3110
3096
|
]);
|
|
3111
3097
|
|
|
3112
|
-
// bazel-out/
|
|
3098
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
|
|
3113
3099
|
import { ASTWithSource as ASTWithSource6, ImplicitReceiver as ImplicitReceiver2, ParsedEventType as ParsedEventType2, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundEvent as TmplAstBoundEvent3, TmplAstLetDeclaration as TmplAstLetDeclaration2, TmplAstRecursiveVisitor as TmplAstRecursiveVisitor2, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
|
|
3114
3100
|
import ts20 from "typescript";
|
|
3115
3101
|
var TemplateSemanticsCheckerImpl = class {
|
|
@@ -3200,7 +3186,7 @@ function unwrapAstWithSource(ast) {
|
|
|
3200
3186
|
return ast instanceof ASTWithSource6 ? ast.ast : ast;
|
|
3201
3187
|
}
|
|
3202
3188
|
|
|
3203
|
-
// bazel-out/
|
|
3189
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
|
|
3204
3190
|
import ts21 from "typescript";
|
|
3205
3191
|
var APIS_TO_CHECK = [
|
|
3206
3192
|
INPUT_INITIALIZER_FN,
|
|
@@ -3251,7 +3237,7 @@ var InitializerApiUsageRule = class {
|
|
|
3251
3237
|
}
|
|
3252
3238
|
};
|
|
3253
3239
|
|
|
3254
|
-
// bazel-out/
|
|
3240
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
|
|
3255
3241
|
var SourceFileValidator = class {
|
|
3256
3242
|
constructor(reflector, importedSymbolsTracker) {
|
|
3257
3243
|
this.rules = [new InitializerApiUsageRule(reflector, importedSymbolsTracker)];
|
|
@@ -3289,7 +3275,7 @@ var SourceFileValidator = class {
|
|
|
3289
3275
|
}
|
|
3290
3276
|
};
|
|
3291
3277
|
|
|
3292
|
-
// bazel-out/
|
|
3278
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
|
|
3293
3279
|
function coreHasSymbol(program, symbol) {
|
|
3294
3280
|
const checker = program.getTypeChecker();
|
|
3295
3281
|
for (const sf of program.getSourceFiles().filter(isMaybeCore)) {
|
|
@@ -3308,7 +3294,7 @@ function isMaybeCore(sf) {
|
|
|
3308
3294
|
return sf.isDeclarationFile && sf.fileName.includes("@angular/core") && sf.fileName.endsWith("index.d.ts");
|
|
3309
3295
|
}
|
|
3310
3296
|
|
|
3311
|
-
// bazel-out/
|
|
3297
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
|
|
3312
3298
|
import semver from "semver";
|
|
3313
3299
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
3314
3300
|
if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
|
|
@@ -3317,7 +3303,7 @@ function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
|
3317
3303
|
return semver.satisfies(coreVersion, minVersion);
|
|
3318
3304
|
}
|
|
3319
3305
|
|
|
3320
|
-
// bazel-out/
|
|
3306
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
3321
3307
|
var CompilationTicketKind;
|
|
3322
3308
|
(function(CompilationTicketKind2) {
|
|
3323
3309
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -4140,7 +4126,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
4140
4126
|
return versions;
|
|
4141
4127
|
}
|
|
4142
4128
|
|
|
4143
|
-
// bazel-out/
|
|
4129
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
4144
4130
|
import ts23 from "typescript";
|
|
4145
4131
|
var DelegatingCompilerHost = class {
|
|
4146
4132
|
get jsDocParsingMode() {
|
|
@@ -4279,7 +4265,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost {
|
|
|
4279
4265
|
}
|
|
4280
4266
|
};
|
|
4281
4267
|
|
|
4282
|
-
// bazel-out/
|
|
4268
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
4283
4269
|
var NgtscProgram = class {
|
|
4284
4270
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
4285
4271
|
this.options = options;
|
|
@@ -4505,15 +4491,15 @@ function mergeEmitResults(emitResults) {
|
|
|
4505
4491
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
4506
4492
|
}
|
|
4507
4493
|
|
|
4508
|
-
// bazel-out/
|
|
4494
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
4509
4495
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
4510
4496
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
4511
4497
|
}
|
|
4512
4498
|
|
|
4513
|
-
// bazel-out/
|
|
4499
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4514
4500
|
import ts26 from "typescript";
|
|
4515
4501
|
|
|
4516
|
-
// bazel-out/
|
|
4502
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
4517
4503
|
import ts25 from "typescript";
|
|
4518
4504
|
function createMessageDiagnostic(messageText) {
|
|
4519
4505
|
return {
|
|
@@ -4527,7 +4513,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
4527
4513
|
};
|
|
4528
4514
|
}
|
|
4529
4515
|
|
|
4530
|
-
// bazel-out/
|
|
4516
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4531
4517
|
var defaultFormatHost = {
|
|
4532
4518
|
getCurrentDirectory: () => ts26.sys.getCurrentDirectory(),
|
|
4533
4519
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -4758,4 +4744,4 @@ export {
|
|
|
4758
4744
|
* Use of this source code is governed by an MIT-style license that can be
|
|
4759
4745
|
* found in the LICENSE file at https://angular.io/license
|
|
4760
4746
|
*/
|
|
4761
|
-
//# sourceMappingURL=chunk-
|
|
4747
|
+
//# sourceMappingURL=chunk-5I46MBAD.js.map
|