@angular/compiler-cli 16.2.0-rc.0 → 16.2.0
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-UHYH6BYB.js → chunk-3O3O4L34.js} +1 -1
- package/bundles/{chunk-SBDNBITT.js → chunk-CF2CT7RQ.js} +3 -3
- package/bundles/{chunk-LRT6BBZP.js → chunk-G4NNAES4.js} +8 -8
- package/bundles/{chunk-EC5K6QPP.js → chunk-K2U2VZ7S.js} +7 -7
- package/bundles/{chunk-EMPTJWPY.js → chunk-NAKFMYDD.js} +4 -4
- package/bundles/{chunk-NFCNUCPF.js → chunk-NSJJNPPO.js} +92 -92
- package/bundles/{chunk-CS2FNZXR.js → chunk-OCDXYAWW.js} +27 -27
- package/bundles/{chunk-GYHDNUIK.js → chunk-OULZQUKT.js} +7 -7
- package/bundles/{chunk-TU4LAK6J.js → chunk-QIGPDWZI.js} +31 -31
- package/bundles/{chunk-NYVNWJZI.js → chunk-QUGPFSIN.js} +133 -97
- package/bundles/chunk-QUGPFSIN.js.map +6 -0
- package/bundles/{chunk-5GPIY4NW.js → chunk-RHKG65UV.js} +5 -5
- package/bundles/{chunk-HJOPJLIM.js → chunk-URH5LEAG.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 +2 -2
- package/src/ngtsc/annotations/common/src/util.d.ts +1 -1
- package/src/ngtsc/transform/src/api.d.ts +1 -0
- package/bundles/chunk-NYVNWJZI.js.map +0 -6
- /package/bundles/{chunk-UHYH6BYB.js.map → chunk-3O3O4L34.js.map} +0 -0
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-CF2CT7RQ.js.map} +0 -0
- /package/bundles/{chunk-LRT6BBZP.js.map → chunk-G4NNAES4.js.map} +0 -0
- /package/bundles/{chunk-EC5K6QPP.js.map → chunk-K2U2VZ7S.js.map} +0 -0
- /package/bundles/{chunk-EMPTJWPY.js.map → chunk-NAKFMYDD.js.map} +0 -0
- /package/bundles/{chunk-NFCNUCPF.js.map → chunk-NSJJNPPO.js.map} +0 -0
- /package/bundles/{chunk-CS2FNZXR.js.map → chunk-OCDXYAWW.js.map} +0 -0
- /package/bundles/{chunk-GYHDNUIK.js.map → chunk-OULZQUKT.js.map} +0 -0
- /package/bundles/{chunk-TU4LAK6J.js.map → chunk-QIGPDWZI.js.map} +0 -0
- /package/bundles/{chunk-5GPIY4NW.js.map → chunk-RHKG65UV.js.map} +0 -0
- /package/bundles/{chunk-HJOPJLIM.js.map → chunk-URH5LEAG.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
translateExpression,
|
|
8
8
|
translateStatement,
|
|
9
9
|
translateType
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G4NNAES4.js";
|
|
11
11
|
import {
|
|
12
12
|
ClassMemberKind,
|
|
13
13
|
ErrorCode,
|
|
@@ -30,18 +30,18 @@ import {
|
|
|
30
30
|
reflectObjectLiteral,
|
|
31
31
|
reflectTypeEntityToDeclaration,
|
|
32
32
|
typeNodeToValueExpr
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-OCDXYAWW.js";
|
|
34
34
|
import {
|
|
35
35
|
PerfEvent,
|
|
36
36
|
PerfPhase
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-URH5LEAG.js";
|
|
38
38
|
import {
|
|
39
39
|
absoluteFrom,
|
|
40
40
|
absoluteFromSourceFile,
|
|
41
41
|
relative
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-K2U2VZ7S.js";
|
|
43
43
|
|
|
44
|
-
// bazel-out/
|
|
44
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
45
45
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
46
46
|
import ts from "typescript";
|
|
47
47
|
function valueReferenceToExpression(valueRef) {
|
|
@@ -232,7 +232,7 @@ function createSourceSpan(node) {
|
|
|
232
232
|
const parseSf = new ParseSourceFile(sf.getFullText(), sf.fileName);
|
|
233
233
|
return new ParseSourceSpan(new ParseLocation(parseSf, startOffset, startLine + 1, startCol + 1), new ParseLocation(parseSf, endOffset, endLine + 1, endCol + 1));
|
|
234
234
|
}
|
|
235
|
-
function compileResults(fac, def, metadataStmt, propName, additionalFields) {
|
|
235
|
+
function compileResults(fac, def, metadataStmt, propName, additionalFields, deferrableImports) {
|
|
236
236
|
const statements = def.statements;
|
|
237
237
|
if (metadataStmt !== null) {
|
|
238
238
|
statements.push(metadataStmt);
|
|
@@ -243,7 +243,8 @@ function compileResults(fac, def, metadataStmt, propName, additionalFields) {
|
|
|
243
243
|
name: propName,
|
|
244
244
|
initializer: def.expression,
|
|
245
245
|
statements: def.statements,
|
|
246
|
-
type: def.type
|
|
246
|
+
type: def.type,
|
|
247
|
+
deferrableImports
|
|
247
248
|
}
|
|
248
249
|
];
|
|
249
250
|
if (additionalFields !== null) {
|
|
@@ -282,7 +283,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
282
283
|
return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
|
|
283
284
|
}
|
|
284
285
|
|
|
285
|
-
// bazel-out/
|
|
286
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
286
287
|
var DynamicValue = class {
|
|
287
288
|
constructor(node, reason, code) {
|
|
288
289
|
this.node = node;
|
|
@@ -372,10 +373,10 @@ var DynamicValue = class {
|
|
|
372
373
|
}
|
|
373
374
|
};
|
|
374
375
|
|
|
375
|
-
// bazel-out/
|
|
376
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
376
377
|
import ts2 from "typescript";
|
|
377
378
|
|
|
378
|
-
// bazel-out/
|
|
379
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
379
380
|
var ResolvedModule = class {
|
|
380
381
|
constructor(exports, evaluate) {
|
|
381
382
|
this.exports = exports;
|
|
@@ -405,7 +406,7 @@ var EnumValue = class {
|
|
|
405
406
|
var KnownFn = class {
|
|
406
407
|
};
|
|
407
408
|
|
|
408
|
-
// bazel-out/
|
|
409
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
409
410
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
410
411
|
constructor(lhs) {
|
|
411
412
|
super();
|
|
@@ -457,14 +458,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
457
458
|
}
|
|
458
459
|
};
|
|
459
460
|
|
|
460
|
-
// bazel-out/
|
|
461
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
461
462
|
var SyntheticValue = class {
|
|
462
463
|
constructor(value) {
|
|
463
464
|
this.value = value;
|
|
464
465
|
}
|
|
465
466
|
};
|
|
466
467
|
|
|
467
|
-
// bazel-out/
|
|
468
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
468
469
|
function literalBinaryOp(op) {
|
|
469
470
|
return { op, literal: true };
|
|
470
471
|
}
|
|
@@ -1045,7 +1046,7 @@ function getOriginalKeywordKind(identifier) {
|
|
|
1045
1046
|
return typeof ts2.identifierToKeywordKind === "function" ? ts2.identifierToKeywordKind(identifier) : identifier.originalKeywordKind;
|
|
1046
1047
|
}
|
|
1047
1048
|
|
|
1048
|
-
// bazel-out/
|
|
1049
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1049
1050
|
var PartialEvaluator = class {
|
|
1050
1051
|
constructor(host, checker, dependencyTracker) {
|
|
1051
1052
|
this.host = host;
|
|
@@ -1065,7 +1066,7 @@ var PartialEvaluator = class {
|
|
|
1065
1066
|
}
|
|
1066
1067
|
};
|
|
1067
1068
|
|
|
1068
|
-
// bazel-out/
|
|
1069
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1069
1070
|
import ts3 from "typescript";
|
|
1070
1071
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1071
1072
|
var _a, _b;
|
|
@@ -1195,7 +1196,7 @@ function getContainerNode(node) {
|
|
|
1195
1196
|
return node.getSourceFile();
|
|
1196
1197
|
}
|
|
1197
1198
|
|
|
1198
|
-
// bazel-out/
|
|
1199
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1199
1200
|
import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1200
1201
|
import ts4 from "typescript";
|
|
1201
1202
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1339,10 +1340,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1339
1340
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
1340
1341
|
}
|
|
1341
1342
|
|
|
1342
|
-
// bazel-out/
|
|
1343
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
1343
1344
|
import ts7 from "typescript";
|
|
1344
1345
|
|
|
1345
|
-
// bazel-out/
|
|
1346
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1346
1347
|
var MetaKind;
|
|
1347
1348
|
(function(MetaKind2) {
|
|
1348
1349
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -1355,10 +1356,10 @@ var MatchSource;
|
|
|
1355
1356
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
1356
1357
|
})(MatchSource || (MatchSource = {}));
|
|
1357
1358
|
|
|
1358
|
-
// bazel-out/
|
|
1359
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1359
1360
|
import ts6 from "typescript";
|
|
1360
1361
|
|
|
1361
|
-
// bazel-out/
|
|
1362
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1362
1363
|
var ClassPropertyMapping = class {
|
|
1363
1364
|
constructor(forwardMap) {
|
|
1364
1365
|
this.forwardMap = forwardMap;
|
|
@@ -1436,7 +1437,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
1436
1437
|
return reverseMap;
|
|
1437
1438
|
}
|
|
1438
1439
|
|
|
1439
|
-
// bazel-out/
|
|
1440
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
1440
1441
|
import ts5 from "typescript";
|
|
1441
1442
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
1442
1443
|
if (!ts5.isTupleTypeNode(def)) {
|
|
@@ -1621,7 +1622,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
1621
1622
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
1622
1623
|
}
|
|
1623
1624
|
|
|
1624
|
-
// bazel-out/
|
|
1625
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1625
1626
|
var DtsMetadataReader = class {
|
|
1626
1627
|
constructor(checker, reflector) {
|
|
1627
1628
|
this.checker = checker;
|
|
@@ -1796,7 +1797,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
1796
1797
|
return result.length > 0 ? result : null;
|
|
1797
1798
|
}
|
|
1798
1799
|
|
|
1799
|
-
// bazel-out/
|
|
1800
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
1800
1801
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
1801
1802
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
1802
1803
|
if (topMeta === null) {
|
|
@@ -1854,7 +1855,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
1854
1855
|
};
|
|
1855
1856
|
}
|
|
1856
1857
|
|
|
1857
|
-
// bazel-out/
|
|
1858
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
1858
1859
|
var LocalMetadataRegistry = class {
|
|
1859
1860
|
constructor() {
|
|
1860
1861
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -1911,7 +1912,7 @@ var CompoundMetadataRegistry = class {
|
|
|
1911
1912
|
}
|
|
1912
1913
|
};
|
|
1913
1914
|
|
|
1914
|
-
// bazel-out/
|
|
1915
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
1915
1916
|
var ResourceRegistry = class {
|
|
1916
1917
|
constructor() {
|
|
1917
1918
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -1976,7 +1977,7 @@ var ResourceRegistry = class {
|
|
|
1976
1977
|
}
|
|
1977
1978
|
};
|
|
1978
1979
|
|
|
1979
|
-
// bazel-out/
|
|
1980
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
1980
1981
|
var ExportedProviderStatusResolver = class {
|
|
1981
1982
|
constructor(metaReader) {
|
|
1982
1983
|
this.metaReader = metaReader;
|
|
@@ -2020,7 +2021,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
2020
2021
|
}
|
|
2021
2022
|
};
|
|
2022
2023
|
|
|
2023
|
-
// bazel-out/
|
|
2024
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
2024
2025
|
var EMPTY_ARRAY = [];
|
|
2025
2026
|
var HostDirectivesResolver = class {
|
|
2026
2027
|
constructor(metaReader) {
|
|
@@ -2082,7 +2083,7 @@ function resolveOutput(bindingName) {
|
|
|
2082
2083
|
return bindingName;
|
|
2083
2084
|
}
|
|
2084
2085
|
|
|
2085
|
-
// bazel-out/
|
|
2086
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
2086
2087
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
2087
2088
|
const context = [];
|
|
2088
2089
|
for (const decl of data) {
|
|
@@ -2278,7 +2279,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
2278
2279
|
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}.`);
|
|
2279
2280
|
}
|
|
2280
2281
|
|
|
2281
|
-
// bazel-out/
|
|
2282
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
2282
2283
|
import ts8 from "typescript";
|
|
2283
2284
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
2284
2285
|
let resolved = null;
|
|
@@ -2311,18 +2312,30 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
2311
2312
|
return meta;
|
|
2312
2313
|
}
|
|
2313
2314
|
|
|
2314
|
-
// bazel-out/
|
|
2315
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
2315
2316
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
2316
2317
|
function compileNgFactoryDefField(metadata) {
|
|
2317
2318
|
const res = compileFactoryFunction(metadata);
|
|
2318
|
-
return {
|
|
2319
|
+
return {
|
|
2320
|
+
name: "\u0275fac",
|
|
2321
|
+
initializer: res.expression,
|
|
2322
|
+
statements: res.statements,
|
|
2323
|
+
type: res.type,
|
|
2324
|
+
deferrableImports: null
|
|
2325
|
+
};
|
|
2319
2326
|
}
|
|
2320
2327
|
function compileDeclareFactory(metadata) {
|
|
2321
2328
|
const res = compileDeclareFactoryFunction(metadata);
|
|
2322
|
-
return {
|
|
2329
|
+
return {
|
|
2330
|
+
name: "\u0275fac",
|
|
2331
|
+
initializer: res.expression,
|
|
2332
|
+
statements: res.statements,
|
|
2333
|
+
type: res.type,
|
|
2334
|
+
deferrableImports: null
|
|
2335
|
+
};
|
|
2323
2336
|
}
|
|
2324
2337
|
|
|
2325
|
-
// bazel-out/
|
|
2338
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
2326
2339
|
var InjectableClassRegistry = class {
|
|
2327
2340
|
constructor(host, isCore) {
|
|
2328
2341
|
this.host = host;
|
|
@@ -2348,7 +2361,7 @@ var InjectableClassRegistry = class {
|
|
|
2348
2361
|
}
|
|
2349
2362
|
};
|
|
2350
2363
|
|
|
2351
|
-
// bazel-out/
|
|
2364
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
2352
2365
|
import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
2353
2366
|
import ts9 from "typescript";
|
|
2354
2367
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -2435,13 +2448,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
2435
2448
|
return result.transformed[0];
|
|
2436
2449
|
}
|
|
2437
2450
|
|
|
2438
|
-
// bazel-out/
|
|
2451
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
2439
2452
|
var NoopReferencesRegistry = class {
|
|
2440
2453
|
add(source, ...references) {
|
|
2441
2454
|
}
|
|
2442
2455
|
};
|
|
2443
2456
|
|
|
2444
|
-
// bazel-out/
|
|
2457
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
2445
2458
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
2446
2459
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
2447
2460
|
const schemas = [];
|
|
@@ -2471,7 +2484,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
2471
2484
|
return schemas;
|
|
2472
2485
|
}
|
|
2473
2486
|
|
|
2474
|
-
// bazel-out/
|
|
2487
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
2475
2488
|
import { outputAst } from "@angular/compiler";
|
|
2476
2489
|
function compileInputTransformFields(inputs) {
|
|
2477
2490
|
const extraFields = [];
|
|
@@ -2481,18 +2494,19 @@ function compileInputTransformFields(inputs) {
|
|
|
2481
2494
|
name: `ngAcceptInputType_${input.classPropertyName}`,
|
|
2482
2495
|
type: outputAst.transplantedType(input.transform.type),
|
|
2483
2496
|
statements: [],
|
|
2484
|
-
initializer: null
|
|
2497
|
+
initializer: null,
|
|
2498
|
+
deferrableImports: null
|
|
2485
2499
|
});
|
|
2486
2500
|
}
|
|
2487
2501
|
}
|
|
2488
2502
|
return extraFields;
|
|
2489
2503
|
}
|
|
2490
2504
|
|
|
2491
|
-
// bazel-out/
|
|
2505
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
2492
2506
|
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";
|
|
2493
2507
|
import ts24 from "typescript";
|
|
2494
2508
|
|
|
2495
|
-
// bazel-out/
|
|
2509
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
2496
2510
|
import ts10 from "typescript";
|
|
2497
2511
|
var SemanticSymbol = class {
|
|
2498
2512
|
constructor(decl) {
|
|
@@ -2508,7 +2522,7 @@ function getSymbolIdentifier(decl) {
|
|
|
2508
2522
|
return decl.name.text;
|
|
2509
2523
|
}
|
|
2510
2524
|
|
|
2511
|
-
// bazel-out/
|
|
2525
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
2512
2526
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
2513
2527
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
2514
2528
|
isPublicApiAffected() {
|
|
@@ -2651,10 +2665,10 @@ function getImportPath(expr) {
|
|
|
2651
2665
|
}
|
|
2652
2666
|
}
|
|
2653
2667
|
|
|
2654
|
-
// bazel-out/
|
|
2668
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
2655
2669
|
import ts11 from "typescript";
|
|
2656
2670
|
|
|
2657
|
-
// bazel-out/
|
|
2671
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
2658
2672
|
function isSymbolEqual(a, b) {
|
|
2659
2673
|
if (a.decl === b.decl) {
|
|
2660
2674
|
return true;
|
|
@@ -2704,7 +2718,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
2704
2718
|
return true;
|
|
2705
2719
|
}
|
|
2706
2720
|
|
|
2707
|
-
// bazel-out/
|
|
2721
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
2708
2722
|
function extractSemanticTypeParameters(node) {
|
|
2709
2723
|
if (!ts11.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
2710
2724
|
return null;
|
|
@@ -2724,14 +2738,14 @@ function isTypeParameterEqual(a, b) {
|
|
|
2724
2738
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
2725
2739
|
}
|
|
2726
2740
|
|
|
2727
|
-
// bazel-out/
|
|
2741
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
2728
2742
|
var ComponentScopeKind;
|
|
2729
2743
|
(function(ComponentScopeKind2) {
|
|
2730
2744
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
2731
2745
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
2732
2746
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
2733
2747
|
|
|
2734
|
-
// bazel-out/
|
|
2748
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
2735
2749
|
var CompoundComponentScopeReader = class {
|
|
2736
2750
|
constructor(readers) {
|
|
2737
2751
|
this.readers = readers;
|
|
@@ -2756,7 +2770,7 @@ var CompoundComponentScopeReader = class {
|
|
|
2756
2770
|
}
|
|
2757
2771
|
};
|
|
2758
2772
|
|
|
2759
|
-
// bazel-out/
|
|
2773
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
2760
2774
|
var MetadataDtsModuleScopeResolver = class {
|
|
2761
2775
|
constructor(dtsMetaReader, aliasingHost) {
|
|
2762
2776
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -2832,11 +2846,11 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
2832
2846
|
}
|
|
2833
2847
|
};
|
|
2834
2848
|
|
|
2835
|
-
// bazel-out/
|
|
2849
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2836
2850
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
2837
2851
|
import ts12 from "typescript";
|
|
2838
2852
|
|
|
2839
|
-
// bazel-out/
|
|
2853
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
2840
2854
|
function getDiagnosticNode(ref, rawExpr) {
|
|
2841
2855
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
2842
2856
|
}
|
|
@@ -2859,7 +2873,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
2859
2873
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
2860
2874
|
}
|
|
2861
2875
|
|
|
2862
|
-
// bazel-out/
|
|
2876
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2863
2877
|
var LocalModuleScopeRegistry = class {
|
|
2864
2878
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
2865
2879
|
this.localReader = localReader;
|
|
@@ -3198,7 +3212,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
3198
3212
|
]);
|
|
3199
3213
|
}
|
|
3200
3214
|
|
|
3201
|
-
// bazel-out/
|
|
3215
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
3202
3216
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
3203
3217
|
import ts13 from "typescript";
|
|
3204
3218
|
var TypeCheckScopeRegistry = class {
|
|
@@ -3267,7 +3281,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
3267
3281
|
}
|
|
3268
3282
|
};
|
|
3269
3283
|
|
|
3270
|
-
// bazel-out/
|
|
3284
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
3271
3285
|
var CompilationMode;
|
|
3272
3286
|
(function(CompilationMode2) {
|
|
3273
3287
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -3281,7 +3295,7 @@ var HandlerPrecedence;
|
|
|
3281
3295
|
HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
|
|
3282
3296
|
})(HandlerPrecedence || (HandlerPrecedence = {}));
|
|
3283
3297
|
|
|
3284
|
-
// bazel-out/
|
|
3298
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
3285
3299
|
import ts14 from "typescript";
|
|
3286
3300
|
function aliasTransformFactory(exportStatements) {
|
|
3287
3301
|
return () => {
|
|
@@ -3304,10 +3318,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
3304
3318
|
};
|
|
3305
3319
|
}
|
|
3306
3320
|
|
|
3307
|
-
// bazel-out/
|
|
3321
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3308
3322
|
import ts15 from "typescript";
|
|
3309
3323
|
|
|
3310
|
-
// bazel-out/
|
|
3324
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
3311
3325
|
var TraitState;
|
|
3312
3326
|
(function(TraitState2) {
|
|
3313
3327
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -3364,7 +3378,7 @@ var TraitImpl = class {
|
|
|
3364
3378
|
}
|
|
3365
3379
|
};
|
|
3366
3380
|
|
|
3367
|
-
// bazel-out/
|
|
3381
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3368
3382
|
var TraitCompiler = class {
|
|
3369
3383
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
3370
3384
|
this.handlers = handlers;
|
|
@@ -3812,10 +3826,10 @@ function containsErrors(diagnostics) {
|
|
|
3812
3826
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts15.DiagnosticCategory.Error);
|
|
3813
3827
|
}
|
|
3814
3828
|
|
|
3815
|
-
// bazel-out/
|
|
3829
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3816
3830
|
import ts17 from "typescript";
|
|
3817
3831
|
|
|
3818
|
-
// bazel-out/
|
|
3832
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
3819
3833
|
import ts16 from "typescript";
|
|
3820
3834
|
function addImports(importManager, sf, extraStatements = []) {
|
|
3821
3835
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -3851,7 +3865,7 @@ function isImportStatement(stmt) {
|
|
|
3851
3865
|
return ts16.isImportDeclaration(stmt) || ts16.isImportEqualsDeclaration(stmt) || ts16.isNamespaceImport(stmt);
|
|
3852
3866
|
}
|
|
3853
3867
|
|
|
3854
|
-
// bazel-out/
|
|
3868
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3855
3869
|
var DtsTransformRegistry = class {
|
|
3856
3870
|
constructor() {
|
|
3857
3871
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -3998,11 +4012,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
3998
4012
|
ts17.forEachChild(node, markForEmitAsSingleLine);
|
|
3999
4013
|
}
|
|
4000
4014
|
|
|
4001
|
-
// bazel-out/
|
|
4015
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
4002
4016
|
import { ConstantPool } from "@angular/compiler";
|
|
4003
4017
|
import ts19 from "typescript";
|
|
4004
4018
|
|
|
4005
|
-
// bazel-out/
|
|
4019
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
4006
4020
|
import ts18 from "typescript";
|
|
4007
4021
|
function visit(node, visitor, context) {
|
|
4008
4022
|
return visitor._visit(node, context);
|
|
@@ -4027,13 +4041,13 @@ var Visitor = class {
|
|
|
4027
4041
|
}
|
|
4028
4042
|
_visit(node, context) {
|
|
4029
4043
|
let visitedNode = null;
|
|
4030
|
-
node = ts18.visitEachChild(node, (child) => this._visit(child, context), context);
|
|
4044
|
+
node = ts18.visitEachChild(node, (child) => child && this._visit(child, context), context);
|
|
4031
4045
|
if (ts18.isClassDeclaration(node)) {
|
|
4032
4046
|
visitedNode = this._visitListEntryNode(node, (node2) => this.visitClassDeclaration(node2));
|
|
4033
4047
|
} else {
|
|
4034
4048
|
visitedNode = this.visitOtherNode(node);
|
|
4035
4049
|
}
|
|
4036
|
-
if (ts18.isBlock(visitedNode) || ts18.isSourceFile(visitedNode)) {
|
|
4050
|
+
if (visitedNode && (ts18.isBlock(visitedNode) || ts18.isSourceFile(visitedNode))) {
|
|
4037
4051
|
visitedNode = this._maybeProcessStatements(visitedNode);
|
|
4038
4052
|
}
|
|
4039
4053
|
return visitedNode;
|
|
@@ -4063,7 +4077,7 @@ var Visitor = class {
|
|
|
4063
4077
|
}
|
|
4064
4078
|
};
|
|
4065
4079
|
|
|
4066
|
-
// bazel-out/
|
|
4080
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
4067
4081
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
4068
4082
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
4069
4083
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -4080,17 +4094,23 @@ var IvyCompilationVisitor = class extends Visitor {
|
|
|
4080
4094
|
this.compilation = compilation;
|
|
4081
4095
|
this.constantPool = constantPool;
|
|
4082
4096
|
this.classCompilationMap = /* @__PURE__ */ new Map();
|
|
4097
|
+
this.deferrableImports = /* @__PURE__ */ new Set();
|
|
4083
4098
|
}
|
|
4084
4099
|
visitClassDeclaration(node) {
|
|
4085
4100
|
const result = this.compilation.compile(node, this.constantPool);
|
|
4086
4101
|
if (result !== null) {
|
|
4087
4102
|
this.classCompilationMap.set(node, result);
|
|
4103
|
+
for (const classResult of result) {
|
|
4104
|
+
if (classResult.deferrableImports !== null && classResult.deferrableImports.size > 0) {
|
|
4105
|
+
classResult.deferrableImports.forEach((importDecl) => this.deferrableImports.add(importDecl));
|
|
4106
|
+
}
|
|
4107
|
+
}
|
|
4088
4108
|
}
|
|
4089
4109
|
return { node };
|
|
4090
4110
|
}
|
|
4091
4111
|
};
|
|
4092
4112
|
var IvyTransformationVisitor = class extends Visitor {
|
|
4093
|
-
constructor(compilation, classCompilationMap, reflector, importManager, recordWrappedNodeExpr, isClosureCompilerEnabled, isCore) {
|
|
4113
|
+
constructor(compilation, classCompilationMap, reflector, importManager, recordWrappedNodeExpr, isClosureCompilerEnabled, isCore, deferrableImports) {
|
|
4094
4114
|
super();
|
|
4095
4115
|
this.compilation = compilation;
|
|
4096
4116
|
this.classCompilationMap = classCompilationMap;
|
|
@@ -4099,6 +4119,7 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
4099
4119
|
this.recordWrappedNodeExpr = recordWrappedNodeExpr;
|
|
4100
4120
|
this.isClosureCompilerEnabled = isClosureCompilerEnabled;
|
|
4101
4121
|
this.isCore = isCore;
|
|
4122
|
+
this.deferrableImports = deferrableImports;
|
|
4102
4123
|
}
|
|
4103
4124
|
visitClassDeclaration(node) {
|
|
4104
4125
|
if (!this.classCompilationMap.has(node)) {
|
|
@@ -4143,6 +4164,12 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
4143
4164
|
);
|
|
4144
4165
|
return { node, after: statements };
|
|
4145
4166
|
}
|
|
4167
|
+
visitOtherNode(node) {
|
|
4168
|
+
if (ts19.isImportDeclaration(node) && this.deferrableImports.has(node)) {
|
|
4169
|
+
return null;
|
|
4170
|
+
}
|
|
4171
|
+
return node;
|
|
4172
|
+
}
|
|
4146
4173
|
_angularCoreDecorators(decl) {
|
|
4147
4174
|
const decorators = this.reflector.getDecoratorsOfDeclaration(decl);
|
|
4148
4175
|
if (decorators === null) {
|
|
@@ -4198,7 +4225,7 @@ function transformIvySourceFile(compilation, context, reflector, importRewriter,
|
|
|
4198
4225
|
const importManager = new ImportManager(importRewriter);
|
|
4199
4226
|
const compilationVisitor = new IvyCompilationVisitor(compilation, constantPool);
|
|
4200
4227
|
visit(file, compilationVisitor, context);
|
|
4201
|
-
const transformationVisitor = new IvyTransformationVisitor(compilation, compilationVisitor.classCompilationMap, reflector, importManager, recordWrappedNode, isClosureCompilerEnabled, isCore);
|
|
4228
|
+
const transformationVisitor = new IvyTransformationVisitor(compilation, compilationVisitor.classCompilationMap, reflector, importManager, recordWrappedNode, isClosureCompilerEnabled, isCore, compilationVisitor.deferrableImports);
|
|
4202
4229
|
let sf = visit(file, transformationVisitor, context);
|
|
4203
4230
|
const downlevelTranslatedCode = getLocalizeCompileTarget(context) < ts19.ScriptTarget.ES2015;
|
|
4204
4231
|
const constants = constantPool.statements.map((stmt) => translateStatement(stmt, importManager, {
|
|
@@ -4274,10 +4301,10 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
4274
4301
|
return array;
|
|
4275
4302
|
}
|
|
4276
4303
|
|
|
4277
|
-
// bazel-out/
|
|
4304
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4278
4305
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
4279
4306
|
|
|
4280
|
-
// bazel-out/
|
|
4307
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4281
4308
|
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
4282
4309
|
import ts20 from "typescript";
|
|
4283
4310
|
var EMPTY_OBJECT = {};
|
|
@@ -4841,7 +4868,7 @@ function toR3InputMetadata(mapping) {
|
|
|
4841
4868
|
};
|
|
4842
4869
|
}
|
|
4843
4870
|
|
|
4844
|
-
// bazel-out/
|
|
4871
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
4845
4872
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
4846
4873
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
4847
4874
|
super(decl);
|
|
@@ -4921,7 +4948,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
4921
4948
|
return isSymbolEqual(current, previous);
|
|
4922
4949
|
}
|
|
4923
4950
|
|
|
4924
|
-
// bazel-out/
|
|
4951
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4925
4952
|
var FIELD_DECORATORS = [
|
|
4926
4953
|
"Input",
|
|
4927
4954
|
"Output",
|
|
@@ -5063,21 +5090,21 @@ var DirectiveDecoratorHandler = class {
|
|
|
5063
5090
|
const def = compileDirectiveFromMetadata(analysis.meta, pool, makeBindingParser());
|
|
5064
5091
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
5065
5092
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
5066
|
-
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields);
|
|
5093
|
+
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields, null);
|
|
5067
5094
|
}
|
|
5068
5095
|
compilePartial(node, analysis, resolution) {
|
|
5069
5096
|
const fac = compileDeclareFactory(toFactoryMetadata(analysis.meta, FactoryTarget.Directive));
|
|
5070
5097
|
const def = compileDeclareDirectiveFromMetadata(analysis.meta);
|
|
5071
5098
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
5072
5099
|
const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
5073
|
-
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields);
|
|
5100
|
+
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields, null);
|
|
5074
5101
|
}
|
|
5075
5102
|
compileLocal(node, analysis, pool) {
|
|
5076
5103
|
const fac = compileNgFactoryDefField(toFactoryMetadata(analysis.meta, FactoryTarget.Directive));
|
|
5077
5104
|
const def = compileDirectiveFromMetadata(analysis.meta, pool, makeBindingParser());
|
|
5078
5105
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
5079
5106
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
5080
|
-
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields);
|
|
5107
|
+
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields, null);
|
|
5081
5108
|
}
|
|
5082
5109
|
findClassFieldWithAngularFeatures(node) {
|
|
5083
5110
|
return this.reflector.getMembersOfClass(node).find((member) => {
|
|
@@ -5092,11 +5119,11 @@ var DirectiveDecoratorHandler = class {
|
|
|
5092
5119
|
}
|
|
5093
5120
|
};
|
|
5094
5121
|
|
|
5095
|
-
// bazel-out/
|
|
5122
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5096
5123
|
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";
|
|
5097
5124
|
import ts22 from "typescript";
|
|
5098
5125
|
|
|
5099
|
-
// bazel-out/
|
|
5126
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
5100
5127
|
import ts21 from "typescript";
|
|
5101
5128
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
5102
5129
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -5163,7 +5190,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
5163
5190
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
5164
5191
|
}
|
|
5165
5192
|
|
|
5166
|
-
// bazel-out/
|
|
5193
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5167
5194
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
5168
5195
|
constructor(decl, hasProviders) {
|
|
5169
5196
|
super(decl);
|
|
@@ -5643,13 +5670,15 @@ var NgModuleDecoratorHandler = class {
|
|
|
5643
5670
|
name: "\u0275mod",
|
|
5644
5671
|
initializer: ngModuleDef.expression,
|
|
5645
5672
|
statements: ngModuleDef.statements,
|
|
5646
|
-
type: ngModuleDef.type
|
|
5673
|
+
type: ngModuleDef.type,
|
|
5674
|
+
deferrableImports: null
|
|
5647
5675
|
},
|
|
5648
5676
|
{
|
|
5649
5677
|
name: "\u0275inj",
|
|
5650
5678
|
initializer: injectorDef.expression,
|
|
5651
5679
|
statements: injectorDef.statements,
|
|
5652
|
-
type: injectorDef.type
|
|
5680
|
+
type: injectorDef.type,
|
|
5681
|
+
deferrableImports: null
|
|
5653
5682
|
}
|
|
5654
5683
|
];
|
|
5655
5684
|
return res;
|
|
@@ -5716,7 +5745,7 @@ function isSyntheticReference(ref) {
|
|
|
5716
5745
|
return ref.synthetic;
|
|
5717
5746
|
}
|
|
5718
5747
|
|
|
5719
|
-
// bazel-out/
|
|
5748
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
5720
5749
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
5721
5750
|
const name = ref.debugName || "(unknown)";
|
|
5722
5751
|
const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -5739,7 +5768,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
5739
5768
|
return null;
|
|
5740
5769
|
}
|
|
5741
5770
|
|
|
5742
|
-
// bazel-out/
|
|
5771
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
5743
5772
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
5744
5773
|
import ts23 from "typescript";
|
|
5745
5774
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -6054,7 +6083,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
6054
6083
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
6055
6084
|
}
|
|
6056
6085
|
|
|
6057
|
-
// bazel-out/
|
|
6086
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
6058
6087
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
6059
6088
|
constructor() {
|
|
6060
6089
|
super(...arguments);
|
|
@@ -6089,7 +6118,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
6089
6118
|
}
|
|
6090
6119
|
};
|
|
6091
6120
|
|
|
6092
|
-
// bazel-out/
|
|
6121
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
6093
6122
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
6094
6123
|
if (value instanceof Map) {
|
|
6095
6124
|
const name = value.get("name");
|
|
@@ -6165,7 +6194,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
6165
6194
|
return false;
|
|
6166
6195
|
}
|
|
6167
6196
|
|
|
6168
|
-
// bazel-out/
|
|
6197
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
6169
6198
|
var EMPTY_ARRAY2 = [];
|
|
6170
6199
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
6171
6200
|
var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
|
|
@@ -6793,7 +6822,8 @@ var ComponentDecoratorHandler = class {
|
|
|
6793
6822
|
const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
|
|
6794
6823
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
6795
6824
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata3(analysis.classMetadata).toStmt() : null;
|
|
6796
|
-
|
|
6825
|
+
const deferrableImports = this.deferredSymbolTracker.getDeferrableImportDecls();
|
|
6826
|
+
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports);
|
|
6797
6827
|
}
|
|
6798
6828
|
compilePartial(node, analysis, resolution) {
|
|
6799
6829
|
if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
|
|
@@ -6810,7 +6840,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6810
6840
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
6811
6841
|
const def = compileDeclareComponentFromMetadata(meta, analysis.template, templateInfo);
|
|
6812
6842
|
const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata3(analysis.classMetadata).toStmt() : null;
|
|
6813
|
-
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields);
|
|
6843
|
+
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, null);
|
|
6814
6844
|
}
|
|
6815
6845
|
compileLocal(node, analysis, pool) {
|
|
6816
6846
|
if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
|
|
@@ -6827,7 +6857,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6827
6857
|
const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
|
|
6828
6858
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
6829
6859
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata3(analysis.classMetadata).toStmt() : null;
|
|
6830
|
-
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields);
|
|
6860
|
+
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, null);
|
|
6831
6861
|
}
|
|
6832
6862
|
_checkForCyclicImport(importedFile, expr, origin) {
|
|
6833
6863
|
const imported = resolveImportedFile(this.moduleResolver, importedFile, expr, origin);
|
|
@@ -6935,7 +6965,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
|
|
|
6935
6965
|
return diagnostics;
|
|
6936
6966
|
}
|
|
6937
6967
|
|
|
6938
|
-
// bazel-out/
|
|
6968
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
6939
6969
|
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
6940
6970
|
import ts25 from "typescript";
|
|
6941
6971
|
var InjectableDecoratorHandler = class {
|
|
@@ -7023,7 +7053,13 @@ var InjectableDecoratorHandler = class {
|
|
|
7023
7053
|
}
|
|
7024
7054
|
if (\u0275prov === void 0) {
|
|
7025
7055
|
const res = compileInjectableFn(analysis.meta);
|
|
7026
|
-
results.push({
|
|
7056
|
+
results.push({
|
|
7057
|
+
name: "\u0275prov",
|
|
7058
|
+
initializer: res.expression,
|
|
7059
|
+
statements: res.statements,
|
|
7060
|
+
type: res.type,
|
|
7061
|
+
deferrableImports: null
|
|
7062
|
+
});
|
|
7027
7063
|
}
|
|
7028
7064
|
return results;
|
|
7029
7065
|
}
|
|
@@ -7154,7 +7190,7 @@ function getDep(dep, reflector) {
|
|
|
7154
7190
|
return meta;
|
|
7155
7191
|
}
|
|
7156
7192
|
|
|
7157
|
-
// bazel-out/
|
|
7193
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
7158
7194
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
|
|
7159
7195
|
import ts26 from "typescript";
|
|
7160
7196
|
var PipeSymbol = class extends SemanticSymbol {
|
|
@@ -7289,30 +7325,30 @@ var PipeDecoratorHandler = class {
|
|
|
7289
7325
|
const fac = compileNgFactoryDefField(toFactoryMetadata(analysis.meta, FactoryTarget5.Pipe));
|
|
7290
7326
|
const def = compilePipeFromMetadata(analysis.meta);
|
|
7291
7327
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata5(analysis.classMetadata).toStmt() : null;
|
|
7292
|
-
return compileResults(fac, def, classMetadata, "\u0275pipe", null);
|
|
7328
|
+
return compileResults(fac, def, classMetadata, "\u0275pipe", null, null);
|
|
7293
7329
|
}
|
|
7294
7330
|
compilePartial(node, analysis) {
|
|
7295
7331
|
const fac = compileDeclareFactory(toFactoryMetadata(analysis.meta, FactoryTarget5.Pipe));
|
|
7296
7332
|
const def = compileDeclarePipeFromMetadata(analysis.meta);
|
|
7297
7333
|
const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata5(analysis.classMetadata).toStmt() : null;
|
|
7298
|
-
return compileResults(fac, def, classMetadata, "\u0275pipe", null);
|
|
7334
|
+
return compileResults(fac, def, classMetadata, "\u0275pipe", null, null);
|
|
7299
7335
|
}
|
|
7300
7336
|
compileLocal(node, analysis) {
|
|
7301
7337
|
const fac = compileNgFactoryDefField(toFactoryMetadata(analysis.meta, FactoryTarget5.Pipe));
|
|
7302
7338
|
const def = compilePipeFromMetadata(analysis.meta);
|
|
7303
7339
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata5(analysis.classMetadata).toStmt() : null;
|
|
7304
|
-
return compileResults(fac, def, classMetadata, "\u0275pipe", null);
|
|
7340
|
+
return compileResults(fac, def, classMetadata, "\u0275pipe", null, null);
|
|
7305
7341
|
}
|
|
7306
7342
|
};
|
|
7307
7343
|
|
|
7308
|
-
// bazel-out/
|
|
7344
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
7309
7345
|
var OptimizeFor;
|
|
7310
7346
|
(function(OptimizeFor2) {
|
|
7311
7347
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
7312
7348
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
7313
7349
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
7314
7350
|
|
|
7315
|
-
// bazel-out/
|
|
7351
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
7316
7352
|
var PotentialImportKind;
|
|
7317
7353
|
(function(PotentialImportKind2) {
|
|
7318
7354
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -7324,14 +7360,14 @@ var PotentialImportMode;
|
|
|
7324
7360
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
7325
7361
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
7326
7362
|
|
|
7327
|
-
// bazel-out/
|
|
7363
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
7328
7364
|
var CompletionKind;
|
|
7329
7365
|
(function(CompletionKind2) {
|
|
7330
7366
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
7331
7367
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
7332
7368
|
})(CompletionKind || (CompletionKind = {}));
|
|
7333
7369
|
|
|
7334
|
-
// bazel-out/
|
|
7370
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
7335
7371
|
var SymbolKind;
|
|
7336
7372
|
(function(SymbolKind2) {
|
|
7337
7373
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -7399,4 +7435,4 @@ export {
|
|
|
7399
7435
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7400
7436
|
* found in the LICENSE file at https://angular.io/license
|
|
7401
7437
|
*/
|
|
7402
|
-
//# sourceMappingURL=chunk-
|
|
7438
|
+
//# sourceMappingURL=chunk-QUGPFSIN.js.map
|