@angular/compiler-cli 18.2.0 → 18.2.2
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-WYWH4ABE.js → chunk-5DVL3S3Z.js} +43 -43
- package/bundles/{chunk-KCKRBU6N.js → chunk-B4ZOGV3N.js} +31 -31
- package/bundles/{chunk-ZLQQWV6U.js → chunk-C5NJ4RJW.js} +5 -5
- package/bundles/{chunk-ZHNORXPH.js → chunk-GWDW5CWS.js} +12 -12
- package/bundles/{chunk-K32LEXRQ.js → chunk-J46GT65M.js} +159 -171
- package/bundles/chunk-J46GT65M.js.map +6 -0
- package/bundles/{chunk-LYJKWJUC.js → chunk-SBDNBITT.js} +3 -3
- package/bundles/{chunk-2SSA4Y5F.js → chunk-T7RBRO42.js} +130 -125
- package/bundles/chunk-T7RBRO42.js.map +6 -0
- 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-JA5OGHV4.js → chunk-XQOVJNXK.js} +3 -3
- 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 +2 -2
- package/src/ngtsc/annotations/component/src/handler.d.ts +2 -1
- package/src/ngtsc/annotations/component/src/resources.d.ts +1 -0
- package/src/ngtsc/core/api/src/public_options.d.ts +7 -0
- package/src/ngtsc/docs/src/entities.d.ts +9 -6
- package/src/ngtsc/docs/src/function_extractor.d.ts +16 -6
- package/bundles/chunk-2SSA4Y5F.js.map +0 -6
- package/bundles/chunk-K32LEXRQ.js.map +0 -6
- /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-ZLQQWV6U.js.map → chunk-C5NJ4RJW.js.map} +0 -0
- /package/bundles/{chunk-ZHNORXPH.js.map → chunk-GWDW5CWS.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-JA5OGHV4.js.map → chunk-XQOVJNXK.js.map} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
angularJitApplicationTransform
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GWDW5CWS.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-T7RBRO42.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) {
|
|
@@ -1038,7 +1024,9 @@ function i18nSerialize(bundle, formatName, options) {
|
|
|
1038
1024
|
let serializer;
|
|
1039
1025
|
switch (format) {
|
|
1040
1026
|
case "xmb":
|
|
1041
|
-
serializer = new Xmb(
|
|
1027
|
+
serializer = new Xmb(
|
|
1028
|
+
options.i18nPreserveWhitespaceForLegacyExtraction
|
|
1029
|
+
);
|
|
1042
1030
|
break;
|
|
1043
1031
|
case "xliff2":
|
|
1044
1032
|
case "xlf2":
|
|
@@ -1058,10 +1046,10 @@ function getPathNormalizer(basePath) {
|
|
|
1058
1046
|
};
|
|
1059
1047
|
}
|
|
1060
1048
|
|
|
1061
|
-
// bazel-out/
|
|
1049
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1062
1050
|
import ts11 from "typescript";
|
|
1063
1051
|
|
|
1064
|
-
// bazel-out/
|
|
1052
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
1065
1053
|
function toNumbers(value) {
|
|
1066
1054
|
const suffixIndex = value.lastIndexOf("-");
|
|
1067
1055
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -1096,7 +1084,7 @@ function compareVersions(v1, v2) {
|
|
|
1096
1084
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
1097
1085
|
}
|
|
1098
1086
|
|
|
1099
|
-
// bazel-out/
|
|
1087
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
1100
1088
|
var MIN_TS_VERSION = "5.4.0";
|
|
1101
1089
|
var MAX_TS_VERSION = "5.6.0";
|
|
1102
1090
|
var tsVersion = ts11.version;
|
|
@@ -1109,11 +1097,11 @@ function verifySupportedTypeScriptVersion() {
|
|
|
1109
1097
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
1110
1098
|
}
|
|
1111
1099
|
|
|
1112
|
-
// bazel-out/
|
|
1100
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
1113
1101
|
import { R3Identifiers } from "@angular/compiler";
|
|
1114
1102
|
import ts22 from "typescript";
|
|
1115
1103
|
|
|
1116
|
-
// bazel-out/
|
|
1104
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
1117
1105
|
var CycleAnalyzer = class {
|
|
1118
1106
|
constructor(importGraph) {
|
|
1119
1107
|
this.importGraph = importGraph;
|
|
@@ -1184,7 +1172,7 @@ var Cycle = class {
|
|
|
1184
1172
|
}
|
|
1185
1173
|
};
|
|
1186
1174
|
|
|
1187
|
-
// bazel-out/
|
|
1175
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
1188
1176
|
import ts12 from "typescript";
|
|
1189
1177
|
var ImportGraph = class {
|
|
1190
1178
|
constructor(checker, perf) {
|
|
@@ -1276,7 +1264,7 @@ var Found = class {
|
|
|
1276
1264
|
}
|
|
1277
1265
|
};
|
|
1278
1266
|
|
|
1279
|
-
// bazel-out/
|
|
1267
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
1280
1268
|
import ts13 from "typescript";
|
|
1281
1269
|
var FlatIndexGenerator = class {
|
|
1282
1270
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -1301,7 +1289,7 @@ export * from '${relativeEntryPoint}';
|
|
|
1301
1289
|
}
|
|
1302
1290
|
};
|
|
1303
1291
|
|
|
1304
|
-
// bazel-out/
|
|
1292
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
1305
1293
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
1306
1294
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
1307
1295
|
let resolvedEntryPoint = null;
|
|
@@ -1317,7 +1305,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
1317
1305
|
return resolvedEntryPoint;
|
|
1318
1306
|
}
|
|
1319
1307
|
|
|
1320
|
-
// bazel-out/
|
|
1308
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
1321
1309
|
import ts14 from "typescript";
|
|
1322
1310
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
1323
1311
|
const diagnostics = [];
|
|
@@ -1397,7 +1385,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
1397
1385
|
}
|
|
1398
1386
|
}
|
|
1399
1387
|
|
|
1400
|
-
// bazel-out/
|
|
1388
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
1401
1389
|
var ReferenceGraph = class {
|
|
1402
1390
|
constructor() {
|
|
1403
1391
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -1451,7 +1439,7 @@ var ReferenceGraph = class {
|
|
|
1451
1439
|
}
|
|
1452
1440
|
};
|
|
1453
1441
|
|
|
1454
|
-
// bazel-out/
|
|
1442
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
1455
1443
|
var FileDependencyGraph = class {
|
|
1456
1444
|
constructor() {
|
|
1457
1445
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -1518,7 +1506,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
1518
1506
|
return false;
|
|
1519
1507
|
}
|
|
1520
1508
|
|
|
1521
|
-
// bazel-out/
|
|
1509
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
1522
1510
|
var IncrementalStateKind;
|
|
1523
1511
|
(function(IncrementalStateKind2) {
|
|
1524
1512
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -1526,7 +1514,7 @@ var IncrementalStateKind;
|
|
|
1526
1514
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
1527
1515
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
1528
1516
|
|
|
1529
|
-
// bazel-out/
|
|
1517
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
1530
1518
|
var PhaseKind;
|
|
1531
1519
|
(function(PhaseKind2) {
|
|
1532
1520
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -1727,7 +1715,7 @@ function toOriginalSourceFile(sf) {
|
|
|
1727
1715
|
}
|
|
1728
1716
|
}
|
|
1729
1717
|
|
|
1730
|
-
// bazel-out/
|
|
1718
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
1731
1719
|
var TrackedIncrementalBuildStrategy = class {
|
|
1732
1720
|
constructor() {
|
|
1733
1721
|
this.state = null;
|
|
@@ -1763,7 +1751,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
|
|
|
1763
1751
|
};
|
|
1764
1752
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
1765
1753
|
|
|
1766
|
-
// bazel-out/
|
|
1754
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
1767
1755
|
var IdentifierKind;
|
|
1768
1756
|
(function(IdentifierKind2) {
|
|
1769
1757
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -1782,7 +1770,7 @@ var AbsoluteSourceSpan = class {
|
|
|
1782
1770
|
}
|
|
1783
1771
|
};
|
|
1784
1772
|
|
|
1785
|
-
// bazel-out/
|
|
1773
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
1786
1774
|
var IndexingContext = class {
|
|
1787
1775
|
constructor() {
|
|
1788
1776
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -1792,10 +1780,10 @@ var IndexingContext = class {
|
|
|
1792
1780
|
}
|
|
1793
1781
|
};
|
|
1794
1782
|
|
|
1795
|
-
// bazel-out/
|
|
1783
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
1796
1784
|
import { ParseSourceFile } from "@angular/compiler";
|
|
1797
1785
|
|
|
1798
|
-
// bazel-out/
|
|
1786
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
1799
1787
|
import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate, TmplAstVariable } from "@angular/compiler";
|
|
1800
1788
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
1801
1789
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
@@ -2090,7 +2078,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
2090
2078
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
2091
2079
|
}
|
|
2092
2080
|
|
|
2093
|
-
// bazel-out/
|
|
2081
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
2094
2082
|
function generateAnalysis(context) {
|
|
2095
2083
|
const analysis = /* @__PURE__ */ new Map();
|
|
2096
2084
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -2126,7 +2114,7 @@ function generateAnalysis(context) {
|
|
|
2126
2114
|
return analysis;
|
|
2127
2115
|
}
|
|
2128
2116
|
|
|
2129
|
-
// bazel-out/
|
|
2117
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
2130
2118
|
var NgModuleIndexImpl = class {
|
|
2131
2119
|
constructor(metaReader, localReader) {
|
|
2132
2120
|
this.metaReader = metaReader;
|
|
@@ -2215,7 +2203,7 @@ var NgModuleIndexImpl = class {
|
|
|
2215
2203
|
}
|
|
2216
2204
|
};
|
|
2217
2205
|
|
|
2218
|
-
// bazel-out/
|
|
2206
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
2219
2207
|
import ts15 from "typescript";
|
|
2220
2208
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
2221
2209
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -2365,7 +2353,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
2365
2353
|
};
|
|
2366
2354
|
}
|
|
2367
2355
|
|
|
2368
|
-
// bazel-out/
|
|
2356
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
2369
2357
|
var StandaloneComponentScopeReader = class {
|
|
2370
2358
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
2371
2359
|
this.metaReader = metaReader;
|
|
@@ -2461,10 +2449,10 @@ var StandaloneComponentScopeReader = class {
|
|
|
2461
2449
|
}
|
|
2462
2450
|
};
|
|
2463
2451
|
|
|
2464
|
-
// bazel-out/
|
|
2452
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2465
2453
|
import { ASTWithSource as ASTWithSource3, BindingType, Interpolation, PropertyRead as PropertyRead2, TmplAstBoundAttribute } from "@angular/compiler";
|
|
2466
2454
|
|
|
2467
|
-
// bazel-out/
|
|
2455
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
|
|
2468
2456
|
import ts16 from "typescript";
|
|
2469
2457
|
var SIGNAL_FNS = /* @__PURE__ */ new Set([
|
|
2470
2458
|
"WritableSignal",
|
|
@@ -2484,7 +2472,7 @@ function isSignalSymbol(symbol) {
|
|
|
2484
2472
|
});
|
|
2485
2473
|
}
|
|
2486
2474
|
|
|
2487
|
-
// bazel-out/
|
|
2475
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
2488
2476
|
import { ASTWithSource as ASTWithSource2, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
|
|
2489
2477
|
var TemplateCheckWithVisitor = class {
|
|
2490
2478
|
constructor() {
|
|
@@ -2618,7 +2606,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
2618
2606
|
}
|
|
2619
2607
|
};
|
|
2620
2608
|
|
|
2621
|
-
// bazel-out/
|
|
2609
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
2622
2610
|
var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
|
|
2623
2611
|
var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
|
|
2624
2612
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2670,7 +2658,7 @@ var factory = {
|
|
|
2670
2658
|
create: () => new InterpolatedSignalCheck()
|
|
2671
2659
|
};
|
|
2672
2660
|
|
|
2673
|
-
// bazel-out/
|
|
2661
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
2674
2662
|
import { TmplAstBoundEvent } from "@angular/compiler";
|
|
2675
2663
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
2676
2664
|
constructor() {
|
|
@@ -2696,7 +2684,7 @@ var factory2 = {
|
|
|
2696
2684
|
create: () => new InvalidBananaInBoxCheck()
|
|
2697
2685
|
};
|
|
2698
2686
|
|
|
2699
|
-
// bazel-out/
|
|
2687
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
2700
2688
|
import { TmplAstTemplate as TmplAstTemplate2 } from "@angular/compiler";
|
|
2701
2689
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
2702
2690
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
@@ -2741,7 +2729,7 @@ var factory3 = {
|
|
|
2741
2729
|
}
|
|
2742
2730
|
};
|
|
2743
2731
|
|
|
2744
|
-
// bazel-out/
|
|
2732
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
2745
2733
|
import { TmplAstTemplate as TmplAstTemplate3 } from "@angular/compiler";
|
|
2746
2734
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
2747
2735
|
constructor() {
|
|
@@ -2774,7 +2762,7 @@ var factory4 = {
|
|
|
2774
2762
|
create: () => new MissingNgForOfLetCheck()
|
|
2775
2763
|
};
|
|
2776
2764
|
|
|
2777
|
-
// bazel-out/
|
|
2765
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
2778
2766
|
import { Binary } from "@angular/compiler";
|
|
2779
2767
|
import ts17 from "typescript";
|
|
2780
2768
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2820,7 +2808,7 @@ var factory5 = {
|
|
|
2820
2808
|
}
|
|
2821
2809
|
};
|
|
2822
2810
|
|
|
2823
|
-
// bazel-out/
|
|
2811
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
2824
2812
|
import { SafeCall, SafeKeyedRead, SafePropertyRead } from "@angular/compiler";
|
|
2825
2813
|
import ts18 from "typescript";
|
|
2826
2814
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2867,7 +2855,7 @@ var factory6 = {
|
|
|
2867
2855
|
}
|
|
2868
2856
|
};
|
|
2869
2857
|
|
|
2870
|
-
// bazel-out/
|
|
2858
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
2871
2859
|
import { TmplAstBoundAttribute as TmplAstBoundAttribute2 } from "@angular/compiler";
|
|
2872
2860
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
2873
2861
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -2891,7 +2879,7 @@ var factory7 = {
|
|
|
2891
2879
|
create: () => new SuffixNotSupportedCheck()
|
|
2892
2880
|
};
|
|
2893
2881
|
|
|
2894
|
-
// bazel-out/
|
|
2882
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
2895
2883
|
import { TmplAstTextAttribute } from "@angular/compiler";
|
|
2896
2884
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
2897
2885
|
constructor() {
|
|
@@ -2930,7 +2918,7 @@ var factory8 = {
|
|
|
2930
2918
|
create: () => new TextAttributeNotBindingSpec()
|
|
2931
2919
|
};
|
|
2932
2920
|
|
|
2933
|
-
// bazel-out/
|
|
2921
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.mjs
|
|
2934
2922
|
import { ASTWithSource as ASTWithSource4, Call, Chain, Conditional, ParsedEventType, PropertyRead as PropertyRead3, SafeCall as SafeCall2, SafePropertyRead as SafePropertyRead2, TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
|
|
2935
2923
|
var UninvokedFunctionInEventBindingSpec = class extends TemplateCheckWithVisitor {
|
|
2936
2924
|
constructor() {
|
|
@@ -2982,7 +2970,7 @@ var factory9 = {
|
|
|
2982
2970
|
create: () => new UninvokedFunctionInEventBindingSpec()
|
|
2983
2971
|
};
|
|
2984
2972
|
|
|
2985
|
-
// bazel-out/
|
|
2973
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.mjs
|
|
2986
2974
|
import { AST, ASTWithSource as ASTWithSource5, TmplAstLetDeclaration } from "@angular/compiler";
|
|
2987
2975
|
var UnusedLetDeclarationCheck = class extends TemplateCheckWithVisitor {
|
|
2988
2976
|
constructor() {
|
|
@@ -3027,10 +3015,10 @@ var factory10 = {
|
|
|
3027
3015
|
create: () => new UnusedLetDeclarationCheck()
|
|
3028
3016
|
};
|
|
3029
3017
|
|
|
3030
|
-
// bazel-out/
|
|
3018
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3031
3019
|
import ts19 from "typescript";
|
|
3032
3020
|
|
|
3033
|
-
// bazel-out/
|
|
3021
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
3034
3022
|
var DiagnosticCategoryLabel;
|
|
3035
3023
|
(function(DiagnosticCategoryLabel2) {
|
|
3036
3024
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -3038,7 +3026,7 @@ var DiagnosticCategoryLabel;
|
|
|
3038
3026
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
3039
3027
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
3040
3028
|
|
|
3041
|
-
// bazel-out/
|
|
3029
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
3042
3030
|
var ExtendedTemplateCheckerImpl = class {
|
|
3043
3031
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
3044
3032
|
var _a, _b, _c, _d, _e;
|
|
@@ -3091,7 +3079,7 @@ function assertNever(value) {
|
|
|
3091
3079
|
${value}`);
|
|
3092
3080
|
}
|
|
3093
3081
|
|
|
3094
|
-
// bazel-out/
|
|
3082
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
3095
3083
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
3096
3084
|
factory2,
|
|
3097
3085
|
factory5,
|
|
@@ -3109,7 +3097,7 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
|
3109
3097
|
...ALL_DIAGNOSTIC_FACTORIES.map((factory11) => factory11.name)
|
|
3110
3098
|
]);
|
|
3111
3099
|
|
|
3112
|
-
// bazel-out/
|
|
3100
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
|
|
3113
3101
|
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
3102
|
import ts20 from "typescript";
|
|
3115
3103
|
var TemplateSemanticsCheckerImpl = class {
|
|
@@ -3200,7 +3188,7 @@ function unwrapAstWithSource(ast) {
|
|
|
3200
3188
|
return ast instanceof ASTWithSource6 ? ast.ast : ast;
|
|
3201
3189
|
}
|
|
3202
3190
|
|
|
3203
|
-
// bazel-out/
|
|
3191
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
|
|
3204
3192
|
import ts21 from "typescript";
|
|
3205
3193
|
var APIS_TO_CHECK = [
|
|
3206
3194
|
INPUT_INITIALIZER_FN,
|
|
@@ -3251,7 +3239,7 @@ var InitializerApiUsageRule = class {
|
|
|
3251
3239
|
}
|
|
3252
3240
|
};
|
|
3253
3241
|
|
|
3254
|
-
// bazel-out/
|
|
3242
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
|
|
3255
3243
|
var SourceFileValidator = class {
|
|
3256
3244
|
constructor(reflector, importedSymbolsTracker) {
|
|
3257
3245
|
this.rules = [new InitializerApiUsageRule(reflector, importedSymbolsTracker)];
|
|
@@ -3289,7 +3277,7 @@ var SourceFileValidator = class {
|
|
|
3289
3277
|
}
|
|
3290
3278
|
};
|
|
3291
3279
|
|
|
3292
|
-
// bazel-out/
|
|
3280
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
|
|
3293
3281
|
function coreHasSymbol(program, symbol) {
|
|
3294
3282
|
const checker = program.getTypeChecker();
|
|
3295
3283
|
for (const sf of program.getSourceFiles().filter(isMaybeCore)) {
|
|
@@ -3308,7 +3296,7 @@ function isMaybeCore(sf) {
|
|
|
3308
3296
|
return sf.isDeclarationFile && sf.fileName.includes("@angular/core") && sf.fileName.endsWith("index.d.ts");
|
|
3309
3297
|
}
|
|
3310
3298
|
|
|
3311
|
-
// bazel-out/
|
|
3299
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
|
|
3312
3300
|
import semver from "semver";
|
|
3313
3301
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
3314
3302
|
if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
|
|
@@ -3317,7 +3305,7 @@ function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
|
3317
3305
|
return semver.satisfies(coreVersion, minVersion);
|
|
3318
3306
|
}
|
|
3319
3307
|
|
|
3320
|
-
// bazel-out/
|
|
3308
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
3321
3309
|
var CompilationTicketKind;
|
|
3322
3310
|
(function(CompilationTicketKind2) {
|
|
3323
3311
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -3848,7 +3836,7 @@ var NgCompiler = class {
|
|
|
3848
3836
|
return diagnostics;
|
|
3849
3837
|
}
|
|
3850
3838
|
makeCompilation() {
|
|
3851
|
-
var _a, _b, _c, _d;
|
|
3839
|
+
var _a, _b, _c, _d, _e;
|
|
3852
3840
|
const isCore = isAngularCorePackage(this.inputProgram);
|
|
3853
3841
|
let compilationMode = CompilationMode.FULL;
|
|
3854
3842
|
if (!isCore) {
|
|
@@ -3943,11 +3931,11 @@ var NgCompiler = class {
|
|
|
3943
3931
|
}
|
|
3944
3932
|
const jitDeclarationRegistry = new JitDeclarationRegistry();
|
|
3945
3933
|
const handlers = [
|
|
3946
|
-
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, importTracker, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents, this.enableBlockSyntax, this.enableLetSyntax, localCompilationExtraImportsTracker, jitDeclarationRegistry),
|
|
3934
|
+
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, importTracker, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents, this.enableBlockSyntax, this.enableLetSyntax, localCompilationExtraImportsTracker, jitDeclarationRegistry, (_d = this.options.i18nPreserveWhitespaceForLegacyExtraction) != null ? _d : true),
|
|
3947
3935
|
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, importTracker, supportTestBed, compilationMode, jitDeclarationRegistry),
|
|
3948
3936
|
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode, !!this.options.generateExtraImportsInLocalMode),
|
|
3949
3937
|
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
3950
|
-
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (
|
|
3938
|
+
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (_e = this.options.onlyPublishPublicTypingsForNgModules) != null ? _e : false, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, supportJitMode, compilationMode, localCompilationExtraImportsTracker, jitDeclarationRegistry)
|
|
3951
3939
|
];
|
|
3952
3940
|
const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
|
|
3953
3941
|
const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
|
|
@@ -4140,7 +4128,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
4140
4128
|
return versions;
|
|
4141
4129
|
}
|
|
4142
4130
|
|
|
4143
|
-
// bazel-out/
|
|
4131
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
4144
4132
|
import ts23 from "typescript";
|
|
4145
4133
|
var DelegatingCompilerHost = class {
|
|
4146
4134
|
get jsDocParsingMode() {
|
|
@@ -4279,7 +4267,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost {
|
|
|
4279
4267
|
}
|
|
4280
4268
|
};
|
|
4281
4269
|
|
|
4282
|
-
// bazel-out/
|
|
4270
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
4283
4271
|
var NgtscProgram = class {
|
|
4284
4272
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
4285
4273
|
this.options = options;
|
|
@@ -4409,7 +4397,7 @@ var NgtscProgram = class {
|
|
|
4409
4397
|
}
|
|
4410
4398
|
emitXi18n() {
|
|
4411
4399
|
var _a, _b, _c;
|
|
4412
|
-
const ctx = new MessageBundle(new HtmlParser(), [], {}, (_a = this.options.i18nOutLocale) != null ? _a : null);
|
|
4400
|
+
const ctx = new MessageBundle(new HtmlParser(), [], {}, (_a = this.options.i18nOutLocale) != null ? _a : null, this.options.i18nPreserveWhitespaceForLegacyExtraction);
|
|
4413
4401
|
this.compiler.xi18n(ctx);
|
|
4414
4402
|
i18nExtract((_b = this.options.i18nOutFormat) != null ? _b : null, (_c = this.options.i18nOutFile) != null ? _c : null, this.host, this.options, ctx, resolve);
|
|
4415
4403
|
}
|
|
@@ -4505,15 +4493,15 @@ function mergeEmitResults(emitResults) {
|
|
|
4505
4493
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
4506
4494
|
}
|
|
4507
4495
|
|
|
4508
|
-
// bazel-out/
|
|
4496
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
4509
4497
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
4510
4498
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
4511
4499
|
}
|
|
4512
4500
|
|
|
4513
|
-
// bazel-out/
|
|
4501
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4514
4502
|
import ts26 from "typescript";
|
|
4515
4503
|
|
|
4516
|
-
// bazel-out/
|
|
4504
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
4517
4505
|
import ts25 from "typescript";
|
|
4518
4506
|
function createMessageDiagnostic(messageText) {
|
|
4519
4507
|
return {
|
|
@@ -4527,7 +4515,7 @@ function createMessageDiagnostic(messageText) {
|
|
|
4527
4515
|
};
|
|
4528
4516
|
}
|
|
4529
4517
|
|
|
4530
|
-
// bazel-out/
|
|
4518
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
4531
4519
|
var defaultFormatHost = {
|
|
4532
4520
|
getCurrentDirectory: () => ts26.sys.getCurrentDirectory(),
|
|
4533
4521
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -4758,4 +4746,4 @@ export {
|
|
|
4758
4746
|
* Use of this source code is governed by an MIT-style license that can be
|
|
4759
4747
|
* found in the LICENSE file at https://angular.io/license
|
|
4760
4748
|
*/
|
|
4761
|
-
//# sourceMappingURL=chunk-
|
|
4749
|
+
//# sourceMappingURL=chunk-J46GT65M.js.map
|