@angular/compiler-cli 19.0.4 → 19.0.6
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-STORTTKY.js → chunk-37JMVF7H.js} +8 -8
- package/bundles/{chunk-NQFS66HQ.js → chunk-74VCTX7S.js} +31 -31
- package/bundles/{chunk-5UDS2TPQ.js → chunk-77D5CI2U.js} +7 -7
- package/bundles/{chunk-PXGVGHBM.js → chunk-7QPTK5PP.js} +82 -82
- package/bundles/chunk-7QPTK5PP.js.map +6 -0
- package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
- package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.js} +5 -5
- package/bundles/{chunk-3OT7XV3K.js → chunk-RWKKYPBC.js} +179 -152
- package/bundles/{chunk-3OT7XV3K.js.map → chunk-RWKKYPBC.js.map} +1 -1
- package/bundles/{chunk-UTHJWCVR.js → chunk-SL3F2GV7.js} +5 -5
- package/bundles/{chunk-MIHO36SM.js → chunk-SQM7WZRL.js} +12 -12
- package/bundles/{chunk-P5OLJFAE.js → chunk-WOH3O4B6.js} +59 -45
- package/bundles/chunk-WOH3O4B6.js.map +6 -0
- package/bundles/{chunk-YCOYUOYB.js → chunk-ZYXXMSS5.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/hmr/src/extract_dependencies.d.ts +3 -2
- package/src/ngtsc/hmr/src/metadata.d.ts +3 -2
- package/src/ngtsc/reflection/src/typescript.d.ts +8 -1
- package/bundles/chunk-P5OLJFAE.js.map +0 -6
- package/bundles/chunk-PXGVGHBM.js.map +0 -6
- /package/bundles/{chunk-STORTTKY.js.map → chunk-37JMVF7H.js.map} +0 -0
- /package/bundles/{chunk-NQFS66HQ.js.map → chunk-74VCTX7S.js.map} +0 -0
- /package/bundles/{chunk-5UDS2TPQ.js.map → chunk-77D5CI2U.js.map} +0 -0
- /package/bundles/{chunk-GBKXY6BH.js.map → chunk-FKXFEX7K.js.map} +0 -0
- /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.js.map} +0 -0
- /package/bundles/{chunk-UTHJWCVR.js.map → chunk-SL3F2GV7.js.map} +0 -0
- /package/bundles/{chunk-MIHO36SM.js.map → chunk-SQM7WZRL.js.map} +0 -0
- /package/bundles/{chunk-YCOYUOYB.js.map → chunk-ZYXXMSS5.js.map} +0 -0
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
formatDiagnostics,
|
|
13
13
|
performCompilation,
|
|
14
14
|
readConfiguration
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7QPTK5PP.js";
|
|
16
16
|
|
|
17
|
-
// bazel-out/
|
|
17
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/main.mjs
|
|
18
18
|
import ts2 from "typescript";
|
|
19
19
|
import yargs from "yargs";
|
|
20
20
|
|
|
21
|
-
// bazel-out/
|
|
21
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_watch.mjs
|
|
22
22
|
import * as chokidar from "chokidar";
|
|
23
23
|
import * as path from "path";
|
|
24
24
|
import ts from "typescript";
|
|
@@ -242,7 +242,7 @@ function performWatchCompilation(host) {
|
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
// bazel-out/
|
|
245
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/main.mjs
|
|
246
246
|
function main(args, consoleError = console.error, config, customTransformers, programReuse, modifiedResourceFiles) {
|
|
247
247
|
let { project, rootNames, options, errors: configErrors, watch: watch2, emitFlags } = config || readNgcCommandLineAndConfiguration(args);
|
|
248
248
|
if (configErrors.length) {
|
|
@@ -363,4 +363,4 @@ export {
|
|
|
363
363
|
* Use of this source code is governed by an MIT-style license that can be
|
|
364
364
|
* found in the LICENSE file at https://angular.dev/license
|
|
365
365
|
*/
|
|
366
|
-
//# sourceMappingURL=chunk-
|
|
366
|
+
//# sourceMappingURL=chunk-SL3F2GV7.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
tryParseSignalInputMapping,
|
|
11
11
|
tryParseSignalModelMapping,
|
|
12
12
|
tryParseSignalQueryFromInitializer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RWKKYPBC.js";
|
|
14
14
|
import {
|
|
15
15
|
ImportManager,
|
|
16
16
|
ImportedSymbolsTracker,
|
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
isAliasImportDeclaration,
|
|
19
19
|
loadIsReferencedAliasDeclarationPatch,
|
|
20
20
|
reflectClassMember
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WOH3O4B6.js";
|
|
22
22
|
|
|
23
|
-
// bazel-out/
|
|
23
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/downlevel_decorators_transform.mjs
|
|
24
24
|
import ts from "typescript";
|
|
25
25
|
function isAngularDecorator2(decorator, isCore) {
|
|
26
26
|
return isCore || decorator.import !== null && decorator.import.from === "@angular/core";
|
|
@@ -325,10 +325,10 @@ function cloneClassElementWithModifiers(node, modifiers) {
|
|
|
325
325
|
return ts.setOriginalNode(clone, node);
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
// bazel-out/
|
|
328
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/transform.mjs
|
|
329
329
|
import ts4 from "typescript";
|
|
330
330
|
|
|
331
|
-
// bazel-out/
|
|
331
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/transform_api.mjs
|
|
332
332
|
import ts2 from "typescript";
|
|
333
333
|
function createSyntheticAngularCoreDecoratorAccess(factory, importManager, ngClassDecorator, sourceFile, decoratorName) {
|
|
334
334
|
const classDecoratorIdentifier = ts2.isIdentifier(ngClassDecorator.identifier) ? ngClassDecorator.identifier : ngClassDecorator.identifier.expression;
|
|
@@ -345,7 +345,7 @@ function castAsAny(factory, expr) {
|
|
|
345
345
|
return factory.createAsExpression(expr, factory.createKeywordTypeNode(ts2.SyntaxKind.AnyKeyword));
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
// bazel-out/
|
|
348
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/input_function.mjs
|
|
349
349
|
var signalInputsTransform = (member, sourceFile, host, factory, importTracker, importManager, classDecorator, isCore) => {
|
|
350
350
|
var _a, _b;
|
|
351
351
|
if ((_a = host.getDecoratorsOfDeclaration(member.node)) == null ? void 0 : _a.some((d) => isAngularDecorator(d, "Input", isCore))) {
|
|
@@ -367,7 +367,7 @@ var signalInputsTransform = (member, sourceFile, host, factory, importTracker, i
|
|
|
367
367
|
return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_b = member.node.modifiers) != null ? _b : []], member.name, member.node.questionToken, member.node.type, member.node.initializer);
|
|
368
368
|
};
|
|
369
369
|
|
|
370
|
-
// bazel-out/
|
|
370
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/model_function.mjs
|
|
371
371
|
import ts3 from "typescript";
|
|
372
372
|
var signalModelTransform = (member, sourceFile, host, factory, importTracker, importManager, classDecorator, isCore) => {
|
|
373
373
|
var _a, _b;
|
|
@@ -401,7 +401,7 @@ function createDecorator(name, config, classDecorator, factory, sourceFile, impo
|
|
|
401
401
|
return factory.createDecorator(factory.createCallExpression(callTarget, void 0, [config]));
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
// bazel-out/
|
|
404
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/output_function.mjs
|
|
405
405
|
var initializerApiOutputTransform = (member, sourceFile, host, factory, importTracker, importManager, classDecorator, isCore) => {
|
|
406
406
|
var _a, _b;
|
|
407
407
|
if ((_a = host.getDecoratorsOfDeclaration(member.node)) == null ? void 0 : _a.some((d) => isAngularDecorator(d, "Output", isCore))) {
|
|
@@ -415,7 +415,7 @@ var initializerApiOutputTransform = (member, sourceFile, host, factory, importTr
|
|
|
415
415
|
return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_b = member.node.modifiers) != null ? _b : []], member.node.name, member.node.questionToken, member.node.type, member.node.initializer);
|
|
416
416
|
};
|
|
417
417
|
|
|
418
|
-
// bazel-out/
|
|
418
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/query_functions.mjs
|
|
419
419
|
var queryFunctionToDecorator = {
|
|
420
420
|
viewChild: "ViewChild",
|
|
421
421
|
viewChildren: "ViewChildren",
|
|
@@ -448,7 +448,7 @@ var queryFunctionsTransforms = (member, sourceFile, host, factory, importTracker
|
|
|
448
448
|
return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_a = member.node.modifiers) != null ? _a : []], member.node.name, member.node.questionToken, member.node.type, member.node.initializer);
|
|
449
449
|
};
|
|
450
450
|
|
|
451
|
-
// bazel-out/
|
|
451
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/transform.mjs
|
|
452
452
|
var decoratorsWithInputs = ["Directive", "Component"];
|
|
453
453
|
var propertyTransforms = [
|
|
454
454
|
signalInputsTransform,
|
|
@@ -501,7 +501,7 @@ function createTransformVisitor(ctx, host, importManager, importTracker, isCore,
|
|
|
501
501
|
return visitor;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
-
// bazel-out/
|
|
504
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/index.mjs
|
|
505
505
|
function angularJitApplicationTransform(program, isCore = false, shouldTransformClass) {
|
|
506
506
|
const typeChecker = program.getTypeChecker();
|
|
507
507
|
const reflectionHost = new TypeScriptReflectionHost(typeChecker);
|
|
@@ -536,4 +536,4 @@ export {
|
|
|
536
536
|
* Use of this source code is governed by an MIT-style license that can be
|
|
537
537
|
* found in the LICENSE file at https://angular.dev/license
|
|
538
538
|
*/
|
|
539
|
-
//# sourceMappingURL=chunk-
|
|
539
|
+
//# sourceMappingURL=chunk-SQM7WZRL.js.map
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
resolve,
|
|
13
13
|
stripExtension,
|
|
14
14
|
toRelativeImport
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-37JMVF7H.js";
|
|
16
16
|
|
|
17
|
-
// bazel-out/
|
|
17
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
18
18
|
import ts from "typescript";
|
|
19
19
|
|
|
20
|
-
// bazel-out/
|
|
20
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
21
21
|
var ErrorCode;
|
|
22
22
|
(function(ErrorCode2) {
|
|
23
23
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -114,7 +114,7 @@ var ErrorCode;
|
|
|
114
114
|
ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
|
|
115
115
|
})(ErrorCode || (ErrorCode = {}));
|
|
116
116
|
|
|
117
|
-
// bazel-out/
|
|
117
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
118
118
|
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
119
119
|
function replaceTsWithNgInErrors(errors) {
|
|
120
120
|
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
@@ -123,7 +123,7 @@ function ngErrorCode(code) {
|
|
|
123
123
|
return parseInt("-99" + code);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// bazel-out/
|
|
126
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
127
127
|
var FatalDiagnosticError = class extends Error {
|
|
128
128
|
code;
|
|
129
129
|
node;
|
|
@@ -191,7 +191,7 @@ function isLocalCompilationDiagnostics(diagnostic) {
|
|
|
191
191
|
return diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNRESOLVED_CONST) || diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
// bazel-out/
|
|
194
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
195
195
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
196
196
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
197
197
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -203,10 +203,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
203
203
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
204
204
|
]);
|
|
205
205
|
|
|
206
|
-
// bazel-out/
|
|
206
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
207
207
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.dev/errors";
|
|
208
208
|
|
|
209
|
-
// bazel-out/
|
|
209
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
210
210
|
var ExtendedTemplateDiagnosticName;
|
|
211
211
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
212
212
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -224,10 +224,10 @@ var ExtendedTemplateDiagnosticName;
|
|
|
224
224
|
ExtendedTemplateDiagnosticName2["UNUSED_STANDALONE_IMPORTS"] = "unusedStandaloneImports";
|
|
225
225
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
226
226
|
|
|
227
|
-
// bazel-out/
|
|
227
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
228
228
|
import ts5 from "typescript";
|
|
229
229
|
|
|
230
|
-
// bazel-out/
|
|
230
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
231
231
|
import ts2 from "typescript";
|
|
232
232
|
function isDecoratorIdentifier(exp) {
|
|
233
233
|
return ts2.isIdentifier(exp) || ts2.isPropertyAccessExpression(exp) && ts2.isIdentifier(exp.expression) && ts2.isIdentifier(exp.name);
|
|
@@ -250,7 +250,7 @@ var ClassMemberAccessLevel;
|
|
|
250
250
|
})(ClassMemberAccessLevel || (ClassMemberAccessLevel = {}));
|
|
251
251
|
var AmbientImport = {};
|
|
252
252
|
|
|
253
|
-
// bazel-out/
|
|
253
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
254
254
|
import ts3 from "typescript";
|
|
255
255
|
function typeToValue(typeNode, checker, isLocalCompilation) {
|
|
256
256
|
var _a, _b;
|
|
@@ -434,7 +434,7 @@ function extractModuleName(node) {
|
|
|
434
434
|
return node.moduleSpecifier.text;
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
-
// bazel-out/
|
|
437
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
438
438
|
import ts4 from "typescript";
|
|
439
439
|
function isNamedClassDeclaration(node) {
|
|
440
440
|
return ts4.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -458,13 +458,15 @@ function classMemberAccessLevelToString(level) {
|
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
-
// bazel-out/
|
|
461
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
462
462
|
var TypeScriptReflectionHost = class {
|
|
463
463
|
checker;
|
|
464
464
|
isLocalCompilation;
|
|
465
|
-
|
|
465
|
+
skipPrivateValueDeclarationTypes;
|
|
466
|
+
constructor(checker, isLocalCompilation = false, skipPrivateValueDeclarationTypes = false) {
|
|
466
467
|
this.checker = checker;
|
|
467
468
|
this.isLocalCompilation = isLocalCompilation;
|
|
469
|
+
this.skipPrivateValueDeclarationTypes = skipPrivateValueDeclarationTypes;
|
|
468
470
|
}
|
|
469
471
|
getDecoratorsOfDeclaration(declaration) {
|
|
470
472
|
const decorators = ts5.canHaveDecorators(declaration) ? ts5.getDecorators(declaration) : void 0;
|
|
@@ -682,7 +684,7 @@ var TypeScriptReflectionHost = class {
|
|
|
682
684
|
while (symbol.flags & ts5.SymbolFlags.Alias) {
|
|
683
685
|
symbol = this.checker.getAliasedSymbol(symbol);
|
|
684
686
|
}
|
|
685
|
-
if (symbol.valueDeclaration !== void 0) {
|
|
687
|
+
if (symbol.valueDeclaration !== void 0 && (!this.skipPrivateValueDeclarationTypes || !isPrivateSymbol(this.checker, symbol))) {
|
|
686
688
|
return {
|
|
687
689
|
node: symbol.valueDeclaration,
|
|
688
690
|
viaModule: this._viaModule(symbol.valueDeclaration, originalId, importInfo)
|
|
@@ -749,6 +751,10 @@ var TypeScriptReflectionHost = class {
|
|
|
749
751
|
}
|
|
750
752
|
};
|
|
751
753
|
var TypeEntityToDeclarationError = class extends Error {
|
|
754
|
+
constructor(message) {
|
|
755
|
+
super(message);
|
|
756
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
757
|
+
}
|
|
752
758
|
};
|
|
753
759
|
function reflectTypeEntityToDeclaration(type, checker) {
|
|
754
760
|
let realSymbol = checker.getSymbolAtLocation(type);
|
|
@@ -923,6 +929,14 @@ function propertyNameToString(node) {
|
|
|
923
929
|
return null;
|
|
924
930
|
}
|
|
925
931
|
}
|
|
932
|
+
function isPrivateSymbol(typeChecker, symbol) {
|
|
933
|
+
var _a;
|
|
934
|
+
if (symbol.valueDeclaration !== void 0) {
|
|
935
|
+
const symbolType = typeChecker.getTypeOfSymbolAtLocation(symbol, symbol.valueDeclaration);
|
|
936
|
+
return ((_a = symbolType == null ? void 0 : symbolType.symbol) == null ? void 0 : _a.name.startsWith("\u0275")) === true;
|
|
937
|
+
}
|
|
938
|
+
return false;
|
|
939
|
+
}
|
|
926
940
|
function getQualifiedNameRoot(qualifiedName) {
|
|
927
941
|
while (ts5.isQualifiedName(qualifiedName.left)) {
|
|
928
942
|
qualifiedName = qualifiedName.left;
|
|
@@ -950,7 +964,7 @@ function getExportedName(decl, originalId) {
|
|
|
950
964
|
}
|
|
951
965
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
952
966
|
|
|
953
|
-
// bazel-out/
|
|
967
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
954
968
|
import ts6 from "typescript";
|
|
955
969
|
var TS = /\.tsx?$/i;
|
|
956
970
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -1051,7 +1065,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
1051
1065
|
return redirectInfo.unredirected;
|
|
1052
1066
|
}
|
|
1053
1067
|
|
|
1054
|
-
// bazel-out/
|
|
1068
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
1055
1069
|
var Reference = class {
|
|
1056
1070
|
node;
|
|
1057
1071
|
bestGuessOwningModule;
|
|
@@ -1123,14 +1137,14 @@ var Reference = class {
|
|
|
1123
1137
|
}
|
|
1124
1138
|
};
|
|
1125
1139
|
|
|
1126
|
-
// bazel-out/
|
|
1140
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1127
1141
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1128
1142
|
|
|
1129
|
-
// bazel-out/
|
|
1143
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1130
1144
|
import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
|
|
1131
1145
|
import ts7 from "typescript";
|
|
1132
1146
|
|
|
1133
|
-
// bazel-out/
|
|
1147
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
1134
1148
|
function findExportedNameOfNode(target, file, reflector) {
|
|
1135
1149
|
const exports = reflector.getExportsOfModule(file);
|
|
1136
1150
|
if (exports === null) {
|
|
@@ -1150,7 +1164,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
1150
1164
|
return foundExportName;
|
|
1151
1165
|
}
|
|
1152
1166
|
|
|
1153
|
-
// bazel-out/
|
|
1167
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1154
1168
|
var ImportFlags;
|
|
1155
1169
|
(function(ImportFlags2) {
|
|
1156
1170
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -1397,7 +1411,7 @@ var UnifiedModulesStrategy = class {
|
|
|
1397
1411
|
}
|
|
1398
1412
|
};
|
|
1399
1413
|
|
|
1400
|
-
// bazel-out/
|
|
1414
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1401
1415
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
1402
1416
|
var UnifiedModulesAliasingHost = class {
|
|
1403
1417
|
unifiedModulesHost;
|
|
@@ -1466,7 +1480,7 @@ var AliasStrategy = class {
|
|
|
1466
1480
|
}
|
|
1467
1481
|
};
|
|
1468
1482
|
|
|
1469
|
-
// bazel-out/
|
|
1483
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
1470
1484
|
function relativePathBetween(from, to) {
|
|
1471
1485
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
1472
1486
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -1485,7 +1499,7 @@ function getProjectRelativePath(sourceFile, rootDirs, compilerHost) {
|
|
|
1485
1499
|
return null;
|
|
1486
1500
|
}
|
|
1487
1501
|
|
|
1488
|
-
// bazel-out/
|
|
1502
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
1489
1503
|
var NoopImportRewriter = class {
|
|
1490
1504
|
rewriteSymbol(symbol, specifier) {
|
|
1491
1505
|
return symbol;
|
|
@@ -1545,7 +1559,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
1545
1559
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
1546
1560
|
}
|
|
1547
1561
|
|
|
1548
|
-
// bazel-out/
|
|
1562
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
1549
1563
|
import ts8 from "typescript";
|
|
1550
1564
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
1551
1565
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -1580,7 +1594,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
1580
1594
|
throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
|
|
1581
1595
|
}
|
|
1582
1596
|
|
|
1583
|
-
// bazel-out/
|
|
1597
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
1584
1598
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
1585
1599
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
1586
1600
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -1619,7 +1633,7 @@ var DefaultImportTracker = class {
|
|
|
1619
1633
|
}
|
|
1620
1634
|
};
|
|
1621
1635
|
|
|
1622
|
-
// bazel-out/
|
|
1636
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
|
|
1623
1637
|
import ts9 from "typescript";
|
|
1624
1638
|
var AssumeEager = "AssumeEager";
|
|
1625
1639
|
var DeferredSymbolTracker = class {
|
|
@@ -1742,7 +1756,7 @@ var DeferredSymbolTracker = class {
|
|
|
1742
1756
|
}
|
|
1743
1757
|
};
|
|
1744
1758
|
|
|
1745
|
-
// bazel-out/
|
|
1759
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
|
|
1746
1760
|
import ts10 from "typescript";
|
|
1747
1761
|
var ImportedSymbolsTracker = class {
|
|
1748
1762
|
fileToNamedImports = /* @__PURE__ */ new WeakMap();
|
|
@@ -1810,7 +1824,7 @@ var ImportedSymbolsTracker = class {
|
|
|
1810
1824
|
}
|
|
1811
1825
|
};
|
|
1812
1826
|
|
|
1813
|
-
// bazel-out/
|
|
1827
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
|
|
1814
1828
|
import ts11 from "typescript";
|
|
1815
1829
|
var LocalCompilationExtraImportsTracker = class {
|
|
1816
1830
|
typeChecker;
|
|
@@ -1862,7 +1876,7 @@ function removeQuotations(s) {
|
|
|
1862
1876
|
return s.substring(1, s.length - 1).trim();
|
|
1863
1877
|
}
|
|
1864
1878
|
|
|
1865
|
-
// bazel-out/
|
|
1879
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
1866
1880
|
var ModuleResolver = class {
|
|
1867
1881
|
program;
|
|
1868
1882
|
compilerOptions;
|
|
@@ -1883,10 +1897,10 @@ var ModuleResolver = class {
|
|
|
1883
1897
|
}
|
|
1884
1898
|
};
|
|
1885
1899
|
|
|
1886
|
-
// bazel-out/
|
|
1900
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
1887
1901
|
import ts16 from "typescript";
|
|
1888
1902
|
|
|
1889
|
-
// bazel-out/
|
|
1903
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
|
|
1890
1904
|
import ts12 from "typescript";
|
|
1891
1905
|
function createGenerateUniqueIdentifierHelper() {
|
|
1892
1906
|
const generatedIdentifiers = /* @__PURE__ */ new Set();
|
|
@@ -1912,7 +1926,7 @@ function createGenerateUniqueIdentifierHelper() {
|
|
|
1912
1926
|
};
|
|
1913
1927
|
}
|
|
1914
1928
|
|
|
1915
|
-
// bazel-out/
|
|
1929
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
|
|
1916
1930
|
import ts13 from "typescript";
|
|
1917
1931
|
function createTsTransformForImportManager(manager, extraStatementsForFiles) {
|
|
1918
1932
|
return (ctx) => {
|
|
@@ -1979,7 +1993,7 @@ function isImportStatement(stmt) {
|
|
|
1979
1993
|
return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
|
|
1980
1994
|
}
|
|
1981
1995
|
|
|
1982
|
-
// bazel-out/
|
|
1996
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
|
|
1983
1997
|
import ts14 from "typescript";
|
|
1984
1998
|
function attemptToReuseGeneratedImports(tracker, request) {
|
|
1985
1999
|
const requestHash = hashImportRequest(request);
|
|
@@ -2006,7 +2020,7 @@ function hashImportRequest(req) {
|
|
|
2006
2020
|
return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}${req.unsafeAliasOverride ? ":" + req.unsafeAliasOverride : ""}`;
|
|
2007
2021
|
}
|
|
2008
2022
|
|
|
2009
|
-
// bazel-out/
|
|
2023
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
|
|
2010
2024
|
import ts15 from "typescript";
|
|
2011
2025
|
function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
2012
2026
|
let candidateImportToBeUpdated = null;
|
|
@@ -2066,7 +2080,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
|
2066
2080
|
return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
|
|
2067
2081
|
}
|
|
2068
2082
|
|
|
2069
|
-
// bazel-out/
|
|
2083
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
2070
2084
|
var presetImportManagerForceNamespaceImports = {
|
|
2071
2085
|
disableOriginalSourceFileReuse: true,
|
|
2072
2086
|
forceGenerateNamespacesForNewImports: true
|
|
@@ -2289,7 +2303,7 @@ function createImportReference(asTypeReference, ref) {
|
|
|
2289
2303
|
}
|
|
2290
2304
|
}
|
|
2291
2305
|
|
|
2292
|
-
// bazel-out/
|
|
2306
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
2293
2307
|
var Context = class {
|
|
2294
2308
|
isStatement;
|
|
2295
2309
|
constructor(isStatement) {
|
|
@@ -2303,7 +2317,7 @@ var Context = class {
|
|
|
2303
2317
|
}
|
|
2304
2318
|
};
|
|
2305
2319
|
|
|
2306
|
-
// bazel-out/
|
|
2320
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
2307
2321
|
import * as o from "@angular/compiler";
|
|
2308
2322
|
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
2309
2323
|
[o.UnaryOperator.Minus, "-"],
|
|
@@ -2559,7 +2573,7 @@ function createRange(span) {
|
|
|
2559
2573
|
};
|
|
2560
2574
|
}
|
|
2561
2575
|
|
|
2562
|
-
// bazel-out/
|
|
2576
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
|
|
2563
2577
|
import ts17 from "typescript";
|
|
2564
2578
|
var INELIGIBLE = {};
|
|
2565
2579
|
function canEmitType(type, canEmit) {
|
|
@@ -2635,11 +2649,11 @@ var TypeEmitter = class {
|
|
|
2635
2649
|
}
|
|
2636
2650
|
};
|
|
2637
2651
|
|
|
2638
|
-
// bazel-out/
|
|
2652
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2639
2653
|
import * as o2 from "@angular/compiler";
|
|
2640
2654
|
import ts19 from "typescript";
|
|
2641
2655
|
|
|
2642
|
-
// bazel-out/
|
|
2656
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
|
|
2643
2657
|
import ts18 from "typescript";
|
|
2644
2658
|
function tsNumericExpression(value) {
|
|
2645
2659
|
if (value < 0) {
|
|
@@ -2649,7 +2663,7 @@ function tsNumericExpression(value) {
|
|
|
2649
2663
|
return ts18.factory.createNumericLiteral(value);
|
|
2650
2664
|
}
|
|
2651
2665
|
|
|
2652
|
-
// bazel-out/
|
|
2666
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2653
2667
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
2654
2668
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
2655
2669
|
}
|
|
@@ -2870,7 +2884,7 @@ var TypeTranslatorVisitor = class {
|
|
|
2870
2884
|
}
|
|
2871
2885
|
};
|
|
2872
2886
|
|
|
2873
|
-
// bazel-out/
|
|
2887
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
2874
2888
|
import ts20 from "typescript";
|
|
2875
2889
|
var PureAnnotation;
|
|
2876
2890
|
(function(PureAnnotation2) {
|
|
@@ -3074,7 +3088,7 @@ function attachComments(statement, leadingComments) {
|
|
|
3074
3088
|
}
|
|
3075
3089
|
}
|
|
3076
3090
|
|
|
3077
|
-
// bazel-out/
|
|
3091
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
3078
3092
|
function translateExpression(contextFile, expression, imports, options = {}) {
|
|
3079
3093
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
|
|
3080
3094
|
}
|
|
@@ -3174,4 +3188,4 @@ export {
|
|
|
3174
3188
|
* Use of this source code is governed by an MIT-style license that can be
|
|
3175
3189
|
* found in the LICENSE file at https://angular.dev/license
|
|
3176
3190
|
*/
|
|
3177
|
-
//# sourceMappingURL=chunk-
|
|
3191
|
+
//# sourceMappingURL=chunk-WOH3O4B6.js.map
|