@angular/compiler-cli 16.0.0 → 16.1.0-next.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-BZAIS6C3.js → chunk-64MYZ5SD.js} +5 -5
- package/bundles/{chunk-HJOPJLIM.js → chunk-7PCPPTTO.js} +5 -5
- package/bundles/{chunk-WL4F4VQG.js → chunk-B6WD2R2T.js} +21 -21
- package/bundles/{chunk-GYHDNUIK.js → chunk-EKTJ7622.js} +7 -7
- package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
- package/bundles/{chunk-SL3W33EA.js → chunk-OVMU6P3K.js} +5 -5
- package/bundles/{chunk-53CCHRBH.js → chunk-Q5UROHFU.js} +100 -97
- package/bundles/chunk-Q5UROHFU.js.map +6 -0
- package/bundles/{chunk-AHPF5263.js → chunk-QCPJUH3P.js} +99 -83
- package/bundles/chunk-QCPJUH3P.js.map +6 -0
- package/bundles/{chunk-UNR3CTVT.js → chunk-T2BBDUF3.js} +14 -9
- package/bundles/chunk-T2BBDUF3.js.map +6 -0
- package/bundles/{chunk-EC5K6QPP.js → chunk-TBUSSXUA.js} +7 -7
- package/bundles/{chunk-ABPMSM4T.js → chunk-VLCBVJOY.js} +56 -12
- package/bundles/chunk-VLCBVJOY.js.map +6 -0
- package/bundles/{chunk-DZ2JDFLR.js → chunk-WOVOJRYO.js} +32 -31
- package/bundles/chunk-WOVOJRYO.js.map +6 -0
- 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/metadata/src/api.d.ts +4 -0
- package/src/ngtsc/reflection/src/host.d.ts +9 -1
- package/src/ngtsc/transform/src/api.d.ts +3 -3
- package/src/ngtsc/transform/src/declaration.d.ts +4 -4
- package/src/ngtsc/translator/src/type_translator.d.ts +3 -34
- package/src/ngtsc/typecheck/api/api.d.ts +1 -0
- package/src/ngtsc/typecheck/src/environment.d.ts +7 -1
- package/bundles/chunk-53CCHRBH.js.map +0 -6
- package/bundles/chunk-ABPMSM4T.js.map +0 -6
- package/bundles/chunk-AHPF5263.js.map +0 -6
- package/bundles/chunk-DZ2JDFLR.js.map +0 -6
- package/bundles/chunk-UNR3CTVT.js.map +0 -6
- /package/bundles/{chunk-BZAIS6C3.js.map → chunk-64MYZ5SD.js.map} +0 -0
- /package/bundles/{chunk-HJOPJLIM.js.map → chunk-7PCPPTTO.js.map} +0 -0
- /package/bundles/{chunk-WL4F4VQG.js.map → chunk-B6WD2R2T.js.map} +0 -0
- /package/bundles/{chunk-GYHDNUIK.js.map → chunk-EKTJ7622.js.map} +0 -0
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
- /package/bundles/{chunk-SL3W33EA.js.map → chunk-OVMU6P3K.js.map} +0 -0
- /package/bundles/{chunk-EC5K6QPP.js.map → chunk-TBUSSXUA.js.map} +0 -0
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
reflectObjectLiteral,
|
|
10
10
|
reflectTypeEntityToDeclaration,
|
|
11
11
|
typeNodeToValueExpr
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-T2BBDUF3.js";
|
|
13
13
|
import {
|
|
14
14
|
ImportManager,
|
|
15
15
|
translateExpression,
|
|
16
16
|
translateStatement,
|
|
17
17
|
translateType
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VLCBVJOY.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-B6WD2R2T.js";
|
|
36
36
|
import {
|
|
37
37
|
PerfEvent,
|
|
38
38
|
PerfPhase
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-7PCPPTTO.js";
|
|
40
40
|
import {
|
|
41
41
|
absoluteFrom,
|
|
42
42
|
absoluteFromSourceFile,
|
|
43
43
|
relative
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-TBUSSXUA.js";
|
|
45
45
|
|
|
46
|
-
// bazel-out/
|
|
46
|
+
// bazel-out/k8-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) {
|
|
@@ -280,7 +280,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
280
280
|
return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
// bazel-out/
|
|
283
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
284
284
|
var DynamicValue = class {
|
|
285
285
|
constructor(node, reason, code) {
|
|
286
286
|
this.node = node;
|
|
@@ -370,10 +370,10 @@ var DynamicValue = class {
|
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
372
|
|
|
373
|
-
// bazel-out/
|
|
373
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
374
374
|
import ts2 from "typescript";
|
|
375
375
|
|
|
376
|
-
// bazel-out/
|
|
376
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
377
377
|
var ResolvedModule = class {
|
|
378
378
|
constructor(exports, evaluate) {
|
|
379
379
|
this.exports = exports;
|
|
@@ -403,7 +403,7 @@ var EnumValue = class {
|
|
|
403
403
|
var KnownFn = class {
|
|
404
404
|
};
|
|
405
405
|
|
|
406
|
-
// bazel-out/
|
|
406
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
407
407
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
408
408
|
constructor(lhs) {
|
|
409
409
|
super();
|
|
@@ -455,14 +455,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
455
455
|
}
|
|
456
456
|
};
|
|
457
457
|
|
|
458
|
-
// bazel-out/
|
|
458
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
459
459
|
var SyntheticValue = class {
|
|
460
460
|
constructor(value) {
|
|
461
461
|
this.value = value;
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
464
|
|
|
465
|
-
// bazel-out/
|
|
465
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
466
466
|
function literalBinaryOp(op) {
|
|
467
467
|
return { op, literal: true };
|
|
468
468
|
}
|
|
@@ -1040,7 +1040,7 @@ function owningModule(context, override = null) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
|
-
// bazel-out/
|
|
1043
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1044
1044
|
var PartialEvaluator = class {
|
|
1045
1045
|
constructor(host, checker, dependencyTracker) {
|
|
1046
1046
|
this.host = host;
|
|
@@ -1060,7 +1060,7 @@ var PartialEvaluator = class {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
};
|
|
1062
1062
|
|
|
1063
|
-
// bazel-out/
|
|
1063
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1064
1064
|
import ts3 from "typescript";
|
|
1065
1065
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1066
1066
|
var _a, _b;
|
|
@@ -1190,7 +1190,7 @@ function getContainerNode(node) {
|
|
|
1190
1190
|
return node.getSourceFile();
|
|
1191
1191
|
}
|
|
1192
1192
|
|
|
1193
|
-
// bazel-out/
|
|
1193
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1194
1194
|
import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1195
1195
|
import ts4 from "typescript";
|
|
1196
1196
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1334,10 +1334,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1334
1334
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
1335
1335
|
}
|
|
1336
1336
|
|
|
1337
|
-
// bazel-out/
|
|
1337
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
1338
1338
|
import ts7 from "typescript";
|
|
1339
1339
|
|
|
1340
|
-
// bazel-out/
|
|
1340
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1341
1341
|
var MetaKind;
|
|
1342
1342
|
(function(MetaKind2) {
|
|
1343
1343
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -1350,10 +1350,10 @@ var MatchSource;
|
|
|
1350
1350
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
1351
1351
|
})(MatchSource || (MatchSource = {}));
|
|
1352
1352
|
|
|
1353
|
-
// bazel-out/
|
|
1353
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1354
1354
|
import ts6 from "typescript";
|
|
1355
1355
|
|
|
1356
|
-
// bazel-out/
|
|
1356
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1357
1357
|
var ClassPropertyMapping = class {
|
|
1358
1358
|
constructor(forwardMap) {
|
|
1359
1359
|
this.forwardMap = forwardMap;
|
|
@@ -1431,7 +1431,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
1431
1431
|
return reverseMap;
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
|
-
// bazel-out/
|
|
1434
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
1435
1435
|
import ts5 from "typescript";
|
|
1436
1436
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
1437
1437
|
if (!ts5.isTupleTypeNode(def)) {
|
|
@@ -1613,7 +1613,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
1613
1613
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
1614
1614
|
}
|
|
1615
1615
|
|
|
1616
|
-
// bazel-out/
|
|
1616
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1617
1617
|
var DtsMetadataReader = class {
|
|
1618
1618
|
constructor(checker, reflector) {
|
|
1619
1619
|
this.checker = checker;
|
|
@@ -1643,7 +1643,7 @@ var DtsMetadataReader = class {
|
|
|
1643
1643
|
};
|
|
1644
1644
|
}
|
|
1645
1645
|
getDirectiveMetadata(ref) {
|
|
1646
|
-
var _a;
|
|
1646
|
+
var _a, _b;
|
|
1647
1647
|
const clazz = ref.node;
|
|
1648
1648
|
const def = this.reflector.getMembersOfClass(clazz).find((field) => field.isStatic && (field.name === "\u0275cmp" || field.name === "\u0275dir"));
|
|
1649
1649
|
if (def === void 0) {
|
|
@@ -1660,6 +1660,7 @@ var DtsMetadataReader = class {
|
|
|
1660
1660
|
const inputs = ClassPropertyMapping.fromMappedObject(readInputsType(def.type.typeArguments[3]));
|
|
1661
1661
|
const outputs = ClassPropertyMapping.fromMappedObject(readMapType(def.type.typeArguments[4], readStringType));
|
|
1662
1662
|
const hostDirectives = def.type.typeArguments.length > 8 ? readHostDirectivesType(this.checker, def.type.typeArguments[8], ref.bestGuessOwningModule) : null;
|
|
1663
|
+
const isSignal = def.type.typeArguments.length > 9 && ((_b = readBooleanType(def.type.typeArguments[9])) != null ? _b : false);
|
|
1663
1664
|
return {
|
|
1664
1665
|
kind: MetaKind.Directive,
|
|
1665
1666
|
matchSource: MatchSource.Selector,
|
|
@@ -1678,6 +1679,7 @@ var DtsMetadataReader = class {
|
|
|
1678
1679
|
isStructural,
|
|
1679
1680
|
animationTriggerNames: null,
|
|
1680
1681
|
isStandalone,
|
|
1682
|
+
isSignal,
|
|
1681
1683
|
imports: null,
|
|
1682
1684
|
schemas: null,
|
|
1683
1685
|
decorator: null,
|
|
@@ -1783,7 +1785,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
1783
1785
|
return result.length > 0 ? result : null;
|
|
1784
1786
|
}
|
|
1785
1787
|
|
|
1786
|
-
// bazel-out/
|
|
1788
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
1787
1789
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
1788
1790
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
1789
1791
|
if (topMeta === null) {
|
|
@@ -1841,7 +1843,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
1841
1843
|
};
|
|
1842
1844
|
}
|
|
1843
1845
|
|
|
1844
|
-
// bazel-out/
|
|
1846
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
1845
1847
|
var LocalMetadataRegistry = class {
|
|
1846
1848
|
constructor() {
|
|
1847
1849
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -1898,7 +1900,7 @@ var CompoundMetadataRegistry = class {
|
|
|
1898
1900
|
}
|
|
1899
1901
|
};
|
|
1900
1902
|
|
|
1901
|
-
// bazel-out/
|
|
1903
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
1902
1904
|
var ResourceRegistry = class {
|
|
1903
1905
|
constructor() {
|
|
1904
1906
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -1963,7 +1965,7 @@ var ResourceRegistry = class {
|
|
|
1963
1965
|
}
|
|
1964
1966
|
};
|
|
1965
1967
|
|
|
1966
|
-
// bazel-out/
|
|
1968
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
1967
1969
|
var ExportedProviderStatusResolver = class {
|
|
1968
1970
|
constructor(metaReader) {
|
|
1969
1971
|
this.metaReader = metaReader;
|
|
@@ -2007,7 +2009,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
2007
2009
|
}
|
|
2008
2010
|
};
|
|
2009
2011
|
|
|
2010
|
-
// bazel-out/
|
|
2012
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
2011
2013
|
var EMPTY_ARRAY = [];
|
|
2012
2014
|
var HostDirectivesResolver = class {
|
|
2013
2015
|
constructor(metaReader) {
|
|
@@ -2068,7 +2070,7 @@ function resolveOutput(bindingName) {
|
|
|
2068
2070
|
return bindingName;
|
|
2069
2071
|
}
|
|
2070
2072
|
|
|
2071
|
-
// bazel-out/
|
|
2073
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
2072
2074
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
2073
2075
|
const context = [];
|
|
2074
2076
|
for (const decl of data) {
|
|
@@ -2264,7 +2266,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
2264
2266
|
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}.`);
|
|
2265
2267
|
}
|
|
2266
2268
|
|
|
2267
|
-
// bazel-out/
|
|
2269
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
2268
2270
|
import ts8 from "typescript";
|
|
2269
2271
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
2270
2272
|
let resolved = null;
|
|
@@ -2297,7 +2299,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
2297
2299
|
return meta;
|
|
2298
2300
|
}
|
|
2299
2301
|
|
|
2300
|
-
// bazel-out/
|
|
2302
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
2301
2303
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
2302
2304
|
function compileNgFactoryDefField(metadata) {
|
|
2303
2305
|
const res = compileFactoryFunction(metadata);
|
|
@@ -2308,7 +2310,7 @@ function compileDeclareFactory(metadata) {
|
|
|
2308
2310
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
2309
2311
|
}
|
|
2310
2312
|
|
|
2311
|
-
// bazel-out/
|
|
2313
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
2312
2314
|
var InjectableClassRegistry = class {
|
|
2313
2315
|
constructor(host, isCore) {
|
|
2314
2316
|
this.host = host;
|
|
@@ -2334,7 +2336,7 @@ var InjectableClassRegistry = class {
|
|
|
2334
2336
|
}
|
|
2335
2337
|
};
|
|
2336
2338
|
|
|
2337
|
-
// bazel-out/
|
|
2339
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
2338
2340
|
import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
2339
2341
|
import ts9 from "typescript";
|
|
2340
2342
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -2421,13 +2423,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
2421
2423
|
return result.transformed[0];
|
|
2422
2424
|
}
|
|
2423
2425
|
|
|
2424
|
-
// bazel-out/
|
|
2426
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
2425
2427
|
var NoopReferencesRegistry = class {
|
|
2426
2428
|
add(source, ...references) {
|
|
2427
2429
|
}
|
|
2428
2430
|
};
|
|
2429
2431
|
|
|
2430
|
-
// bazel-out/
|
|
2432
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
2431
2433
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
2432
2434
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
2433
2435
|
const schemas = [];
|
|
@@ -2457,11 +2459,11 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
2457
2459
|
return schemas;
|
|
2458
2460
|
}
|
|
2459
2461
|
|
|
2460
|
-
// bazel-out/
|
|
2462
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
2461
2463
|
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";
|
|
2462
2464
|
import ts24 from "typescript";
|
|
2463
2465
|
|
|
2464
|
-
// bazel-out/
|
|
2466
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
2465
2467
|
import ts10 from "typescript";
|
|
2466
2468
|
var SemanticSymbol = class {
|
|
2467
2469
|
constructor(decl) {
|
|
@@ -2477,7 +2479,7 @@ function getSymbolIdentifier(decl) {
|
|
|
2477
2479
|
return decl.name.text;
|
|
2478
2480
|
}
|
|
2479
2481
|
|
|
2480
|
-
// bazel-out/
|
|
2482
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
2481
2483
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
2482
2484
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
2483
2485
|
isPublicApiAffected() {
|
|
@@ -2620,10 +2622,10 @@ function getImportPath(expr) {
|
|
|
2620
2622
|
}
|
|
2621
2623
|
}
|
|
2622
2624
|
|
|
2623
|
-
// bazel-out/
|
|
2625
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
2624
2626
|
import ts11 from "typescript";
|
|
2625
2627
|
|
|
2626
|
-
// bazel-out/
|
|
2628
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
2627
2629
|
function isSymbolEqual(a, b) {
|
|
2628
2630
|
if (a.decl === b.decl) {
|
|
2629
2631
|
return true;
|
|
@@ -2673,7 +2675,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
2673
2675
|
return true;
|
|
2674
2676
|
}
|
|
2675
2677
|
|
|
2676
|
-
// bazel-out/
|
|
2678
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
2677
2679
|
function extractSemanticTypeParameters(node) {
|
|
2678
2680
|
if (!ts11.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
2679
2681
|
return null;
|
|
@@ -2693,14 +2695,14 @@ function isTypeParameterEqual(a, b) {
|
|
|
2693
2695
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
2694
2696
|
}
|
|
2695
2697
|
|
|
2696
|
-
// bazel-out/
|
|
2698
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
2697
2699
|
var ComponentScopeKind;
|
|
2698
2700
|
(function(ComponentScopeKind2) {
|
|
2699
2701
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
2700
2702
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
2701
2703
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
2702
2704
|
|
|
2703
|
-
// bazel-out/
|
|
2705
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
2704
2706
|
var CompoundComponentScopeReader = class {
|
|
2705
2707
|
constructor(readers) {
|
|
2706
2708
|
this.readers = readers;
|
|
@@ -2725,7 +2727,7 @@ var CompoundComponentScopeReader = class {
|
|
|
2725
2727
|
}
|
|
2726
2728
|
};
|
|
2727
2729
|
|
|
2728
|
-
// bazel-out/
|
|
2730
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
2729
2731
|
var MetadataDtsModuleScopeResolver = class {
|
|
2730
2732
|
constructor(dtsMetaReader, aliasingHost) {
|
|
2731
2733
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -2801,11 +2803,11 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
2801
2803
|
}
|
|
2802
2804
|
};
|
|
2803
2805
|
|
|
2804
|
-
// bazel-out/
|
|
2806
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2805
2807
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
2806
2808
|
import ts12 from "typescript";
|
|
2807
2809
|
|
|
2808
|
-
// bazel-out/
|
|
2810
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
2809
2811
|
function getDiagnosticNode(ref, rawExpr) {
|
|
2810
2812
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
2811
2813
|
}
|
|
@@ -2828,7 +2830,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
2828
2830
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
2829
2831
|
}
|
|
2830
2832
|
|
|
2831
|
-
// bazel-out/
|
|
2833
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2832
2834
|
var LocalModuleScopeRegistry = class {
|
|
2833
2835
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
2834
2836
|
this.localReader = localReader;
|
|
@@ -3167,7 +3169,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
3167
3169
|
]);
|
|
3168
3170
|
}
|
|
3169
3171
|
|
|
3170
|
-
// bazel-out/
|
|
3172
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
3171
3173
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
3172
3174
|
import ts13 from "typescript";
|
|
3173
3175
|
var TypeCheckScopeRegistry = class {
|
|
@@ -3236,7 +3238,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
3236
3238
|
}
|
|
3237
3239
|
};
|
|
3238
3240
|
|
|
3239
|
-
// bazel-out/
|
|
3241
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
3240
3242
|
var CompilationMode;
|
|
3241
3243
|
(function(CompilationMode2) {
|
|
3242
3244
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -3255,7 +3257,7 @@ var HandlerFlags;
|
|
|
3255
3257
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
3256
3258
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
3257
3259
|
|
|
3258
|
-
// bazel-out/
|
|
3260
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
3259
3261
|
import ts14 from "typescript";
|
|
3260
3262
|
function aliasTransformFactory(exportStatements) {
|
|
3261
3263
|
return () => {
|
|
@@ -3278,10 +3280,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
3278
3280
|
};
|
|
3279
3281
|
}
|
|
3280
3282
|
|
|
3281
|
-
// bazel-out/
|
|
3283
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3282
3284
|
import ts15 from "typescript";
|
|
3283
3285
|
|
|
3284
|
-
// bazel-out/
|
|
3286
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
3285
3287
|
var TraitState;
|
|
3286
3288
|
(function(TraitState2) {
|
|
3287
3289
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -3338,7 +3340,7 @@ var TraitImpl = class {
|
|
|
3338
3340
|
}
|
|
3339
3341
|
};
|
|
3340
3342
|
|
|
3341
|
-
// bazel-out/
|
|
3343
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3342
3344
|
var TraitCompiler = class {
|
|
3343
3345
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
3344
3346
|
this.handlers = handlers;
|
|
@@ -3773,10 +3775,10 @@ function containsErrors(diagnostics) {
|
|
|
3773
3775
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts15.DiagnosticCategory.Error);
|
|
3774
3776
|
}
|
|
3775
3777
|
|
|
3776
|
-
// bazel-out/
|
|
3778
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3777
3779
|
import ts17 from "typescript";
|
|
3778
3780
|
|
|
3779
|
-
// bazel-out/
|
|
3781
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
3780
3782
|
import ts16 from "typescript";
|
|
3781
3783
|
function addImports(importManager, sf, extraStatements = []) {
|
|
3782
3784
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -3812,7 +3814,7 @@ function isImportStatement(stmt) {
|
|
|
3812
3814
|
return ts16.isImportDeclaration(stmt) || ts16.isImportEqualsDeclaration(stmt) || ts16.isNamespaceImport(stmt);
|
|
3813
3815
|
}
|
|
3814
3816
|
|
|
3815
|
-
// bazel-out/
|
|
3817
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3816
3818
|
var DtsTransformRegistry = class {
|
|
3817
3819
|
constructor() {
|
|
3818
3820
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -3836,9 +3838,9 @@ var DtsTransformRegistry = class {
|
|
|
3836
3838
|
return transforms;
|
|
3837
3839
|
}
|
|
3838
3840
|
};
|
|
3839
|
-
function declarationTransformFactory(transformRegistry, importRewriter, importPrefix) {
|
|
3841
|
+
function declarationTransformFactory(transformRegistry, reflector, refEmitter, importRewriter, importPrefix) {
|
|
3840
3842
|
return (context) => {
|
|
3841
|
-
const transformer = new DtsTransformer(context, importRewriter, importPrefix);
|
|
3843
|
+
const transformer = new DtsTransformer(context, reflector, refEmitter, importRewriter, importPrefix);
|
|
3842
3844
|
return (fileOrBundle) => {
|
|
3843
3845
|
if (ts17.isBundle(fileOrBundle)) {
|
|
3844
3846
|
return fileOrBundle;
|
|
@@ -3852,8 +3854,10 @@ function declarationTransformFactory(transformRegistry, importRewriter, importPr
|
|
|
3852
3854
|
};
|
|
3853
3855
|
}
|
|
3854
3856
|
var DtsTransformer = class {
|
|
3855
|
-
constructor(ctx, importRewriter, importPrefix) {
|
|
3857
|
+
constructor(ctx, reflector, refEmitter, importRewriter, importPrefix) {
|
|
3856
3858
|
this.ctx = ctx;
|
|
3859
|
+
this.reflector = reflector;
|
|
3860
|
+
this.refEmitter = refEmitter;
|
|
3857
3861
|
this.importRewriter = importRewriter;
|
|
3858
3862
|
this.importPrefix = importPrefix;
|
|
3859
3863
|
}
|
|
@@ -3892,7 +3896,7 @@ var DtsTransformer = class {
|
|
|
3892
3896
|
for (const transform of transforms) {
|
|
3893
3897
|
if (transform.transformClass !== void 0) {
|
|
3894
3898
|
const inputMembers = clazz === newClazz ? elements : newClazz.members;
|
|
3895
|
-
newClazz = transform.transformClass(newClazz, inputMembers, imports);
|
|
3899
|
+
newClazz = transform.transformClass(newClazz, inputMembers, this.reflector, this.refEmitter, imports);
|
|
3896
3900
|
}
|
|
3897
3901
|
}
|
|
3898
3902
|
if (elementsChanged && clazz === newClazz) {
|
|
@@ -3924,7 +3928,7 @@ var IvyDeclarationDtsTransform = class {
|
|
|
3924
3928
|
addFields(decl, fields) {
|
|
3925
3929
|
this.declarationFields.set(decl, fields);
|
|
3926
3930
|
}
|
|
3927
|
-
transformClass(clazz, members, imports) {
|
|
3931
|
+
transformClass(clazz, members, reflector, refEmitter, imports) {
|
|
3928
3932
|
const original = ts17.getOriginalNode(clazz);
|
|
3929
3933
|
if (!this.declarationFields.has(original)) {
|
|
3930
3934
|
return clazz;
|
|
@@ -3932,7 +3936,7 @@ var IvyDeclarationDtsTransform = class {
|
|
|
3932
3936
|
const fields = this.declarationFields.get(original);
|
|
3933
3937
|
const newMembers = fields.map((decl) => {
|
|
3934
3938
|
const modifiers = [ts17.factory.createModifier(ts17.SyntaxKind.StaticKeyword)];
|
|
3935
|
-
const typeRef = translateType(decl.type, imports);
|
|
3939
|
+
const typeRef = translateType(decl.type, original.getSourceFile(), reflector, refEmitter, imports);
|
|
3936
3940
|
markForEmitAsSingleLine(typeRef);
|
|
3937
3941
|
return ts17.factory.createPropertyDeclaration(
|
|
3938
3942
|
modifiers,
|
|
@@ -3957,11 +3961,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
3957
3961
|
ts17.forEachChild(node, markForEmitAsSingleLine);
|
|
3958
3962
|
}
|
|
3959
3963
|
|
|
3960
|
-
// bazel-out/
|
|
3964
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3961
3965
|
import { ConstantPool } from "@angular/compiler";
|
|
3962
3966
|
import ts19 from "typescript";
|
|
3963
3967
|
|
|
3964
|
-
// bazel-out/
|
|
3968
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
3965
3969
|
import ts18 from "typescript";
|
|
3966
3970
|
function visit(node, visitor, context) {
|
|
3967
3971
|
return visitor._visit(node, context);
|
|
@@ -4022,7 +4026,7 @@ var Visitor = class {
|
|
|
4022
4026
|
}
|
|
4023
4027
|
};
|
|
4024
4028
|
|
|
4025
|
-
// bazel-out/
|
|
4029
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
4026
4030
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
4027
4031
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
4028
4032
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -4230,10 +4234,10 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
4230
4234
|
return array;
|
|
4231
4235
|
}
|
|
4232
4236
|
|
|
4233
|
-
// bazel-out/
|
|
4237
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4234
4238
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
4235
4239
|
|
|
4236
|
-
// bazel-out/
|
|
4240
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4237
4241
|
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
4238
4242
|
import ts20 from "typescript";
|
|
4239
4243
|
var EMPTY_OBJECT = {};
|
|
@@ -4315,6 +4319,15 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
|
|
|
4315
4319
|
}
|
|
4316
4320
|
isStandalone = resolved;
|
|
4317
4321
|
}
|
|
4322
|
+
let isSignal = false;
|
|
4323
|
+
if (directive.has("signals")) {
|
|
4324
|
+
const expr = directive.get("signals");
|
|
4325
|
+
const resolved = evaluator.evaluate(expr);
|
|
4326
|
+
if (typeof resolved !== "boolean") {
|
|
4327
|
+
throw createValueHasWrongTypeError(expr, resolved, `signals flag must be a boolean`);
|
|
4328
|
+
}
|
|
4329
|
+
isSignal = resolved;
|
|
4330
|
+
}
|
|
4318
4331
|
const usesInheritance = reflector.hasBaseClass(clazz);
|
|
4319
4332
|
const sourceFile = clazz.getSourceFile();
|
|
4320
4333
|
const type = wrapTypeReference(reflector, clazz);
|
|
@@ -4343,6 +4356,7 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
|
|
|
4343
4356
|
exportAs,
|
|
4344
4357
|
providers,
|
|
4345
4358
|
isStandalone,
|
|
4359
|
+
isSignal,
|
|
4346
4360
|
hostDirectives: (hostDirectives == null ? void 0 : hostDirectives.map((hostDir) => toHostDirectiveMetadata(hostDir, sourceFile, refEmitter))) || null
|
|
4347
4361
|
};
|
|
4348
4362
|
return {
|
|
@@ -4705,7 +4719,7 @@ function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
|
|
|
4705
4719
|
};
|
|
4706
4720
|
}
|
|
4707
4721
|
|
|
4708
|
-
// bazel-out/
|
|
4722
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
4709
4723
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
4710
4724
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
4711
4725
|
super(decl);
|
|
@@ -4785,7 +4799,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
4785
4799
|
return isSymbolEqual(current, previous);
|
|
4786
4800
|
}
|
|
4787
4801
|
|
|
4788
|
-
// bazel-out/
|
|
4802
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4789
4803
|
var FIELD_DECORATORS = [
|
|
4790
4804
|
"Input",
|
|
4791
4805
|
"Output",
|
|
@@ -4892,6 +4906,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
4892
4906
|
isStructural: analysis.isStructural,
|
|
4893
4907
|
animationTriggerNames: null,
|
|
4894
4908
|
isStandalone: analysis.meta.isStandalone,
|
|
4909
|
+
isSignal: analysis.meta.isSignal,
|
|
4895
4910
|
imports: null,
|
|
4896
4911
|
schemas: null,
|
|
4897
4912
|
decorator: analysis.decorator,
|
|
@@ -4945,11 +4960,11 @@ var DirectiveDecoratorHandler = class {
|
|
|
4945
4960
|
}
|
|
4946
4961
|
};
|
|
4947
4962
|
|
|
4948
|
-
// bazel-out/
|
|
4963
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
4949
4964
|
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";
|
|
4950
4965
|
import ts22 from "typescript";
|
|
4951
4966
|
|
|
4952
|
-
// bazel-out/
|
|
4967
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
4953
4968
|
import ts21 from "typescript";
|
|
4954
4969
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
4955
4970
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -5016,7 +5031,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
5016
5031
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
5017
5032
|
}
|
|
5018
5033
|
|
|
5019
|
-
// bazel-out/
|
|
5034
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5020
5035
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
5021
5036
|
constructor(decl, hasProviders) {
|
|
5022
5037
|
super(decl);
|
|
@@ -5540,7 +5555,7 @@ function isSyntheticReference(ref) {
|
|
|
5540
5555
|
return ref.synthetic;
|
|
5541
5556
|
}
|
|
5542
5557
|
|
|
5543
|
-
// bazel-out/
|
|
5558
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
5544
5559
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
5545
5560
|
const name = ref.debugName || "(unknown)";
|
|
5546
5561
|
const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -5563,7 +5578,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
5563
5578
|
return null;
|
|
5564
5579
|
}
|
|
5565
5580
|
|
|
5566
|
-
// bazel-out/
|
|
5581
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
5567
5582
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
5568
5583
|
import ts23 from "typescript";
|
|
5569
5584
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -5877,7 +5892,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
5877
5892
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
5878
5893
|
}
|
|
5879
5894
|
|
|
5880
|
-
// bazel-out/
|
|
5895
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
5881
5896
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
5882
5897
|
constructor() {
|
|
5883
5898
|
super(...arguments);
|
|
@@ -5912,7 +5927,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
5912
5927
|
}
|
|
5913
5928
|
};
|
|
5914
5929
|
|
|
5915
|
-
// bazel-out/
|
|
5930
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
5916
5931
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
5917
5932
|
if (value instanceof Map) {
|
|
5918
5933
|
const name = value.get("name");
|
|
@@ -5988,7 +6003,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
5988
6003
|
return false;
|
|
5989
6004
|
}
|
|
5990
6005
|
|
|
5991
|
-
// bazel-out/
|
|
6006
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
5992
6007
|
var EMPTY_ARRAY2 = [];
|
|
5993
6008
|
var ComponentDecoratorHandler = class {
|
|
5994
6009
|
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) {
|
|
@@ -6310,6 +6325,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6310
6325
|
isPoisoned: analysis.isPoisoned,
|
|
6311
6326
|
isStructural: false,
|
|
6312
6327
|
isStandalone: analysis.meta.isStandalone,
|
|
6328
|
+
isSignal: analysis.meta.isSignal,
|
|
6313
6329
|
imports: analysis.resolvedImports,
|
|
6314
6330
|
animationTriggerNames: analysis.animationTriggerNames,
|
|
6315
6331
|
schemas: analysis.schemas,
|
|
@@ -6637,7 +6653,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
|
|
|
6637
6653
|
return diagnostics;
|
|
6638
6654
|
}
|
|
6639
6655
|
|
|
6640
|
-
// bazel-out/
|
|
6656
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
6641
6657
|
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
6642
6658
|
import ts25 from "typescript";
|
|
6643
6659
|
var InjectableDecoratorHandler = class {
|
|
@@ -6852,7 +6868,7 @@ function getDep(dep, reflector) {
|
|
|
6852
6868
|
return meta;
|
|
6853
6869
|
}
|
|
6854
6870
|
|
|
6855
|
-
// bazel-out/
|
|
6871
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
6856
6872
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
|
|
6857
6873
|
import ts26 from "typescript";
|
|
6858
6874
|
var PipeSymbol = class extends SemanticSymbol {
|
|
@@ -6996,14 +7012,14 @@ var PipeDecoratorHandler = class {
|
|
|
6996
7012
|
}
|
|
6997
7013
|
};
|
|
6998
7014
|
|
|
6999
|
-
// bazel-out/
|
|
7015
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
7000
7016
|
var OptimizeFor;
|
|
7001
7017
|
(function(OptimizeFor2) {
|
|
7002
7018
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
7003
7019
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
7004
7020
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
7005
7021
|
|
|
7006
|
-
// bazel-out/
|
|
7022
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
7007
7023
|
var PotentialImportKind;
|
|
7008
7024
|
(function(PotentialImportKind2) {
|
|
7009
7025
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -7015,14 +7031,14 @@ var PotentialImportMode;
|
|
|
7015
7031
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
7016
7032
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
7017
7033
|
|
|
7018
|
-
// bazel-out/
|
|
7034
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
7019
7035
|
var CompletionKind;
|
|
7020
7036
|
(function(CompletionKind2) {
|
|
7021
7037
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
7022
7038
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
7023
7039
|
})(CompletionKind || (CompletionKind = {}));
|
|
7024
7040
|
|
|
7025
|
-
// bazel-out/
|
|
7041
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
7026
7042
|
var SymbolKind;
|
|
7027
7043
|
(function(SymbolKind2) {
|
|
7028
7044
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -7090,4 +7106,4 @@ export {
|
|
|
7090
7106
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7091
7107
|
* found in the LICENSE file at https://angular.io/license
|
|
7092
7108
|
*/
|
|
7093
|
-
//# sourceMappingURL=chunk-
|
|
7109
|
+
//# sourceMappingURL=chunk-QCPJUH3P.js.map
|