@angular/compiler-cli 13.0.0-rc.3 → 13.0.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/index.js +857 -897
- package/bundles/index.js.map +2 -2
- package/bundles/linker/babel/index.js +67 -67
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +59 -59
- package/bundles/linker/index.js.map +1 -1
- package/bundles/ngcc/index.js +1256 -1225
- package/bundles/ngcc/index.js.map +2 -2
- package/bundles/ngcc/main-ngcc.js +1257 -1226
- package/bundles/ngcc/main-ngcc.js.map +2 -2
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +761 -743
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +2 -2
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +8 -8
- package/bundles/private/bazel.js +2 -2
- package/bundles/private/localize.js +14 -14
- package/bundles/private/migrations.js +84 -64
- package/bundles/private/migrations.js.map +1 -1
- package/bundles/private/tooling.js +11 -11
- package/bundles/private/tooling.js.map +1 -1
- package/bundles/src/bin/ng_xi18n.js +867 -907
- package/bundles/src/bin/ng_xi18n.js.map +2 -2
- package/bundles/src/bin/ngc.js +865 -905
- package/bundles/src/bin/ngc.js.map +2 -2
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +2 -2
- package/linker/src/file_linker/translator.d.ts +1 -1
- package/ngcc/src/host/delegating_host.d.ts +1 -2
- package/ngcc/src/host/esm2015_host.d.ts +1 -8
- package/ngcc/src/host/ngcc_host.d.ts +0 -13
- package/ngcc/src/host/umd_host.d.ts +3 -0
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/ngcc/src/packages/entry_point.d.ts +5 -0
- package/ngcc/src/packages/transformer.d.ts +0 -2
- package/ngcc/src/rendering/commonjs_rendering_formatter.d.ts +1 -1
- package/ngcc/src/rendering/esm_rendering_formatter.d.ts +1 -5
- package/ngcc/src/rendering/renderer.d.ts +2 -3
- package/ngcc/src/rendering/rendering_formatter.d.ts +0 -2
- package/ngcc/src/utils.d.ts +0 -7
- package/package.json +2 -2
- package/src/ngtsc/partial_evaluator/src/builtin.d.ts +5 -0
- package/src/ngtsc/typecheck/api/checker.d.ts +1 -1
- package/src/ngtsc/typecheck/src/tcb_util.d.ts +1 -1
- package/ngcc/src/analysis/switch_marker_analyzer.d.ts +0 -35
- package/src/ngtsc/switch/index.d.ts +0 -9
- package/src/ngtsc/switch/src/switch.d.ts +0 -10
|
@@ -42,13 +42,13 @@ var __objRest = (source, exclude) => {
|
|
|
42
42
|
return target;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
// bazel-out/
|
|
45
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
|
|
46
46
|
import {
|
|
47
47
|
EOL
|
|
48
48
|
} from "os";
|
|
49
49
|
import ts from "typescript";
|
|
50
50
|
|
|
51
|
-
// bazel-out/
|
|
51
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
52
52
|
var InvalidFileSystem = class {
|
|
53
53
|
exists(path) {
|
|
54
54
|
throw makeError();
|
|
@@ -136,11 +136,11 @@ function makeError() {
|
|
|
136
136
|
return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
// bazel-out/
|
|
139
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
|
|
140
140
|
var fs = new InvalidFileSystem();
|
|
141
141
|
var ABSOLUTE_PATH = Symbol("AbsolutePath");
|
|
142
142
|
|
|
143
|
-
// bazel-out/
|
|
143
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
|
|
144
144
|
import {
|
|
145
145
|
copyFileSync,
|
|
146
146
|
existsSync,
|
|
@@ -285,7 +285,7 @@ function toggleCase(str) {
|
|
|
285
285
|
return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
// bazel-out/
|
|
288
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
289
289
|
var LogLevel;
|
|
290
290
|
(function(LogLevel2) {
|
|
291
291
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -294,7 +294,7 @@ var LogLevel;
|
|
|
294
294
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
295
295
|
})(LogLevel || (LogLevel = {}));
|
|
296
296
|
|
|
297
|
-
// bazel-out/
|
|
297
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
298
298
|
var RESET = "[0m";
|
|
299
299
|
var RED = "[31m";
|
|
300
300
|
var YELLOW = "[33m";
|
|
@@ -324,7 +324,7 @@ var ConsoleLogger = class {
|
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
326
|
|
|
327
|
-
// bazel-out/
|
|
327
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/fatal_linker_error.mjs
|
|
328
328
|
var FatalLinkerError = class extends Error {
|
|
329
329
|
constructor(node, message) {
|
|
330
330
|
super(message);
|
|
@@ -336,14 +336,14 @@ function isFatalLinkerError(e) {
|
|
|
336
336
|
return e && e.type === "FatalLinkerError";
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
// bazel-out/
|
|
339
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/ast/utils.mjs
|
|
340
340
|
function assert(node, predicate, expected) {
|
|
341
341
|
if (!predicate(node)) {
|
|
342
342
|
throw new FatalLinkerError(node, `Unsupported syntax, expected ${expected}.`);
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
// bazel-out/
|
|
346
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/ast/ast_value.mjs
|
|
347
347
|
import {
|
|
348
348
|
WrappedNodeExpr
|
|
349
349
|
} from "@angular/compiler";
|
|
@@ -471,10 +471,10 @@ var AstValue = class {
|
|
|
471
471
|
}
|
|
472
472
|
};
|
|
473
473
|
|
|
474
|
-
// bazel-out/
|
|
474
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/emit_scopes/emit_scope.mjs
|
|
475
475
|
import { ConstantPool } from "@angular/compiler";
|
|
476
476
|
|
|
477
|
-
// bazel-out/
|
|
477
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/linker_import_generator.mjs
|
|
478
478
|
var LinkerImportGenerator = class {
|
|
479
479
|
constructor(ngImport) {
|
|
480
480
|
this.ngImport = ngImport;
|
|
@@ -494,7 +494,7 @@ var LinkerImportGenerator = class {
|
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
496
|
|
|
497
|
-
// bazel-out/
|
|
497
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/emit_scopes/emit_scope.mjs
|
|
498
498
|
var EmitScope = class {
|
|
499
499
|
constructor(ngImport, translator) {
|
|
500
500
|
this.ngImport = ngImport;
|
|
@@ -510,7 +510,7 @@ var EmitScope = class {
|
|
|
510
510
|
}
|
|
511
511
|
};
|
|
512
512
|
|
|
513
|
-
// bazel-out/
|
|
513
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/emit_scopes/iife_emit_scope.mjs
|
|
514
514
|
var IifeEmitScope = class extends EmitScope {
|
|
515
515
|
constructor(ngImport, translator, factory) {
|
|
516
516
|
super(ngImport, translator);
|
|
@@ -528,10 +528,10 @@ var IifeEmitScope = class extends EmitScope {
|
|
|
528
528
|
}
|
|
529
529
|
};
|
|
530
530
|
|
|
531
|
-
// bazel-out/
|
|
531
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.mjs
|
|
532
532
|
import semver from "semver";
|
|
533
533
|
|
|
534
|
-
// bazel-out/
|
|
534
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/get_source_file.mjs
|
|
535
535
|
function createGetSourceFile(sourceUrl, code, loader) {
|
|
536
536
|
if (loader === null) {
|
|
537
537
|
return () => null;
|
|
@@ -546,7 +546,7 @@ function createGetSourceFile(sourceUrl, code, loader) {
|
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
// bazel-out/
|
|
549
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_class_metadata_linker_1.mjs
|
|
550
550
|
import { compileClassMetadata } from "@angular/compiler";
|
|
551
551
|
var PartialClassMetadataLinkerVersion1 = class {
|
|
552
552
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -563,14 +563,14 @@ function toR3ClassMetadata(metaObj) {
|
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
565
|
|
|
566
|
-
// bazel-out/
|
|
566
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.mjs
|
|
567
567
|
import { ChangeDetectionStrategy, compileComponentFromMetadata, DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, makeBindingParser as makeBindingParser2, parseTemplate, ViewEncapsulation } from "@angular/compiler";
|
|
568
568
|
|
|
569
|
-
// bazel-out/
|
|
569
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.mjs
|
|
570
570
|
import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSourceFile, ParseSourceSpan } from "@angular/compiler";
|
|
571
571
|
|
|
572
|
-
// bazel-out/
|
|
573
|
-
import {
|
|
572
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/util.mjs
|
|
573
|
+
import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
|
|
574
574
|
function wrapReference(wrapped) {
|
|
575
575
|
return { value: wrapped, type: wrapped };
|
|
576
576
|
}
|
|
@@ -600,7 +600,7 @@ function getDependency(depObj) {
|
|
|
600
600
|
}
|
|
601
601
|
function extractForwardRef(expr) {
|
|
602
602
|
if (!expr.isCallExpression()) {
|
|
603
|
-
return
|
|
603
|
+
return createMayBeForwardRefExpression(expr.getOpaque(), 0);
|
|
604
604
|
}
|
|
605
605
|
const callee = expr.getCallee();
|
|
606
606
|
if (callee.getSymbolName() !== "forwardRef") {
|
|
@@ -614,10 +614,10 @@ function extractForwardRef(expr) {
|
|
|
614
614
|
if (!wrapperFn.isFunction()) {
|
|
615
615
|
throw new FatalLinkerError(wrapperFn, "Unsupported `forwardRef(fn)` call, expected its argument to be a function");
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return createMayBeForwardRefExpression(wrapperFn.getFunctionReturnValue().getOpaque(), 2);
|
|
618
618
|
}
|
|
619
619
|
|
|
620
|
-
// bazel-out/
|
|
620
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_directive_linker_1.mjs
|
|
621
621
|
var PartialDirectiveLinkerVersion1 = class {
|
|
622
622
|
constructor(sourceUrl, code) {
|
|
623
623
|
this.sourceUrl = sourceUrl;
|
|
@@ -697,7 +697,7 @@ function toQueryMetadata(obj) {
|
|
|
697
697
|
if (predicateExpr.isArray()) {
|
|
698
698
|
predicate = predicateExpr.getArray().map((entry) => entry.getString());
|
|
699
699
|
} else {
|
|
700
|
-
predicate = predicateExpr
|
|
700
|
+
predicate = extractForwardRef(predicateExpr);
|
|
701
701
|
}
|
|
702
702
|
return {
|
|
703
703
|
propertyName: obj.getString("propertyName"),
|
|
@@ -715,7 +715,7 @@ function createSourceSpan(range, code, sourceUrl) {
|
|
|
715
715
|
return new ParseSourceSpan(startLocation, startLocation.moveBy(range.endPos - range.startPos));
|
|
716
716
|
}
|
|
717
717
|
|
|
718
|
-
// bazel-out/
|
|
718
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.mjs
|
|
719
719
|
var PartialComponentLinkerVersion1 = class {
|
|
720
720
|
constructor(getSourceFile2, sourceUrl, code) {
|
|
721
721
|
this.getSourceFile = getSourceFile2;
|
|
@@ -751,8 +751,8 @@ ${errors}`);
|
|
|
751
751
|
const directiveExpr = directive.getObject();
|
|
752
752
|
const type = directiveExpr.getValue("type");
|
|
753
753
|
const selector = directiveExpr.getString("selector");
|
|
754
|
-
const { expression: typeExpr,
|
|
755
|
-
if (
|
|
754
|
+
const { expression: typeExpr, forwardRef } = extractForwardRef(type);
|
|
755
|
+
if (forwardRef === 2) {
|
|
756
756
|
declarationListEmitMode = 1;
|
|
757
757
|
}
|
|
758
758
|
return {
|
|
@@ -774,8 +774,8 @@ ${errors}`);
|
|
|
774
774
|
let pipes = new Map();
|
|
775
775
|
if (metaObj.has("pipes")) {
|
|
776
776
|
pipes = metaObj.getObject("pipes").toMap((pipe) => {
|
|
777
|
-
const { expression: pipeType,
|
|
778
|
-
if (
|
|
777
|
+
const { expression: pipeType, forwardRef } = extractForwardRef(pipe);
|
|
778
|
+
if (forwardRef === 2) {
|
|
779
779
|
declarationListEmitMode = 1;
|
|
780
780
|
}
|
|
781
781
|
return pipeType;
|
|
@@ -872,7 +872,7 @@ function parseChangeDetectionStrategy(changeDetectionStrategy) {
|
|
|
872
872
|
return enumValue;
|
|
873
873
|
}
|
|
874
874
|
|
|
875
|
-
// bazel-out/
|
|
875
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_factory_linker_1.mjs
|
|
876
876
|
import { compileFactoryFunction, FactoryTarget } from "@angular/compiler";
|
|
877
877
|
var PartialFactoryLinkerVersion1 = class {
|
|
878
878
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -910,8 +910,8 @@ function getDependencies(metaObj, propName) {
|
|
|
910
910
|
return null;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
-
// bazel-out/
|
|
914
|
-
import { compileInjectable,
|
|
913
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.mjs
|
|
914
|
+
import { compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, outputAst as o3 } from "@angular/compiler";
|
|
915
915
|
var PartialInjectableLinkerVersion1 = class {
|
|
916
916
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
917
917
|
const meta = toR3InjectableMeta(metaObj);
|
|
@@ -930,7 +930,7 @@ function toR3InjectableMeta(metaObj) {
|
|
|
930
930
|
type: wrapReference(typeExpr.getOpaque()),
|
|
931
931
|
internalType: typeExpr.getOpaque(),
|
|
932
932
|
typeArgumentCount: 0,
|
|
933
|
-
providedIn: metaObj.has("providedIn") ? extractForwardRef(metaObj.getValue("providedIn")) :
|
|
933
|
+
providedIn: metaObj.has("providedIn") ? extractForwardRef(metaObj.getValue("providedIn")) : createMayBeForwardRefExpression2(o3.literal(null), 0)
|
|
934
934
|
};
|
|
935
935
|
if (metaObj.has("useClass")) {
|
|
936
936
|
meta.useClass = extractForwardRef(metaObj.getValue("useClass"));
|
|
@@ -950,7 +950,7 @@ function toR3InjectableMeta(metaObj) {
|
|
|
950
950
|
return meta;
|
|
951
951
|
}
|
|
952
952
|
|
|
953
|
-
// bazel-out/
|
|
953
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_injector_linker_1.mjs
|
|
954
954
|
import { compileInjector } from "@angular/compiler";
|
|
955
955
|
var PartialInjectorLinkerVersion1 = class {
|
|
956
956
|
linkPartialDeclaration(constantPool, metaObj) {
|
|
@@ -974,7 +974,7 @@ function toR3InjectorMeta(metaObj) {
|
|
|
974
974
|
};
|
|
975
975
|
}
|
|
976
976
|
|
|
977
|
-
// bazel-out/
|
|
977
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.mjs
|
|
978
978
|
import { compileNgModule } from "@angular/compiler";
|
|
979
979
|
var PartialNgModuleLinkerVersion1 = class {
|
|
980
980
|
constructor(emitInline) {
|
|
@@ -1046,7 +1046,7 @@ function wrapReferences(values) {
|
|
|
1046
1046
|
return values.getArray().map((i) => wrapReference(i.getOpaque()));
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
|
-
// bazel-out/
|
|
1049
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.mjs
|
|
1050
1050
|
import { compilePipeFromMetadata } from "@angular/compiler";
|
|
1051
1051
|
var PartialPipeLinkerVersion1 = class {
|
|
1052
1052
|
constructor() {
|
|
@@ -1075,7 +1075,7 @@ function toR3PipeMeta(metaObj) {
|
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
1077
|
|
|
1078
|
-
// bazel-out/
|
|
1078
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_linker_selector.mjs
|
|
1079
1079
|
var \u0275\u0275ngDeclareDirective = "\u0275\u0275ngDeclareDirective";
|
|
1080
1080
|
var \u0275\u0275ngDeclareClassMetadata = "\u0275\u0275ngDeclareClassMetadata";
|
|
1081
1081
|
var \u0275\u0275ngDeclareComponent = "\u0275\u0275ngDeclareComponent";
|
|
@@ -1086,7 +1086,7 @@ var \u0275\u0275ngDeclareNgModule = "\u0275\u0275ngDeclareNgModule";
|
|
|
1086
1086
|
var \u0275\u0275ngDeclarePipe = "\u0275\u0275ngDeclarePipe";
|
|
1087
1087
|
function createLinkerMap(environment, sourceUrl, code) {
|
|
1088
1088
|
const linkers = new Map();
|
|
1089
|
-
const LATEST_VERSION_RANGE = getRange("<=", "13.0.
|
|
1089
|
+
const LATEST_VERSION_RANGE = getRange("<=", "13.0.3");
|
|
1090
1090
|
linkers.set(\u0275\u0275ngDeclareDirective, [
|
|
1091
1091
|
{ range: LATEST_VERSION_RANGE, linker: new PartialDirectiveLinkerVersion1(sourceUrl, code) }
|
|
1092
1092
|
]);
|
|
@@ -1133,7 +1133,7 @@ var PartialLinkerSelector = class {
|
|
|
1133
1133
|
throw new Error(`Unknown partial declaration function ${functionName}.`);
|
|
1134
1134
|
}
|
|
1135
1135
|
const linkerRanges = this.linkers.get(functionName);
|
|
1136
|
-
if (version === "13.0.
|
|
1136
|
+
if (version === "13.0.3") {
|
|
1137
1137
|
return linkerRanges[linkerRanges.length - 1].linker;
|
|
1138
1138
|
}
|
|
1139
1139
|
const declarationRange = getRange(">=", minVersion);
|
|
@@ -1159,7 +1159,7 @@ function getRange(comparator, versionStr) {
|
|
|
1159
1159
|
return new semver.Range(`${comparator}${version.format()}`);
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
|
-
// bazel-out/
|
|
1162
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/file_linker.mjs
|
|
1163
1163
|
var FileLinker = class {
|
|
1164
1164
|
constructor(linkerEnvironment, sourceUrl, code) {
|
|
1165
1165
|
this.linkerEnvironment = linkerEnvironment;
|
|
@@ -1202,7 +1202,7 @@ var FileLinker = class {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
};
|
|
1204
1204
|
|
|
1205
|
-
// bazel-out/
|
|
1205
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/content_origin.mjs
|
|
1206
1206
|
var ContentOrigin;
|
|
1207
1207
|
(function(ContentOrigin2) {
|
|
1208
1208
|
ContentOrigin2[ContentOrigin2["Provided"] = 0] = "Provided";
|
|
@@ -1210,11 +1210,11 @@ var ContentOrigin;
|
|
|
1210
1210
|
ContentOrigin2[ContentOrigin2["FileSystem"] = 2] = "FileSystem";
|
|
1211
1211
|
})(ContentOrigin || (ContentOrigin = {}));
|
|
1212
1212
|
|
|
1213
|
-
// bazel-out/
|
|
1213
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
|
|
1214
1214
|
import mapHelpers from "convert-source-map";
|
|
1215
1215
|
import { decode, encode } from "sourcemap-codec";
|
|
1216
1216
|
|
|
1217
|
-
// bazel-out/
|
|
1217
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.mjs
|
|
1218
1218
|
function compareSegments(a, b) {
|
|
1219
1219
|
return a.position - b.position;
|
|
1220
1220
|
}
|
|
@@ -1234,7 +1234,7 @@ function offsetSegment(startOfLinePositions, marker, offset) {
|
|
|
1234
1234
|
return { line, column, position, next: void 0 };
|
|
1235
1235
|
}
|
|
1236
1236
|
|
|
1237
|
-
// bazel-out/
|
|
1237
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.mjs
|
|
1238
1238
|
function removeSourceMapComments(contents) {
|
|
1239
1239
|
return mapHelpers.removeMapFileComments(mapHelpers.removeComments(contents)).replace(/\n\n$/, "\n");
|
|
1240
1240
|
}
|
|
@@ -1485,7 +1485,7 @@ var Cache = class {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
};
|
|
1487
1487
|
|
|
1488
|
-
// bazel-out/
|
|
1488
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.mjs
|
|
1489
1489
|
import mapHelpers2 from "convert-source-map";
|
|
1490
1490
|
var SCHEME_MATCHER = /^([a-z][a-z0-9.-]*):\/\//i;
|
|
1491
1491
|
var SourceFileLoader = class {
|
|
@@ -1602,14 +1602,14 @@ var SourceFileLoader = class {
|
|
|
1602
1602
|
}
|
|
1603
1603
|
};
|
|
1604
1604
|
|
|
1605
|
-
// bazel-out/
|
|
1605
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/linker_options.mjs
|
|
1606
1606
|
var DEFAULT_LINKER_OPTIONS = {
|
|
1607
1607
|
sourceMapping: true,
|
|
1608
1608
|
linkerJitMode: false,
|
|
1609
1609
|
unknownDeclarationVersionHandling: "error"
|
|
1610
1610
|
};
|
|
1611
1611
|
|
|
1612
|
-
// bazel-out/
|
|
1612
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
1613
1613
|
var Context = class {
|
|
1614
1614
|
constructor(isStatement) {
|
|
1615
1615
|
this.isStatement = isStatement;
|
|
@@ -1622,23 +1622,23 @@ var Context = class {
|
|
|
1622
1622
|
}
|
|
1623
1623
|
};
|
|
1624
1624
|
|
|
1625
|
-
// bazel-out/
|
|
1625
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
1626
1626
|
import ts6 from "typescript";
|
|
1627
1627
|
|
|
1628
|
-
// bazel-out/
|
|
1628
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
1629
1629
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1630
1630
|
|
|
1631
|
-
// bazel-out/
|
|
1631
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1632
1632
|
import { ExternalExpr, ExternalReference, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1633
1633
|
import ts4 from "typescript";
|
|
1634
1634
|
|
|
1635
|
-
// bazel-out/
|
|
1635
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
1636
1636
|
import ts2 from "typescript";
|
|
1637
1637
|
|
|
1638
|
-
// bazel-out/
|
|
1638
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
1639
1639
|
import ts3 from "typescript";
|
|
1640
1640
|
|
|
1641
|
-
// bazel-out/
|
|
1641
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
1642
1642
|
var ImportFlags;
|
|
1643
1643
|
(function(ImportFlags2) {
|
|
1644
1644
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -1647,7 +1647,7 @@ var ImportFlags;
|
|
|
1647
1647
|
ImportFlags2[ImportFlags2["AllowTypeImports"] = 4] = "AllowTypeImports";
|
|
1648
1648
|
})(ImportFlags || (ImportFlags = {}));
|
|
1649
1649
|
|
|
1650
|
-
// bazel-out/
|
|
1650
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
1651
1651
|
var CORE_SUPPORTED_SYMBOLS = new Map([
|
|
1652
1652
|
["\u0275\u0275defineInjectable", "\u0275\u0275defineInjectable"],
|
|
1653
1653
|
["\u0275\u0275defineInjector", "\u0275\u0275defineInjector"],
|
|
@@ -1663,11 +1663,11 @@ var CORE_SUPPORTED_SYMBOLS = new Map([
|
|
|
1663
1663
|
["\u0275noSideEffects", "\u0275noSideEffects"]
|
|
1664
1664
|
]);
|
|
1665
1665
|
|
|
1666
|
-
// bazel-out/
|
|
1666
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
1667
1667
|
import ts5 from "typescript";
|
|
1668
1668
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
1669
1669
|
|
|
1670
|
-
// bazel-out/
|
|
1670
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
1671
1671
|
import {
|
|
1672
1672
|
BinaryOperator,
|
|
1673
1673
|
ConditionalExpr,
|
|
@@ -1911,13 +1911,13 @@ function createRange(span) {
|
|
|
1911
1911
|
};
|
|
1912
1912
|
}
|
|
1913
1913
|
|
|
1914
|
-
// bazel-out/
|
|
1914
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
1915
1915
|
import {
|
|
1916
1916
|
BuiltinTypeName
|
|
1917
1917
|
} from "@angular/compiler";
|
|
1918
1918
|
import ts7 from "typescript";
|
|
1919
1919
|
|
|
1920
|
-
// bazel-out/
|
|
1920
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
1921
1921
|
import ts8 from "typescript";
|
|
1922
1922
|
var PureAnnotation;
|
|
1923
1923
|
(function(PureAnnotation2) {
|
|
@@ -1954,7 +1954,7 @@ var VAR_TYPES = {
|
|
|
1954
1954
|
"var": ts8.NodeFlags.None
|
|
1955
1955
|
};
|
|
1956
1956
|
|
|
1957
|
-
// bazel-out/
|
|
1957
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/translator.mjs
|
|
1958
1958
|
var Translator = class {
|
|
1959
1959
|
constructor(factory) {
|
|
1960
1960
|
this.factory = factory;
|
|
@@ -1967,7 +1967,7 @@ var Translator = class {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
};
|
|
1969
1969
|
|
|
1970
|
-
// bazel-out/
|
|
1970
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/linker_environment.mjs
|
|
1971
1971
|
var LinkerEnvironment = class {
|
|
1972
1972
|
constructor(fileSystem, logger, host, factory, options) {
|
|
1973
1973
|
this.fileSystem = fileSystem;
|
|
@@ -1988,7 +1988,7 @@ var LinkerEnvironment = class {
|
|
|
1988
1988
|
}
|
|
1989
1989
|
};
|
|
1990
1990
|
|
|
1991
|
-
// bazel-out/
|
|
1991
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/babel_core.mjs
|
|
1992
1992
|
import * as _babelNamespace from "@babel/core";
|
|
1993
1993
|
import _babelDefault from "@babel/core";
|
|
1994
1994
|
var _a;
|
|
@@ -2002,7 +2002,7 @@ var NodePath = babel.NodePath;
|
|
|
2002
2002
|
var transformSync = babel.transformSync;
|
|
2003
2003
|
var parse = babel.parse;
|
|
2004
2004
|
|
|
2005
|
-
// bazel-out/
|
|
2005
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/ast/babel_ast_factory.mjs
|
|
2006
2006
|
var BabelAstFactory = class {
|
|
2007
2007
|
constructor(sourceUrl) {
|
|
2008
2008
|
this.sourceUrl = sourceUrl;
|
|
@@ -2115,7 +2115,7 @@ function isLExpression(expr) {
|
|
|
2115
2115
|
return types.isLVal(expr);
|
|
2116
2116
|
}
|
|
2117
2117
|
|
|
2118
|
-
// bazel-out/
|
|
2118
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/ast/babel_ast_host.mjs
|
|
2119
2119
|
var BabelAstHost = class {
|
|
2120
2120
|
constructor() {
|
|
2121
2121
|
this.isStringLiteral = types.isStringLiteral;
|
|
@@ -2232,7 +2232,7 @@ function isMinifiedBooleanLiteral(node) {
|
|
|
2232
2232
|
return types.isUnaryExpression(node) && node.prefix && node.operator === "!" && types.isNumericLiteral(node.argument) && (node.argument.value === 0 || node.argument.value === 1);
|
|
2233
2233
|
}
|
|
2234
2234
|
|
|
2235
|
-
// bazel-out/
|
|
2235
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/babel_declaration_scope.mjs
|
|
2236
2236
|
var BabelDeclarationScope = class {
|
|
2237
2237
|
constructor(declarationScope) {
|
|
2238
2238
|
this.declarationScope = declarationScope;
|
|
@@ -2257,7 +2257,7 @@ var BabelDeclarationScope = class {
|
|
|
2257
2257
|
}
|
|
2258
2258
|
};
|
|
2259
2259
|
|
|
2260
|
-
// bazel-out/
|
|
2260
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/es2015_linker_plugin.mjs
|
|
2261
2261
|
function createEs2015LinkerPlugin(_a2) {
|
|
2262
2262
|
var _b = _a2, { fileSystem, logger } = _b, options = __objRest(_b, ["fileSystem", "logger"]);
|
|
2263
2263
|
let fileLinker = null;
|
|
@@ -2359,7 +2359,7 @@ function buildCodeFrameError(file, message, node) {
|
|
|
2359
2359
|
return `${filename}: ${error.message}`;
|
|
2360
2360
|
}
|
|
2361
2361
|
|
|
2362
|
-
// bazel-out/
|
|
2362
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/babel_plugin.mjs
|
|
2363
2363
|
function defaultLinkerPlugin(api, options) {
|
|
2364
2364
|
api.assertVersion(7);
|
|
2365
2365
|
return createEs2015LinkerPlugin(__spreadProps(__spreadValues({}, options), {
|
|
@@ -2368,7 +2368,7 @@ function defaultLinkerPlugin(api, options) {
|
|
|
2368
2368
|
}));
|
|
2369
2369
|
}
|
|
2370
2370
|
|
|
2371
|
-
// bazel-out/
|
|
2371
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/index.mjs
|
|
2372
2372
|
var babel_default = defaultLinkerPlugin;
|
|
2373
2373
|
export {
|
|
2374
2374
|
createEs2015LinkerPlugin,
|