@angular/compiler-cli 16.1.2 → 16.1.4
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-3SPKRPX3.js → chunk-5MERUDE2.js} +124 -110
- package/bundles/{chunk-3SPKRPX3.js.map → chunk-5MERUDE2.js.map} +1 -1
- package/bundles/{chunk-LOZJLM26.js → chunk-AAX4HKH5.js} +8 -8
- package/bundles/{chunk-ADNHTL54.js → chunk-BMUVRSIJ.js} +33 -32
- package/bundles/{chunk-ADNHTL54.js.map → chunk-BMUVRSIJ.js.map} +1 -1
- package/bundles/{chunk-TBUSSXUA.js → chunk-EC5K6QPP.js} +7 -7
- package/bundles/{chunk-LVVIYUZC.js → chunk-GD2XA2JL.js} +94 -94
- package/bundles/{chunk-LVVIYUZC.js.map → chunk-GD2XA2JL.js.map} +1 -1
- package/bundles/{chunk-EKTJ7622.js → chunk-GYHDNUIK.js} +7 -7
- package/bundles/{chunk-7PCPPTTO.js → chunk-HJOPJLIM.js} +5 -5
- package/bundles/{chunk-WF3L5COT.js → chunk-KPIJL3UY.js} +21 -21
- package/bundles/{chunk-NIK4FIWB.js → chunk-OIJPCKRW.js} +6 -6
- package/bundles/{chunk-SJLWUYXS.js → chunk-ONCDPGC3.js} +5 -5
- package/bundles/{chunk-LYJKWJUC.js → chunk-SBDNBITT.js} +3 -3
- package/bundles/{chunk-CWFGODIP.js → chunk-TCDCHMLM.js} +5 -5
- package/bundles/index.js +13 -13
- package/bundles/linker/babel/index.js +13 -13
- package/bundles/linker/index.js +5 -5
- 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 +6 -6
- package/bundles/private/tooling.js +4 -4
- package/bundles/src/bin/ng_xi18n.js +11 -11
- package/bundles/src/bin/ngc.js +9 -9
- package/bundles_metadata.json +1 -1
- package/package.json +3 -3
- package/src/ngtsc/annotations/ng_module/src/handler.d.ts +3 -2
- /package/bundles/{chunk-LOZJLM26.js.map → chunk-AAX4HKH5.js.map} +0 -0
- /package/bundles/{chunk-TBUSSXUA.js.map → chunk-EC5K6QPP.js.map} +0 -0
- /package/bundles/{chunk-EKTJ7622.js.map → chunk-GYHDNUIK.js.map} +0 -0
- /package/bundles/{chunk-7PCPPTTO.js.map → chunk-HJOPJLIM.js.map} +0 -0
- /package/bundles/{chunk-WF3L5COT.js.map → chunk-KPIJL3UY.js.map} +0 -0
- /package/bundles/{chunk-NIK4FIWB.js.map → chunk-OIJPCKRW.js.map} +0 -0
- /package/bundles/{chunk-SJLWUYXS.js.map → chunk-ONCDPGC3.js.map} +0 -0
- /package/bundles/{chunk-LYJKWJUC.js.map → chunk-SBDNBITT.js.map} +0 -0
- /package/bundles/{chunk-CWFGODIP.js.map → chunk-TCDCHMLM.js.map} +0 -0
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
reflectObjectLiteral,
|
|
10
10
|
reflectTypeEntityToDeclaration,
|
|
11
11
|
typeNodeToValueExpr
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OIJPCKRW.js";
|
|
13
13
|
import {
|
|
14
14
|
ImportManager,
|
|
15
15
|
translateExpression,
|
|
16
16
|
translateStatement,
|
|
17
17
|
translateType
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AAX4HKH5.js";
|
|
19
19
|
import {
|
|
20
20
|
ErrorCode,
|
|
21
21
|
FatalDiagnosticError,
|
|
@@ -32,18 +32,18 @@ import {
|
|
|
32
32
|
makeRelatedInformation,
|
|
33
33
|
nodeDebugInfo,
|
|
34
34
|
nodeNameForError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-KPIJL3UY.js";
|
|
36
36
|
import {
|
|
37
37
|
PerfEvent,
|
|
38
38
|
PerfPhase
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-HJOPJLIM.js";
|
|
40
40
|
import {
|
|
41
41
|
absoluteFrom,
|
|
42
42
|
absoluteFromSourceFile,
|
|
43
43
|
relative
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-EC5K6QPP.js";
|
|
45
45
|
|
|
46
|
-
// bazel-out/
|
|
46
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
47
47
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
48
48
|
import ts from "typescript";
|
|
49
49
|
function valueReferenceToExpression(valueRef) {
|
|
@@ -284,7 +284,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
284
284
|
return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
// bazel-out/
|
|
287
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
288
288
|
var DynamicValue = class {
|
|
289
289
|
constructor(node, reason, code) {
|
|
290
290
|
this.node = node;
|
|
@@ -374,10 +374,10 @@ var DynamicValue = class {
|
|
|
374
374
|
}
|
|
375
375
|
};
|
|
376
376
|
|
|
377
|
-
// bazel-out/
|
|
377
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
378
378
|
import ts2 from "typescript";
|
|
379
379
|
|
|
380
|
-
// bazel-out/
|
|
380
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
381
381
|
var ResolvedModule = class {
|
|
382
382
|
constructor(exports, evaluate) {
|
|
383
383
|
this.exports = exports;
|
|
@@ -407,7 +407,7 @@ var EnumValue = class {
|
|
|
407
407
|
var KnownFn = class {
|
|
408
408
|
};
|
|
409
409
|
|
|
410
|
-
// bazel-out/
|
|
410
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
411
411
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
412
412
|
constructor(lhs) {
|
|
413
413
|
super();
|
|
@@ -459,14 +459,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
459
459
|
}
|
|
460
460
|
};
|
|
461
461
|
|
|
462
|
-
// bazel-out/
|
|
462
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
463
463
|
var SyntheticValue = class {
|
|
464
464
|
constructor(value) {
|
|
465
465
|
this.value = value;
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
468
|
|
|
469
|
-
// bazel-out/
|
|
469
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
470
470
|
function literalBinaryOp(op) {
|
|
471
471
|
return { op, literal: true };
|
|
472
472
|
}
|
|
@@ -1047,7 +1047,7 @@ function getOriginalKeywordKind(identifier) {
|
|
|
1047
1047
|
return typeof ts2.identifierToKeywordKind === "function" ? ts2.identifierToKeywordKind(identifier) : identifier.originalKeywordKind;
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
|
-
// bazel-out/
|
|
1050
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1051
1051
|
var PartialEvaluator = class {
|
|
1052
1052
|
constructor(host, checker, dependencyTracker) {
|
|
1053
1053
|
this.host = host;
|
|
@@ -1067,7 +1067,7 @@ var PartialEvaluator = class {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
};
|
|
1069
1069
|
|
|
1070
|
-
// bazel-out/
|
|
1070
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1071
1071
|
import ts3 from "typescript";
|
|
1072
1072
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1073
1073
|
var _a, _b;
|
|
@@ -1197,7 +1197,7 @@ function getContainerNode(node) {
|
|
|
1197
1197
|
return node.getSourceFile();
|
|
1198
1198
|
}
|
|
1199
1199
|
|
|
1200
|
-
// bazel-out/
|
|
1200
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1201
1201
|
import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1202
1202
|
import ts4 from "typescript";
|
|
1203
1203
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1341,10 +1341,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1341
1341
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
1342
1342
|
}
|
|
1343
1343
|
|
|
1344
|
-
// bazel-out/
|
|
1344
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
1345
1345
|
import ts7 from "typescript";
|
|
1346
1346
|
|
|
1347
|
-
// bazel-out/
|
|
1347
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1348
1348
|
var MetaKind;
|
|
1349
1349
|
(function(MetaKind2) {
|
|
1350
1350
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -1357,10 +1357,10 @@ var MatchSource;
|
|
|
1357
1357
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
1358
1358
|
})(MatchSource || (MatchSource = {}));
|
|
1359
1359
|
|
|
1360
|
-
// bazel-out/
|
|
1360
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1361
1361
|
import ts6 from "typescript";
|
|
1362
1362
|
|
|
1363
|
-
// bazel-out/
|
|
1363
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1364
1364
|
var ClassPropertyMapping = class {
|
|
1365
1365
|
constructor(forwardMap) {
|
|
1366
1366
|
this.forwardMap = forwardMap;
|
|
@@ -1438,7 +1438,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
1438
1438
|
return reverseMap;
|
|
1439
1439
|
}
|
|
1440
1440
|
|
|
1441
|
-
// bazel-out/
|
|
1441
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
1442
1442
|
import ts5 from "typescript";
|
|
1443
1443
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
1444
1444
|
if (!ts5.isTupleTypeNode(def)) {
|
|
@@ -1623,7 +1623,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
1623
1623
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
1624
1624
|
}
|
|
1625
1625
|
|
|
1626
|
-
// bazel-out/
|
|
1626
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1627
1627
|
var DtsMetadataReader = class {
|
|
1628
1628
|
constructor(checker, reflector) {
|
|
1629
1629
|
this.checker = checker;
|
|
@@ -1798,7 +1798,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
1798
1798
|
return result.length > 0 ? result : null;
|
|
1799
1799
|
}
|
|
1800
1800
|
|
|
1801
|
-
// bazel-out/
|
|
1801
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
1802
1802
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
1803
1803
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
1804
1804
|
if (topMeta === null) {
|
|
@@ -1856,7 +1856,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
1856
1856
|
};
|
|
1857
1857
|
}
|
|
1858
1858
|
|
|
1859
|
-
// bazel-out/
|
|
1859
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
1860
1860
|
var LocalMetadataRegistry = class {
|
|
1861
1861
|
constructor() {
|
|
1862
1862
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -1913,7 +1913,7 @@ var CompoundMetadataRegistry = class {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
};
|
|
1915
1915
|
|
|
1916
|
-
// bazel-out/
|
|
1916
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
1917
1917
|
var ResourceRegistry = class {
|
|
1918
1918
|
constructor() {
|
|
1919
1919
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -1978,7 +1978,7 @@ var ResourceRegistry = class {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
};
|
|
1980
1980
|
|
|
1981
|
-
// bazel-out/
|
|
1981
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
1982
1982
|
var ExportedProviderStatusResolver = class {
|
|
1983
1983
|
constructor(metaReader) {
|
|
1984
1984
|
this.metaReader = metaReader;
|
|
@@ -2022,7 +2022,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
};
|
|
2024
2024
|
|
|
2025
|
-
// bazel-out/
|
|
2025
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
2026
2026
|
var EMPTY_ARRAY = [];
|
|
2027
2027
|
var HostDirectivesResolver = class {
|
|
2028
2028
|
constructor(metaReader) {
|
|
@@ -2084,7 +2084,7 @@ function resolveOutput(bindingName) {
|
|
|
2084
2084
|
return bindingName;
|
|
2085
2085
|
}
|
|
2086
2086
|
|
|
2087
|
-
// bazel-out/
|
|
2087
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
2088
2088
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
2089
2089
|
const context = [];
|
|
2090
2090
|
for (const decl of data) {
|
|
@@ -2280,7 +2280,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
2280
2280
|
return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${kind.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @${baseNeedsDecorator} decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
|
|
2281
2281
|
}
|
|
2282
2282
|
|
|
2283
|
-
// bazel-out/
|
|
2283
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
2284
2284
|
import ts8 from "typescript";
|
|
2285
2285
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
2286
2286
|
let resolved = null;
|
|
@@ -2313,7 +2313,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
2313
2313
|
return meta;
|
|
2314
2314
|
}
|
|
2315
2315
|
|
|
2316
|
-
// bazel-out/
|
|
2316
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
2317
2317
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
2318
2318
|
function compileNgFactoryDefField(metadata) {
|
|
2319
2319
|
const res = compileFactoryFunction(metadata);
|
|
@@ -2324,7 +2324,7 @@ function compileDeclareFactory(metadata) {
|
|
|
2324
2324
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
2325
2325
|
}
|
|
2326
2326
|
|
|
2327
|
-
// bazel-out/
|
|
2327
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
2328
2328
|
var InjectableClassRegistry = class {
|
|
2329
2329
|
constructor(host, isCore) {
|
|
2330
2330
|
this.host = host;
|
|
@@ -2350,7 +2350,7 @@ var InjectableClassRegistry = class {
|
|
|
2350
2350
|
}
|
|
2351
2351
|
};
|
|
2352
2352
|
|
|
2353
|
-
// bazel-out/
|
|
2353
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
2354
2354
|
import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
2355
2355
|
import ts9 from "typescript";
|
|
2356
2356
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -2437,13 +2437,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
2437
2437
|
return result.transformed[0];
|
|
2438
2438
|
}
|
|
2439
2439
|
|
|
2440
|
-
// bazel-out/
|
|
2440
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
2441
2441
|
var NoopReferencesRegistry = class {
|
|
2442
2442
|
add(source, ...references) {
|
|
2443
2443
|
}
|
|
2444
2444
|
};
|
|
2445
2445
|
|
|
2446
|
-
// bazel-out/
|
|
2446
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
2447
2447
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
2448
2448
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
2449
2449
|
const schemas = [];
|
|
@@ -2473,7 +2473,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
2473
2473
|
return schemas;
|
|
2474
2474
|
}
|
|
2475
2475
|
|
|
2476
|
-
// bazel-out/
|
|
2476
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
2477
2477
|
import { outputAst } from "@angular/compiler";
|
|
2478
2478
|
function compileInputTransformFields(inputs) {
|
|
2479
2479
|
const extraFields = [];
|
|
@@ -2490,11 +2490,11 @@ function compileInputTransformFields(inputs) {
|
|
|
2490
2490
|
return extraFields;
|
|
2491
2491
|
}
|
|
2492
2492
|
|
|
2493
|
-
// bazel-out/
|
|
2493
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
2494
2494
|
import { compileClassMetadata as compileClassMetadata3, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector as CssSelector2, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher2, ViewEncapsulation, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
|
|
2495
2495
|
import ts24 from "typescript";
|
|
2496
2496
|
|
|
2497
|
-
// bazel-out/
|
|
2497
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
2498
2498
|
import ts10 from "typescript";
|
|
2499
2499
|
var SemanticSymbol = class {
|
|
2500
2500
|
constructor(decl) {
|
|
@@ -2510,7 +2510,7 @@ function getSymbolIdentifier(decl) {
|
|
|
2510
2510
|
return decl.name.text;
|
|
2511
2511
|
}
|
|
2512
2512
|
|
|
2513
|
-
// bazel-out/
|
|
2513
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
2514
2514
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
2515
2515
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
2516
2516
|
isPublicApiAffected() {
|
|
@@ -2653,10 +2653,10 @@ function getImportPath(expr) {
|
|
|
2653
2653
|
}
|
|
2654
2654
|
}
|
|
2655
2655
|
|
|
2656
|
-
// bazel-out/
|
|
2656
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
2657
2657
|
import ts11 from "typescript";
|
|
2658
2658
|
|
|
2659
|
-
// bazel-out/
|
|
2659
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
2660
2660
|
function isSymbolEqual(a, b) {
|
|
2661
2661
|
if (a.decl === b.decl) {
|
|
2662
2662
|
return true;
|
|
@@ -2706,7 +2706,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
2706
2706
|
return true;
|
|
2707
2707
|
}
|
|
2708
2708
|
|
|
2709
|
-
// bazel-out/
|
|
2709
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
2710
2710
|
function extractSemanticTypeParameters(node) {
|
|
2711
2711
|
if (!ts11.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
2712
2712
|
return null;
|
|
@@ -2726,14 +2726,14 @@ function isTypeParameterEqual(a, b) {
|
|
|
2726
2726
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
2727
2727
|
}
|
|
2728
2728
|
|
|
2729
|
-
// bazel-out/
|
|
2729
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
2730
2730
|
var ComponentScopeKind;
|
|
2731
2731
|
(function(ComponentScopeKind2) {
|
|
2732
2732
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
2733
2733
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
2734
2734
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
2735
2735
|
|
|
2736
|
-
// bazel-out/
|
|
2736
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
2737
2737
|
var CompoundComponentScopeReader = class {
|
|
2738
2738
|
constructor(readers) {
|
|
2739
2739
|
this.readers = readers;
|
|
@@ -2758,7 +2758,7 @@ var CompoundComponentScopeReader = class {
|
|
|
2758
2758
|
}
|
|
2759
2759
|
};
|
|
2760
2760
|
|
|
2761
|
-
// bazel-out/
|
|
2761
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
2762
2762
|
var MetadataDtsModuleScopeResolver = class {
|
|
2763
2763
|
constructor(dtsMetaReader, aliasingHost) {
|
|
2764
2764
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -2834,11 +2834,11 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
};
|
|
2836
2836
|
|
|
2837
|
-
// bazel-out/
|
|
2837
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2838
2838
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
2839
2839
|
import ts12 from "typescript";
|
|
2840
2840
|
|
|
2841
|
-
// bazel-out/
|
|
2841
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
2842
2842
|
function getDiagnosticNode(ref, rawExpr) {
|
|
2843
2843
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
2844
2844
|
}
|
|
@@ -2861,7 +2861,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
2861
2861
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
2862
2862
|
}
|
|
2863
2863
|
|
|
2864
|
-
// bazel-out/
|
|
2864
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2865
2865
|
var LocalModuleScopeRegistry = class {
|
|
2866
2866
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
2867
2867
|
this.localReader = localReader;
|
|
@@ -3200,7 +3200,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
3200
3200
|
]);
|
|
3201
3201
|
}
|
|
3202
3202
|
|
|
3203
|
-
// bazel-out/
|
|
3203
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
3204
3204
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
3205
3205
|
import ts13 from "typescript";
|
|
3206
3206
|
var TypeCheckScopeRegistry = class {
|
|
@@ -3269,7 +3269,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
3269
3269
|
}
|
|
3270
3270
|
};
|
|
3271
3271
|
|
|
3272
|
-
// bazel-out/
|
|
3272
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
3273
3273
|
var CompilationMode;
|
|
3274
3274
|
(function(CompilationMode2) {
|
|
3275
3275
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -3283,7 +3283,7 @@ var HandlerPrecedence;
|
|
|
3283
3283
|
HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
|
|
3284
3284
|
})(HandlerPrecedence || (HandlerPrecedence = {}));
|
|
3285
3285
|
|
|
3286
|
-
// bazel-out/
|
|
3286
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
3287
3287
|
import ts14 from "typescript";
|
|
3288
3288
|
function aliasTransformFactory(exportStatements) {
|
|
3289
3289
|
return () => {
|
|
@@ -3306,10 +3306,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
3306
3306
|
};
|
|
3307
3307
|
}
|
|
3308
3308
|
|
|
3309
|
-
// bazel-out/
|
|
3309
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3310
3310
|
import ts15 from "typescript";
|
|
3311
3311
|
|
|
3312
|
-
// bazel-out/
|
|
3312
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
3313
3313
|
var TraitState;
|
|
3314
3314
|
(function(TraitState2) {
|
|
3315
3315
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -3366,7 +3366,7 @@ var TraitImpl = class {
|
|
|
3366
3366
|
}
|
|
3367
3367
|
};
|
|
3368
3368
|
|
|
3369
|
-
// bazel-out/
|
|
3369
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3370
3370
|
var TraitCompiler = class {
|
|
3371
3371
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
3372
3372
|
this.handlers = handlers;
|
|
@@ -3801,10 +3801,10 @@ function containsErrors(diagnostics) {
|
|
|
3801
3801
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts15.DiagnosticCategory.Error);
|
|
3802
3802
|
}
|
|
3803
3803
|
|
|
3804
|
-
// bazel-out/
|
|
3804
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3805
3805
|
import ts17 from "typescript";
|
|
3806
3806
|
|
|
3807
|
-
// bazel-out/
|
|
3807
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
3808
3808
|
import ts16 from "typescript";
|
|
3809
3809
|
function addImports(importManager, sf, extraStatements = []) {
|
|
3810
3810
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -3840,7 +3840,7 @@ function isImportStatement(stmt) {
|
|
|
3840
3840
|
return ts16.isImportDeclaration(stmt) || ts16.isImportEqualsDeclaration(stmt) || ts16.isNamespaceImport(stmt);
|
|
3841
3841
|
}
|
|
3842
3842
|
|
|
3843
|
-
// bazel-out/
|
|
3843
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3844
3844
|
var DtsTransformRegistry = class {
|
|
3845
3845
|
constructor() {
|
|
3846
3846
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -3987,11 +3987,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
3987
3987
|
ts17.forEachChild(node, markForEmitAsSingleLine);
|
|
3988
3988
|
}
|
|
3989
3989
|
|
|
3990
|
-
// bazel-out/
|
|
3990
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3991
3991
|
import { ConstantPool } from "@angular/compiler";
|
|
3992
3992
|
import ts19 from "typescript";
|
|
3993
3993
|
|
|
3994
|
-
// bazel-out/
|
|
3994
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
3995
3995
|
import ts18 from "typescript";
|
|
3996
3996
|
function visit(node, visitor, context) {
|
|
3997
3997
|
return visitor._visit(node, context);
|
|
@@ -4052,7 +4052,7 @@ var Visitor = class {
|
|
|
4052
4052
|
}
|
|
4053
4053
|
};
|
|
4054
4054
|
|
|
4055
|
-
// bazel-out/
|
|
4055
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
4056
4056
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
4057
4057
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
4058
4058
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -4263,10 +4263,10 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
4263
4263
|
return array;
|
|
4264
4264
|
}
|
|
4265
4265
|
|
|
4266
|
-
// bazel-out/
|
|
4266
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4267
4267
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
4268
4268
|
|
|
4269
|
-
// bazel-out/
|
|
4269
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4270
4270
|
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
4271
4271
|
import ts20 from "typescript";
|
|
4272
4272
|
var EMPTY_OBJECT = {};
|
|
@@ -4830,7 +4830,7 @@ function toR3InputMetadata(mapping) {
|
|
|
4830
4830
|
};
|
|
4831
4831
|
}
|
|
4832
4832
|
|
|
4833
|
-
// bazel-out/
|
|
4833
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
4834
4834
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
4835
4835
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
4836
4836
|
super(decl);
|
|
@@ -4910,7 +4910,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
4910
4910
|
return isSymbolEqual(current, previous);
|
|
4911
4911
|
}
|
|
4912
4912
|
|
|
4913
|
-
// bazel-out/
|
|
4913
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4914
4914
|
var FIELD_DECORATORS = [
|
|
4915
4915
|
"Input",
|
|
4916
4916
|
"Output",
|
|
@@ -5074,11 +5074,11 @@ var DirectiveDecoratorHandler = class {
|
|
|
5074
5074
|
}
|
|
5075
5075
|
};
|
|
5076
5076
|
|
|
5077
|
-
// bazel-out/
|
|
5078
|
-
import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr as FunctionExpr2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3SelectorScopeMode, ReturnStatement as ReturnStatement2, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
5077
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5078
|
+
import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr as FunctionExpr2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, ReturnStatement as ReturnStatement2, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
5079
5079
|
import ts22 from "typescript";
|
|
5080
5080
|
|
|
5081
|
-
// bazel-out/
|
|
5081
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
5082
5082
|
import ts21 from "typescript";
|
|
5083
5083
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
5084
5084
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -5145,7 +5145,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
5145
5145
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
5146
5146
|
}
|
|
5147
5147
|
|
|
5148
|
-
// bazel-out/
|
|
5148
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5149
5149
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
5150
5150
|
constructor(decl, hasProviders) {
|
|
5151
5151
|
super(decl);
|
|
@@ -5212,7 +5212,7 @@ var NgModuleSymbol = class extends SemanticSymbol {
|
|
|
5212
5212
|
}
|
|
5213
5213
|
};
|
|
5214
5214
|
var NgModuleDecoratorHandler = class {
|
|
5215
|
-
constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf, includeClassMetadata) {
|
|
5215
|
+
constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf, includeClassMetadata, compilationMode) {
|
|
5216
5216
|
this.reflector = reflector;
|
|
5217
5217
|
this.evaluator = evaluator;
|
|
5218
5218
|
this.metaReader = metaReader;
|
|
@@ -5228,6 +5228,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
5228
5228
|
this.injectableRegistry = injectableRegistry;
|
|
5229
5229
|
this.perf = perf;
|
|
5230
5230
|
this.includeClassMetadata = includeClassMetadata;
|
|
5231
|
+
this.compilationMode = compilationMode;
|
|
5231
5232
|
this.precedence = HandlerPrecedence.PRIMARY;
|
|
5232
5233
|
this.name = "NgModuleDecoratorHandler";
|
|
5233
5234
|
}
|
|
@@ -5247,7 +5248,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
5247
5248
|
}
|
|
5248
5249
|
}
|
|
5249
5250
|
analyze(node, decorator) {
|
|
5250
|
-
var _a;
|
|
5251
|
+
var _a, _b, _c, _d, _e;
|
|
5251
5252
|
this.perf.eventCount(PerfEvent.AnalyzeNgModule);
|
|
5252
5253
|
const name = node.name.text;
|
|
5253
5254
|
if (decorator.args === null || decorator.args.length > 1) {
|
|
@@ -5267,9 +5268,8 @@ var NgModuleDecoratorHandler = class {
|
|
|
5267
5268
|
]);
|
|
5268
5269
|
const diagnostics = [];
|
|
5269
5270
|
let declarationRefs = [];
|
|
5270
|
-
|
|
5271
|
-
if (
|
|
5272
|
-
rawDeclarations = ngModule.get("declarations");
|
|
5271
|
+
const rawDeclarations = (_a = ngModule.get("declarations")) != null ? _a : null;
|
|
5272
|
+
if (this.compilationMode !== CompilationMode.LOCAL && rawDeclarations !== null) {
|
|
5273
5273
|
const declarationMeta = this.evaluator.evaluate(rawDeclarations, forwardRefResolver);
|
|
5274
5274
|
declarationRefs = this.resolveTypeList(rawDeclarations, declarationMeta, name, "declarations", 0).references;
|
|
5275
5275
|
for (const ref of declarationRefs) {
|
|
@@ -5283,33 +5283,31 @@ var NgModuleDecoratorHandler = class {
|
|
|
5283
5283
|
return { diagnostics };
|
|
5284
5284
|
}
|
|
5285
5285
|
let importRefs = [];
|
|
5286
|
-
let rawImports = null;
|
|
5287
|
-
if (
|
|
5288
|
-
rawImports = ngModule.get("imports");
|
|
5286
|
+
let rawImports = (_b = ngModule.get("imports")) != null ? _b : null;
|
|
5287
|
+
if (this.compilationMode !== CompilationMode.LOCAL && rawImports !== null) {
|
|
5289
5288
|
const importsMeta = this.evaluator.evaluate(rawImports, moduleResolvers);
|
|
5290
5289
|
importRefs = this.resolveTypeList(rawImports, importsMeta, name, "imports", 0).references;
|
|
5291
5290
|
}
|
|
5292
5291
|
let exportRefs = [];
|
|
5293
|
-
|
|
5294
|
-
if (
|
|
5295
|
-
rawExports = ngModule.get("exports");
|
|
5292
|
+
const rawExports = (_c = ngModule.get("exports")) != null ? _c : null;
|
|
5293
|
+
if (this.compilationMode !== CompilationMode.LOCAL && rawExports !== null) {
|
|
5296
5294
|
const exportsMeta = this.evaluator.evaluate(rawExports, moduleResolvers);
|
|
5297
5295
|
exportRefs = this.resolveTypeList(rawExports, exportsMeta, name, "exports", 0).references;
|
|
5298
5296
|
this.referencesRegistry.add(node, ...exportRefs);
|
|
5299
5297
|
}
|
|
5300
5298
|
let bootstrapRefs = [];
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
const bootstrapMeta = this.evaluator.evaluate(
|
|
5304
|
-
bootstrapRefs = this.resolveTypeList(
|
|
5299
|
+
const rawBootstrap = (_d = ngModule.get("bootstrap")) != null ? _d : null;
|
|
5300
|
+
if (this.compilationMode !== CompilationMode.LOCAL && rawBootstrap !== null) {
|
|
5301
|
+
const bootstrapMeta = this.evaluator.evaluate(rawBootstrap, forwardRefResolver);
|
|
5302
|
+
bootstrapRefs = this.resolveTypeList(rawBootstrap, bootstrapMeta, name, "bootstrap", 0).references;
|
|
5305
5303
|
for (const ref of bootstrapRefs) {
|
|
5306
5304
|
const dirMeta = this.metaReader.getDirectiveMetadata(ref);
|
|
5307
5305
|
if (dirMeta == null ? void 0 : dirMeta.isStandalone) {
|
|
5308
|
-
diagnostics.push(makeStandaloneBootstrapDiagnostic(node, ref,
|
|
5306
|
+
diagnostics.push(makeStandaloneBootstrapDiagnostic(node, ref, rawBootstrap));
|
|
5309
5307
|
}
|
|
5310
5308
|
}
|
|
5311
5309
|
}
|
|
5312
|
-
const schemas = ngModule.has("schemas") ? extractSchemas(ngModule.get("schemas"), this.evaluator, "NgModule") : [];
|
|
5310
|
+
const schemas = this.compilationMode !== CompilationMode.LOCAL && ngModule.has("schemas") ? extractSchemas(ngModule.get("schemas"), this.evaluator, "NgModule") : [];
|
|
5313
5311
|
let id = null;
|
|
5314
5312
|
if (ngModule.has("id")) {
|
|
5315
5313
|
const idExpr = ngModule.get("id");
|
|
@@ -5338,26 +5336,42 @@ var NgModuleDecoratorHandler = class {
|
|
|
5338
5336
|
const isForwardReference = (ref) => isExpressionForwardReference(ref.value, node.name, valueContext);
|
|
5339
5337
|
const containsForwardDecls = bootstrap.some(isForwardReference) || declarations.some(isForwardReference) || imports.some(isForwardReference) || exports.some(isForwardReference);
|
|
5340
5338
|
const type = wrapTypeReference(this.reflector, node);
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5339
|
+
let ngModuleMetadata;
|
|
5340
|
+
if (this.compilationMode === CompilationMode.LOCAL) {
|
|
5341
|
+
ngModuleMetadata = {
|
|
5342
|
+
kind: R3NgModuleMetadataKind.Local,
|
|
5343
|
+
type,
|
|
5344
|
+
bootstrapExpression: rawBootstrap ? new WrappedNodeExpr6(rawBootstrap) : null,
|
|
5345
|
+
declarationsExpression: rawDeclarations ? new WrappedNodeExpr6(rawDeclarations) : null,
|
|
5346
|
+
exportsExpression: rawExports ? new WrappedNodeExpr6(rawExports) : null,
|
|
5347
|
+
importsExpression: rawImports ? new WrappedNodeExpr6(rawImports) : null,
|
|
5348
|
+
id,
|
|
5349
|
+
selectorScopeMode: R3SelectorScopeMode.SideEffect,
|
|
5350
|
+
schemas: []
|
|
5351
|
+
};
|
|
5352
|
+
} else {
|
|
5353
|
+
ngModuleMetadata = {
|
|
5354
|
+
kind: R3NgModuleMetadataKind.Global,
|
|
5355
|
+
type,
|
|
5356
|
+
bootstrap,
|
|
5357
|
+
declarations,
|
|
5358
|
+
publicDeclarationTypes: this.onlyPublishPublicTypings ? exportedDeclarations : null,
|
|
5359
|
+
exports,
|
|
5360
|
+
imports,
|
|
5361
|
+
includeImportTypes: !this.onlyPublishPublicTypings,
|
|
5362
|
+
containsForwardDecls,
|
|
5363
|
+
id,
|
|
5364
|
+
selectorScopeMode: R3SelectorScopeMode.SideEffect,
|
|
5365
|
+
schemas: []
|
|
5366
|
+
};
|
|
5367
|
+
}
|
|
5354
5368
|
const rawProviders = ngModule.has("providers") ? ngModule.get("providers") : null;
|
|
5355
5369
|
let wrappedProviders = null;
|
|
5356
5370
|
if (rawProviders !== null && (!ts22.isArrayLiteralExpression(rawProviders) || rawProviders.elements.length > 0)) {
|
|
5357
5371
|
wrappedProviders = new WrappedNodeExpr6(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(rawProviders) : rawProviders);
|
|
5358
5372
|
}
|
|
5359
5373
|
const topLevelImports = [];
|
|
5360
|
-
if (ngModule.has("imports")) {
|
|
5374
|
+
if (this.compilationMode !== CompilationMode.LOCAL && ngModule.has("imports")) {
|
|
5361
5375
|
const rawImports2 = unwrapExpression(ngModule.get("imports"));
|
|
5362
5376
|
let topLevelExpressions = [];
|
|
5363
5377
|
if (ts22.isArrayLiteralExpression(rawImports2)) {
|
|
@@ -5416,7 +5430,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
5416
5430
|
classMetadata: this.includeClassMetadata ? extractClassMetadata(node, this.reflector, this.isCore, this.annotateForClosureCompiler) : null,
|
|
5417
5431
|
factorySymbolName: node.name.text,
|
|
5418
5432
|
remoteScopesMayRequireCycleProtection,
|
|
5419
|
-
decorator: (
|
|
5433
|
+
decorator: (_e = decorator == null ? void 0 : decorator.node) != null ? _e : null
|
|
5420
5434
|
}
|
|
5421
5435
|
};
|
|
5422
5436
|
}
|
|
@@ -5670,7 +5684,7 @@ function isSyntheticReference(ref) {
|
|
|
5670
5684
|
return ref.synthetic;
|
|
5671
5685
|
}
|
|
5672
5686
|
|
|
5673
|
-
// bazel-out/
|
|
5687
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
5674
5688
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
5675
5689
|
const name = ref.debugName || "(unknown)";
|
|
5676
5690
|
const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -5693,7 +5707,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
5693
5707
|
return null;
|
|
5694
5708
|
}
|
|
5695
5709
|
|
|
5696
|
-
// bazel-out/
|
|
5710
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
5697
5711
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
5698
5712
|
import ts23 from "typescript";
|
|
5699
5713
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -6007,7 +6021,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
6007
6021
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
6008
6022
|
}
|
|
6009
6023
|
|
|
6010
|
-
// bazel-out/
|
|
6024
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
6011
6025
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
6012
6026
|
constructor() {
|
|
6013
6027
|
super(...arguments);
|
|
@@ -6042,7 +6056,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
6042
6056
|
}
|
|
6043
6057
|
};
|
|
6044
6058
|
|
|
6045
|
-
// bazel-out/
|
|
6059
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
6046
6060
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
6047
6061
|
if (value instanceof Map) {
|
|
6048
6062
|
const name = value.get("name");
|
|
@@ -6118,7 +6132,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
6118
6132
|
return false;
|
|
6119
6133
|
}
|
|
6120
6134
|
|
|
6121
|
-
// bazel-out/
|
|
6135
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
6122
6136
|
var EMPTY_ARRAY2 = [];
|
|
6123
6137
|
var ComponentDecoratorHandler = class {
|
|
6124
6138
|
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, includeClassMetadata) {
|
|
@@ -6771,7 +6785,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
|
|
|
6771
6785
|
return diagnostics;
|
|
6772
6786
|
}
|
|
6773
6787
|
|
|
6774
|
-
// bazel-out/
|
|
6788
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
6775
6789
|
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
6776
6790
|
import ts25 from "typescript";
|
|
6777
6791
|
var InjectableDecoratorHandler = class {
|
|
@@ -6987,7 +7001,7 @@ function getDep(dep, reflector) {
|
|
|
6987
7001
|
return meta;
|
|
6988
7002
|
}
|
|
6989
7003
|
|
|
6990
|
-
// bazel-out/
|
|
7004
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
6991
7005
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
|
|
6992
7006
|
import ts26 from "typescript";
|
|
6993
7007
|
var PipeSymbol = class extends SemanticSymbol {
|
|
@@ -7132,14 +7146,14 @@ var PipeDecoratorHandler = class {
|
|
|
7132
7146
|
}
|
|
7133
7147
|
};
|
|
7134
7148
|
|
|
7135
|
-
// bazel-out/
|
|
7149
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
7136
7150
|
var OptimizeFor;
|
|
7137
7151
|
(function(OptimizeFor2) {
|
|
7138
7152
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
7139
7153
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
7140
7154
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
7141
7155
|
|
|
7142
|
-
// bazel-out/
|
|
7156
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
7143
7157
|
var PotentialImportKind;
|
|
7144
7158
|
(function(PotentialImportKind2) {
|
|
7145
7159
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -7151,14 +7165,14 @@ var PotentialImportMode;
|
|
|
7151
7165
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
7152
7166
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
7153
7167
|
|
|
7154
|
-
// bazel-out/
|
|
7168
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
7155
7169
|
var CompletionKind;
|
|
7156
7170
|
(function(CompletionKind2) {
|
|
7157
7171
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
7158
7172
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
7159
7173
|
})(CompletionKind || (CompletionKind = {}));
|
|
7160
7174
|
|
|
7161
|
-
// bazel-out/
|
|
7175
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
7162
7176
|
var SymbolKind;
|
|
7163
7177
|
(function(SymbolKind2) {
|
|
7164
7178
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -7226,4 +7240,4 @@ export {
|
|
|
7226
7240
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7227
7241
|
* found in the LICENSE file at https://angular.io/license
|
|
7228
7242
|
*/
|
|
7229
|
-
//# sourceMappingURL=chunk-
|
|
7243
|
+
//# sourceMappingURL=chunk-5MERUDE2.js.map
|