@angular/compiler-cli 18.0.0-next.2 → 18.0.0-next.3
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-WCD6LVCP.js → chunk-2WQIUGOU.js} +7 -7
- package/bundles/{chunk-32GYU5L6.js → chunk-45SUUHP7.js} +31 -31
- package/bundles/{chunk-R4KQI5XI.js → chunk-64JBPJBS.js} +5 -5
- package/bundles/{chunk-YMLYBTFV.js → chunk-75Z2LUBT.js} +122 -138
- package/bundles/{chunk-YMLYBTFV.js.map → chunk-75Z2LUBT.js.map} +1 -1
- package/bundles/{chunk-VFVLP7AO.js → chunk-KVMNPNPQ.js} +5 -5
- package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
- package/bundles/{chunk-4CJL5R2P.js → chunk-QA6MINWF.js} +13 -13
- package/bundles/{chunk-NPXXJQN4.js → chunk-RUNTWSSX.js} +43 -44
- package/bundles/chunk-RUNTWSSX.js.map +6 -0
- package/bundles/{chunk-75YFKYUJ.js → chunk-UM6JO3VZ.js} +7 -7
- package/bundles/{chunk-MTZKBEZU.js → chunk-UYDKSYFP.js} +78 -78
- package/bundles/{chunk-YUMIYLNL.js → chunk-XIYC7KSQ.js} +5 -5
- 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 +5 -5
- package/bundles/private/tooling.js +5 -5
- 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/bundles/chunk-NPXXJQN4.js.map +0 -6
- /package/bundles/{chunk-WCD6LVCP.js.map → chunk-2WQIUGOU.js.map} +0 -0
- /package/bundles/{chunk-32GYU5L6.js.map → chunk-45SUUHP7.js.map} +0 -0
- /package/bundles/{chunk-R4KQI5XI.js.map → chunk-64JBPJBS.js.map} +0 -0
- /package/bundles/{chunk-VFVLP7AO.js.map → chunk-KVMNPNPQ.js.map} +0 -0
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
- /package/bundles/{chunk-4CJL5R2P.js.map → chunk-QA6MINWF.js.map} +0 -0
- /package/bundles/{chunk-75YFKYUJ.js.map → chunk-UM6JO3VZ.js.map} +0 -0
- /package/bundles/{chunk-MTZKBEZU.js.map → chunk-UYDKSYFP.js.map} +0 -0
- /package/bundles/{chunk-YUMIYLNL.js.map → chunk-XIYC7KSQ.js.map} +0 -0
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
formatDiagnostics,
|
|
13
13
|
performCompilation,
|
|
14
14
|
readConfiguration
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-75Z2LUBT.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";
|
|
@@ -234,7 +234,7 @@ function performWatchCompilation(host) {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
// bazel-out/
|
|
237
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/main.mjs
|
|
238
238
|
function main(args, consoleError = console.error, config, customTransformers, programReuse, modifiedResourceFiles) {
|
|
239
239
|
let { project, rootNames, options, errors: configErrors, watch: watch2, emitFlags } = config || readNgcCommandLineAndConfiguration(args);
|
|
240
240
|
if (configErrors.length) {
|
|
@@ -342,4 +342,4 @@ export {
|
|
|
342
342
|
* Use of this source code is governed by an MIT-style license that can be
|
|
343
343
|
* found in the LICENSE file at https://angular.io/license
|
|
344
344
|
*/
|
|
345
|
-
//# sourceMappingURL=chunk-
|
|
345
|
+
//# sourceMappingURL=chunk-KVMNPNPQ.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const require = __cjsCompatRequire(import.meta.url);
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
// bazel-out/
|
|
6
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
7
7
|
var LogLevel;
|
|
8
8
|
(function(LogLevel2) {
|
|
9
9
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -12,7 +12,7 @@ var LogLevel;
|
|
|
12
12
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
13
13
|
})(LogLevel || (LogLevel = {}));
|
|
14
14
|
|
|
15
|
-
// bazel-out/
|
|
15
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
16
16
|
var RESET = "\x1B[0m";
|
|
17
17
|
var RED = "\x1B[31m";
|
|
18
18
|
var YELLOW = "\x1B[33m";
|
|
@@ -53,4 +53,4 @@ export {
|
|
|
53
53
|
* Use of this source code is governed by an MIT-style license that can be
|
|
54
54
|
* found in the LICENSE file at https://angular.io/license
|
|
55
55
|
*/
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-LYJKWJUC.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
tryParseSignalInputMapping,
|
|
11
11
|
tryParseSignalModelMapping,
|
|
12
12
|
tryParseSignalQueryFromInitializer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UYDKSYFP.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-RUNTWSSX.js";
|
|
22
22
|
|
|
23
|
-
// bazel-out/
|
|
23
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/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";
|
|
@@ -323,10 +323,10 @@ function cloneClassElementWithModifiers(node, modifiers) {
|
|
|
323
323
|
return ts.setOriginalNode(clone, node);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
// bazel-out/
|
|
326
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/transform.mjs
|
|
327
327
|
import ts4 from "typescript";
|
|
328
328
|
|
|
329
|
-
// bazel-out/
|
|
329
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/transform_api.mjs
|
|
330
330
|
import ts2 from "typescript";
|
|
331
331
|
function createSyntheticAngularCoreDecoratorAccess(factory, importManager, ngClassDecorator, sourceFile, decoratorName) {
|
|
332
332
|
const classDecoratorIdentifier = ts2.isIdentifier(ngClassDecorator.identifier) ? ngClassDecorator.identifier : ngClassDecorator.identifier.expression;
|
|
@@ -343,7 +343,7 @@ function castAsAny(factory, expr) {
|
|
|
343
343
|
return factory.createAsExpression(expr, factory.createKeywordTypeNode(ts2.SyntaxKind.AnyKeyword));
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
// bazel-out/
|
|
346
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/input_function.mjs
|
|
347
347
|
var signalInputsTransform = (member, host, factory, importTracker, importManager, classDecorator, isCore) => {
|
|
348
348
|
var _a, _b;
|
|
349
349
|
if ((_a = host.getDecoratorsOfDeclaration(member.node)) == null ? void 0 : _a.some((d) => isAngularDecorator(d, "Input", isCore))) {
|
|
@@ -366,7 +366,7 @@ var signalInputsTransform = (member, host, factory, importTracker, importManager
|
|
|
366
366
|
return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_b = member.node.modifiers) != null ? _b : []], member.name, member.node.questionToken, member.node.type, member.node.initializer);
|
|
367
367
|
};
|
|
368
368
|
|
|
369
|
-
// bazel-out/
|
|
369
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/model_function.mjs
|
|
370
370
|
import ts3 from "typescript";
|
|
371
371
|
var signalModelTransform = (member, host, factory, importTracker, importManager, classDecorator, isCore) => {
|
|
372
372
|
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/transformers/jit_transforms/initializer_api_transforms/output_function.mjs
|
|
405
405
|
var initializerApiOutputTransform = (member, 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))) {
|
|
@@ -416,7 +416,7 @@ var initializerApiOutputTransform = (member, host, factory, importTracker, impor
|
|
|
416
416
|
return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_b = member.node.modifiers) != null ? _b : []], member.node.name, member.node.questionToken, member.node.type, member.node.initializer);
|
|
417
417
|
};
|
|
418
418
|
|
|
419
|
-
// bazel-out/
|
|
419
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/query_functions.mjs
|
|
420
420
|
var queryFunctionToDecorator = {
|
|
421
421
|
viewChild: "ViewChild",
|
|
422
422
|
viewChildren: "ViewChildren",
|
|
@@ -450,7 +450,7 @@ var queryFunctionsTransforms = (member, host, factory, importTracker, importMana
|
|
|
450
450
|
return factory.updatePropertyDeclaration(member.node, [newDecorator, ...(_a = member.node.modifiers) != null ? _a : []], member.node.name, member.node.questionToken, member.node.type, member.node.initializer);
|
|
451
451
|
};
|
|
452
452
|
|
|
453
|
-
// bazel-out/
|
|
453
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/transform.mjs
|
|
454
454
|
var decoratorsWithInputs = ["Directive", "Component"];
|
|
455
455
|
var propertyTransforms = [
|
|
456
456
|
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/transformers/jit_transforms/index.mjs
|
|
505
505
|
function angularJitApplicationTransform(program, isCore = false) {
|
|
506
506
|
const typeChecker = program.getTypeChecker();
|
|
507
507
|
const reflectionHost = new TypeScriptReflectionHost(typeChecker);
|
|
@@ -523,7 +523,7 @@ function angularJitApplicationTransform(program, isCore = false) {
|
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
525
|
|
|
526
|
-
// bazel-out/
|
|
526
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
527
527
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
528
528
|
ngDevMode: false,
|
|
529
529
|
ngI18nClosureMode: false
|
|
@@ -551,4 +551,4 @@ export {
|
|
|
551
551
|
* Use of this source code is governed by an MIT-style license that can be
|
|
552
552
|
* found in the LICENSE file at https://angular.io/license
|
|
553
553
|
*/
|
|
554
|
-
//# sourceMappingURL=chunk-
|
|
554
|
+
//# sourceMappingURL=chunk-QA6MINWF.js.map
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
resolve,
|
|
13
13
|
stripExtension,
|
|
14
14
|
toRelativeImport
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UM6JO3VZ.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";
|
|
@@ -107,7 +107,7 @@ var ErrorCode;
|
|
|
107
107
|
ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
|
|
108
108
|
})(ErrorCode || (ErrorCode = {}));
|
|
109
109
|
|
|
110
|
-
// bazel-out/
|
|
110
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
111
111
|
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
112
112
|
function replaceTsWithNgInErrors(errors) {
|
|
113
113
|
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
@@ -116,7 +116,7 @@ function ngErrorCode(code) {
|
|
|
116
116
|
return parseInt("-99" + code);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
// bazel-out/
|
|
119
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
120
120
|
var FatalDiagnosticError = class extends Error {
|
|
121
121
|
constructor(code, node, diagnosticMessage, relatedInformation) {
|
|
122
122
|
super(`FatalDiagnosticError: Code: ${code}, Message: ${ts.flattenDiagnosticMessageText(diagnosticMessage, "\n")}`);
|
|
@@ -124,7 +124,6 @@ var FatalDiagnosticError = class extends Error {
|
|
|
124
124
|
this.node = node;
|
|
125
125
|
this.diagnosticMessage = diagnosticMessage;
|
|
126
126
|
this.relatedInformation = relatedInformation;
|
|
127
|
-
this.message = this.message;
|
|
128
127
|
this._isFatalDiagnosticError = true;
|
|
129
128
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
130
129
|
}
|
|
@@ -181,7 +180,7 @@ function isLocalCompilationDiagnostics(diagnostic) {
|
|
|
181
180
|
return diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNRESOLVED_CONST) || diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION);
|
|
182
181
|
}
|
|
183
182
|
|
|
184
|
-
// bazel-out/
|
|
183
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
185
184
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
186
185
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
187
186
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -193,10 +192,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
193
192
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
194
193
|
]);
|
|
195
194
|
|
|
196
|
-
// bazel-out/
|
|
195
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
197
196
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
198
197
|
|
|
199
|
-
// bazel-out/
|
|
198
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
200
199
|
var ExtendedTemplateDiagnosticName;
|
|
201
200
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
202
201
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -211,10 +210,10 @@ var ExtendedTemplateDiagnosticName;
|
|
|
211
210
|
ExtendedTemplateDiagnosticName2["CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION"] = "controlFlowPreventingContentProjection";
|
|
212
211
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
213
212
|
|
|
214
|
-
// bazel-out/
|
|
213
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
215
214
|
import ts5 from "typescript";
|
|
216
215
|
|
|
217
|
-
// bazel-out/
|
|
216
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
218
217
|
import ts2 from "typescript";
|
|
219
218
|
function isDecoratorIdentifier(exp) {
|
|
220
219
|
return ts2.isIdentifier(exp) || ts2.isPropertyAccessExpression(exp) && ts2.isIdentifier(exp.expression) && ts2.isIdentifier(exp.name);
|
|
@@ -237,7 +236,7 @@ var ClassMemberAccessLevel;
|
|
|
237
236
|
})(ClassMemberAccessLevel || (ClassMemberAccessLevel = {}));
|
|
238
237
|
var AmbientImport = {};
|
|
239
238
|
|
|
240
|
-
// bazel-out/
|
|
239
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
241
240
|
import ts3 from "typescript";
|
|
242
241
|
function typeToValue(typeNode, checker, isLocalCompilation) {
|
|
243
242
|
var _a, _b;
|
|
@@ -410,7 +409,7 @@ function extractModuleName(node) {
|
|
|
410
409
|
return node.moduleSpecifier.text;
|
|
411
410
|
}
|
|
412
411
|
|
|
413
|
-
// bazel-out/
|
|
412
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
414
413
|
import ts4 from "typescript";
|
|
415
414
|
function isNamedClassDeclaration(node) {
|
|
416
415
|
return ts4.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -434,7 +433,7 @@ function classMemberAccessLevelToString(level) {
|
|
|
434
433
|
}
|
|
435
434
|
}
|
|
436
435
|
|
|
437
|
-
// bazel-out/
|
|
436
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
438
437
|
var TypeScriptReflectionHost = class {
|
|
439
438
|
constructor(checker, isLocalCompilation = false) {
|
|
440
439
|
this.checker = checker;
|
|
@@ -922,7 +921,7 @@ function getExportedName(decl, originalId) {
|
|
|
922
921
|
}
|
|
923
922
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
924
923
|
|
|
925
|
-
// bazel-out/
|
|
924
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
926
925
|
import ts6 from "typescript";
|
|
927
926
|
var TS = /\.tsx?$/i;
|
|
928
927
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -1023,7 +1022,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
1023
1022
|
return redirectInfo.unredirected;
|
|
1024
1023
|
}
|
|
1025
1024
|
|
|
1026
|
-
// bazel-out/
|
|
1025
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
1027
1026
|
var Reference = class {
|
|
1028
1027
|
constructor(node, bestGuessOwningModule = null) {
|
|
1029
1028
|
this.node = node;
|
|
@@ -1092,14 +1091,14 @@ var Reference = class {
|
|
|
1092
1091
|
}
|
|
1093
1092
|
};
|
|
1094
1093
|
|
|
1095
|
-
// bazel-out/
|
|
1094
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1096
1095
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1097
1096
|
|
|
1098
|
-
// bazel-out/
|
|
1097
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1099
1098
|
import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
|
|
1100
1099
|
import ts7 from "typescript";
|
|
1101
1100
|
|
|
1102
|
-
// bazel-out/
|
|
1101
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
1103
1102
|
function findExportedNameOfNode(target, file, reflector) {
|
|
1104
1103
|
const exports = reflector.getExportsOfModule(file);
|
|
1105
1104
|
if (exports === null) {
|
|
@@ -1119,7 +1118,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
1119
1118
|
return foundExportName;
|
|
1120
1119
|
}
|
|
1121
1120
|
|
|
1122
|
-
// bazel-out/
|
|
1121
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1123
1122
|
var ImportFlags;
|
|
1124
1123
|
(function(ImportFlags2) {
|
|
1125
1124
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -1348,7 +1347,7 @@ var UnifiedModulesStrategy = class {
|
|
|
1348
1347
|
}
|
|
1349
1348
|
};
|
|
1350
1349
|
|
|
1351
|
-
// bazel-out/
|
|
1350
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1352
1351
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
1353
1352
|
var UnifiedModulesAliasingHost = class {
|
|
1354
1353
|
constructor(unifiedModulesHost) {
|
|
@@ -1415,7 +1414,7 @@ var AliasStrategy = class {
|
|
|
1415
1414
|
}
|
|
1416
1415
|
};
|
|
1417
1416
|
|
|
1418
|
-
// bazel-out/
|
|
1417
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
1419
1418
|
function relativePathBetween(from, to) {
|
|
1420
1419
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
1421
1420
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -1424,7 +1423,7 @@ function normalizeSeparators(path) {
|
|
|
1424
1423
|
return path.replace(/\\/g, "/");
|
|
1425
1424
|
}
|
|
1426
1425
|
|
|
1427
|
-
// bazel-out/
|
|
1426
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
1428
1427
|
var NoopImportRewriter = class {
|
|
1429
1428
|
rewriteSymbol(symbol, specifier) {
|
|
1430
1429
|
return symbol;
|
|
@@ -1477,7 +1476,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
1477
1476
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
1478
1477
|
}
|
|
1479
1478
|
|
|
1480
|
-
// bazel-out/
|
|
1479
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
1481
1480
|
import ts8 from "typescript";
|
|
1482
1481
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
1483
1482
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -1512,7 +1511,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
1512
1511
|
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.");
|
|
1513
1512
|
}
|
|
1514
1513
|
|
|
1515
|
-
// bazel-out/
|
|
1514
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
1516
1515
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
1517
1516
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
1518
1517
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -1553,7 +1552,7 @@ var DefaultImportTracker = class {
|
|
|
1553
1552
|
}
|
|
1554
1553
|
};
|
|
1555
1554
|
|
|
1556
|
-
// bazel-out/
|
|
1555
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
|
|
1557
1556
|
import ts9 from "typescript";
|
|
1558
1557
|
var AssumeEager = "AssumeEager";
|
|
1559
1558
|
var DeferredSymbolTracker = class {
|
|
@@ -1674,7 +1673,7 @@ var DeferredSymbolTracker = class {
|
|
|
1674
1673
|
}
|
|
1675
1674
|
};
|
|
1676
1675
|
|
|
1677
|
-
// bazel-out/
|
|
1676
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
|
|
1678
1677
|
import ts10 from "typescript";
|
|
1679
1678
|
var ImportedSymbolsTracker = class {
|
|
1680
1679
|
constructor() {
|
|
@@ -1744,7 +1743,7 @@ var ImportedSymbolsTracker = class {
|
|
|
1744
1743
|
}
|
|
1745
1744
|
};
|
|
1746
1745
|
|
|
1747
|
-
// bazel-out/
|
|
1746
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
|
|
1748
1747
|
import ts11 from "typescript";
|
|
1749
1748
|
var LocalCompilationExtraImportsTracker = class {
|
|
1750
1749
|
constructor(typeChecker) {
|
|
@@ -1791,7 +1790,7 @@ function removeQuotations(s) {
|
|
|
1791
1790
|
return s.substring(1, s.length - 1).trim();
|
|
1792
1791
|
}
|
|
1793
1792
|
|
|
1794
|
-
// bazel-out/
|
|
1793
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
1795
1794
|
var ModuleResolver = class {
|
|
1796
1795
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
1797
1796
|
this.program = program;
|
|
@@ -1808,10 +1807,10 @@ var ModuleResolver = class {
|
|
|
1808
1807
|
}
|
|
1809
1808
|
};
|
|
1810
1809
|
|
|
1811
|
-
// bazel-out/
|
|
1810
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
1812
1811
|
import ts16 from "typescript";
|
|
1813
1812
|
|
|
1814
|
-
// bazel-out/
|
|
1813
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
|
|
1815
1814
|
import ts12 from "typescript";
|
|
1816
1815
|
function createGenerateUniqueIdentifierHelper() {
|
|
1817
1816
|
const generatedIdentifiers = /* @__PURE__ */ new Set();
|
|
@@ -1835,7 +1834,7 @@ function createGenerateUniqueIdentifierHelper() {
|
|
|
1835
1834
|
};
|
|
1836
1835
|
}
|
|
1837
1836
|
|
|
1838
|
-
// bazel-out/
|
|
1837
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
|
|
1839
1838
|
import ts13 from "typescript";
|
|
1840
1839
|
function createTsTransformForImportManager(manager, extraStatementsForFiles) {
|
|
1841
1840
|
return (ctx) => {
|
|
@@ -1893,7 +1892,7 @@ function isImportStatement(stmt) {
|
|
|
1893
1892
|
return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
|
|
1894
1893
|
}
|
|
1895
1894
|
|
|
1896
|
-
// bazel-out/
|
|
1895
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
|
|
1897
1896
|
import ts14 from "typescript";
|
|
1898
1897
|
function attemptToReuseGeneratedImports(tracker, request) {
|
|
1899
1898
|
const requestHash = hashImportRequest(request);
|
|
@@ -1920,7 +1919,7 @@ function hashImportRequest(req) {
|
|
|
1920
1919
|
return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}`;
|
|
1921
1920
|
}
|
|
1922
1921
|
|
|
1923
|
-
// bazel-out/
|
|
1922
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
|
|
1924
1923
|
import ts15 from "typescript";
|
|
1925
1924
|
function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
1926
1925
|
let candidateImportToBeUpdated = null;
|
|
@@ -1973,7 +1972,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
|
1973
1972
|
return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
|
|
1974
1973
|
}
|
|
1975
1974
|
|
|
1976
|
-
// bazel-out/
|
|
1975
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
1977
1976
|
var presetImportManagerForceNamespaceImports = {
|
|
1978
1977
|
disableOriginalSourceFileReuse: true,
|
|
1979
1978
|
forceGenerateNamespacesForNewImports: true
|
|
@@ -2123,7 +2122,7 @@ function createImportReference(asTypeReference, ref) {
|
|
|
2123
2122
|
}
|
|
2124
2123
|
}
|
|
2125
2124
|
|
|
2126
|
-
// bazel-out/
|
|
2125
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
2127
2126
|
var Context = class {
|
|
2128
2127
|
constructor(isStatement) {
|
|
2129
2128
|
this.isStatement = isStatement;
|
|
@@ -2136,7 +2135,7 @@ var Context = class {
|
|
|
2136
2135
|
}
|
|
2137
2136
|
};
|
|
2138
2137
|
|
|
2139
|
-
// bazel-out/
|
|
2138
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
2140
2139
|
import * as o from "@angular/compiler";
|
|
2141
2140
|
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
2142
2141
|
[o.UnaryOperator.Minus, "-"],
|
|
@@ -2382,7 +2381,7 @@ function createRange(span) {
|
|
|
2382
2381
|
};
|
|
2383
2382
|
}
|
|
2384
2383
|
|
|
2385
|
-
// bazel-out/
|
|
2384
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
|
|
2386
2385
|
import ts17 from "typescript";
|
|
2387
2386
|
var INELIGIBLE = {};
|
|
2388
2387
|
function canEmitType(type, canEmit) {
|
|
@@ -2457,11 +2456,11 @@ var TypeEmitter = class {
|
|
|
2457
2456
|
}
|
|
2458
2457
|
};
|
|
2459
2458
|
|
|
2460
|
-
// bazel-out/
|
|
2459
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2461
2460
|
import * as o2 from "@angular/compiler";
|
|
2462
2461
|
import ts19 from "typescript";
|
|
2463
2462
|
|
|
2464
|
-
// bazel-out/
|
|
2463
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
|
|
2465
2464
|
import ts18 from "typescript";
|
|
2466
2465
|
function tsNumericExpression(value) {
|
|
2467
2466
|
if (value < 0) {
|
|
@@ -2471,7 +2470,7 @@ function tsNumericExpression(value) {
|
|
|
2471
2470
|
return ts18.factory.createNumericLiteral(value);
|
|
2472
2471
|
}
|
|
2473
2472
|
|
|
2474
|
-
// bazel-out/
|
|
2473
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
2475
2474
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
2476
2475
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
2477
2476
|
}
|
|
@@ -2688,7 +2687,7 @@ var TypeTranslatorVisitor = class {
|
|
|
2688
2687
|
}
|
|
2689
2688
|
};
|
|
2690
2689
|
|
|
2691
|
-
// bazel-out/
|
|
2690
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
2692
2691
|
import ts20 from "typescript";
|
|
2693
2692
|
var PureAnnotation;
|
|
2694
2693
|
(function(PureAnnotation2) {
|
|
@@ -2885,7 +2884,7 @@ function attachComments(statement, leadingComments) {
|
|
|
2885
2884
|
}
|
|
2886
2885
|
}
|
|
2887
2886
|
|
|
2888
|
-
// bazel-out/
|
|
2887
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
2889
2888
|
function translateExpression(contextFile, expression, imports, options = {}) {
|
|
2890
2889
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
|
|
2891
2890
|
}
|
|
@@ -2982,4 +2981,4 @@ export {
|
|
|
2982
2981
|
* Use of this source code is governed by an MIT-style license that can be
|
|
2983
2982
|
* found in the LICENSE file at https://angular.io/license
|
|
2984
2983
|
*/
|
|
2985
|
-
//# sourceMappingURL=chunk-
|
|
2984
|
+
//# sourceMappingURL=chunk-RUNTWSSX.js.map
|