@angular/compiler-cli 17.0.0-next.7 → 17.0.0-rc.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-W3AMRN7J.js → chunk-225M55ER.js} +2 -2
- package/bundles/{chunk-HJOPJLIM.js → chunk-3IBJEGH3.js} +5 -4
- package/bundles/chunk-3IBJEGH3.js.map +6 -0
- package/bundles/{chunk-C4TR4DIO.js → chunk-7BZJ2Z2V.js} +2 -2
- package/bundles/{chunk-PYIYPY3X.js → chunk-GTB2POO5.js} +3 -3
- package/bundles/{chunk-I3FLXBLP.js → chunk-LPMZPYYV.js} +109 -74
- package/bundles/chunk-LPMZPYYV.js.map +6 -0
- package/bundles/{chunk-PBDWVP2J.js → chunk-Q5XOEMMF.js} +610 -454
- package/bundles/chunk-Q5XOEMMF.js.map +6 -0
- package/bundles/{chunk-PAPUMJUA.js → chunk-RAK4OYZY.js} +3 -1
- package/bundles/{chunk-PAPUMJUA.js.map → chunk-RAK4OYZY.js.map} +1 -1
- package/bundles/{chunk-3NXCUQ44.js → chunk-YR36R26L.js} +2 -2
- package/bundles/index.js +7 -7
- package/bundles/linker/babel/index.js +3 -3
- package/bundles/linker/index.js +3 -3
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/migrations.js +4 -4
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +6 -6
- package/bundles/src/bin/ngc.js +6 -6
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +3 -3
- package/src/ngtsc/annotations/common/index.d.ts +1 -0
- package/src/ngtsc/annotations/common/src/debug_info.d.ts +10 -0
- package/src/ngtsc/annotations/common/src/util.d.ts +1 -1
- package/src/ngtsc/annotations/component/src/handler.d.ts +2 -1
- package/src/ngtsc/annotations/component/src/metadata.d.ts +2 -1
- package/src/ngtsc/core/api/src/public_options.d.ts +8 -0
- package/src/ngtsc/diagnostics/src/error_code.d.ts +9 -0
- package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +2 -1
- package/src/ngtsc/docs/src/entities.d.ts +14 -0
- package/src/ngtsc/docs/src/extractor.d.ts +4 -0
- package/src/ngtsc/docs/src/filters.d.ts +9 -0
- package/src/ngtsc/docs/src/function_extractor.d.ts +6 -2
- package/src/ngtsc/docs/src/generics_extractor.d.ts +15 -0
- package/src/ngtsc/docs/src/type_alias_extractor.d.ts +18 -0
- package/src/ngtsc/perf/src/api.d.ts +7 -3
- package/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.d.ts +10 -0
- package/bundles/chunk-HJOPJLIM.js.map +0 -6
- package/bundles/chunk-I3FLXBLP.js.map +0 -6
- package/bundles/chunk-PBDWVP2J.js.map +0 -6
- /package/bundles/{chunk-W3AMRN7J.js.map → chunk-225M55ER.js.map} +0 -0
- /package/bundles/{chunk-C4TR4DIO.js.map → chunk-7BZJ2Z2V.js.map} +0 -0
- /package/bundles/{chunk-PYIYPY3X.js.map → chunk-GTB2POO5.js.map} +0 -0
- /package/bundles/{chunk-3NXCUQ44.js.map → chunk-YR36R26L.js.map} +0 -0
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
formatDiagnostics,
|
|
13
13
|
performCompilation,
|
|
14
14
|
readConfiguration
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q5XOEMMF.js";
|
|
16
16
|
|
|
17
17
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/main.mjs
|
|
18
18
|
import ts2 from "typescript";
|
|
@@ -342,4 +342,4 @@ export {
|
|
|
342
342
|
* Use of this source code is governed by an MIT-style license that can be
|
|
343
343
|
* found in the LICENSE file at https://angular.io/license
|
|
344
344
|
*/
|
|
345
|
-
//# sourceMappingURL=chunk-
|
|
345
|
+
//# sourceMappingURL=chunk-225M55ER.js.map
|
|
@@ -30,9 +30,10 @@ var PerfPhase;
|
|
|
30
30
|
PerfPhase2[PerfPhase2["LsDiagnostics"] = 21] = "LsDiagnostics";
|
|
31
31
|
PerfPhase2[PerfPhase2["LsComponentLocations"] = 22] = "LsComponentLocations";
|
|
32
32
|
PerfPhase2[PerfPhase2["LsSignatureHelp"] = 23] = "LsSignatureHelp";
|
|
33
|
-
PerfPhase2[PerfPhase2["
|
|
34
|
-
PerfPhase2[PerfPhase2["
|
|
35
|
-
PerfPhase2[PerfPhase2["
|
|
33
|
+
PerfPhase2[PerfPhase2["OutliningSpans"] = 24] = "OutliningSpans";
|
|
34
|
+
PerfPhase2[PerfPhase2["LAST"] = 25] = "LAST";
|
|
35
|
+
PerfPhase2[PerfPhase2["LsCodeFixes"] = 26] = "LsCodeFixes";
|
|
36
|
+
PerfPhase2[PerfPhase2["LsCodeFixesAll"] = 27] = "LsCodeFixesAll";
|
|
36
37
|
})(PerfPhase || (PerfPhase = {}));
|
|
37
38
|
var PerfEvent;
|
|
38
39
|
(function(PerfEvent2) {
|
|
@@ -204,4 +205,4 @@ export {
|
|
|
204
205
|
* Use of this source code is governed by an MIT-style license that can be
|
|
205
206
|
* found in the LICENSE file at https://angular.io/license
|
|
206
207
|
*/
|
|
207
|
-
//# sourceMappingURL=chunk-
|
|
208
|
+
//# sourceMappingURL=chunk-3IBJEGH3.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../packages/compiler-cli/src/ngtsc/perf/src/api.ts", "../../../../../../packages/compiler-cli/src/ngtsc/perf/src/noop.ts", "../../../../../../packages/compiler-cli/src/ngtsc/perf/src/clock.ts", "../../../../../../packages/compiler-cli/src/ngtsc/perf/src/recorder.ts"],
|
|
4
|
+
"mappings": ";;;;;;AAWA,IAAY;CAAZ,SAAYA,YAAS;AAInB,EAAAA,WAAAA,WAAA,iBAAA,KAAA;AAOA,EAAAA,WAAAA,WAAA,WAAA,KAAA;AAQA,EAAAA,WAAAA,WAAA,6BAAA,KAAA;AAOA,EAAA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|
|
7
7
|
isAliasImportDeclaration,
|
|
8
8
|
loadIsReferencedAliasDeclarationPatch
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RAK4OYZY.js";
|
|
10
10
|
|
|
11
11
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
12
12
|
import ts from "typescript";
|
|
@@ -344,4 +344,4 @@ export {
|
|
|
344
344
|
* Use of this source code is governed by an MIT-style license that can be
|
|
345
345
|
* found in the LICENSE file at https://angular.io/license
|
|
346
346
|
*/
|
|
347
|
-
//# sourceMappingURL=chunk-
|
|
347
|
+
//# sourceMappingURL=chunk-7BZJ2Z2V.js.map
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import {
|
|
6
6
|
Context,
|
|
7
7
|
ExpressionTranslatorVisitor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YR36R26L.js";
|
|
9
9
|
import {
|
|
10
10
|
SourceFileLoader
|
|
11
11
|
} from "./chunk-GYHDNUIK.js";
|
|
@@ -267,7 +267,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
|
|
|
267
267
|
|
|
268
268
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/util.mjs
|
|
269
269
|
import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
|
|
270
|
-
var PLACEHOLDER_VERSION = "17.0.0-
|
|
270
|
+
var PLACEHOLDER_VERSION = "17.0.0-rc.0";
|
|
271
271
|
function wrapReference(wrapped) {
|
|
272
272
|
return { value: wrapped, type: wrapped };
|
|
273
273
|
}
|
|
@@ -1056,4 +1056,4 @@ export {
|
|
|
1056
1056
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1057
1057
|
* found in the LICENSE file at https://angular.io/license
|
|
1058
1058
|
*/
|
|
1059
|
-
//# sourceMappingURL=chunk-
|
|
1059
|
+
//# sourceMappingURL=chunk-GTB2POO5.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
translateExpression,
|
|
8
8
|
translateStatement,
|
|
9
9
|
translateType
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YR36R26L.js";
|
|
11
11
|
import {
|
|
12
12
|
ClassMemberKind,
|
|
13
13
|
ErrorCode,
|
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
reflectObjectLiteral,
|
|
31
31
|
reflectTypeEntityToDeclaration,
|
|
32
32
|
typeNodeToValueExpr
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-RAK4OYZY.js";
|
|
34
34
|
import {
|
|
35
35
|
PerfEvent,
|
|
36
36
|
PerfPhase
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-3IBJEGH3.js";
|
|
38
38
|
import {
|
|
39
39
|
absoluteFrom,
|
|
40
40
|
absoluteFromSourceFile,
|
|
@@ -232,11 +232,14 @@ 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, deferrableImports) {
|
|
235
|
+
function compileResults(fac, def, metadataStmt, propName, additionalFields, deferrableImports, debugInfo = null) {
|
|
236
236
|
const statements = def.statements;
|
|
237
237
|
if (metadataStmt !== null) {
|
|
238
238
|
statements.push(metadataStmt);
|
|
239
239
|
}
|
|
240
|
+
if (debugInfo !== null) {
|
|
241
|
+
statements.push(debugInfo);
|
|
242
|
+
}
|
|
240
243
|
const results = [
|
|
241
244
|
fac,
|
|
242
245
|
{
|
|
@@ -622,7 +625,7 @@ var StaticInterpreter = class {
|
|
|
622
625
|
visitIdentifier(node, context) {
|
|
623
626
|
const decl = this.host.getDeclarationOfIdentifier(node);
|
|
624
627
|
if (decl === null) {
|
|
625
|
-
if (
|
|
628
|
+
if (ts2.identifierToKeywordKind(node) === ts2.SyntaxKind.UndefinedKeyword) {
|
|
626
629
|
return void 0;
|
|
627
630
|
} else {
|
|
628
631
|
if (this.dependencyTracker !== null && this.host.getImportOfIdentifier(node) !== null) {
|
|
@@ -916,11 +919,11 @@ var StaticInterpreter = class {
|
|
|
916
919
|
}
|
|
917
920
|
}
|
|
918
921
|
visitBindingElement(node, context) {
|
|
919
|
-
const
|
|
922
|
+
const path2 = [];
|
|
920
923
|
let closestDeclaration = node;
|
|
921
924
|
while (ts2.isBindingElement(closestDeclaration) || ts2.isArrayBindingPattern(closestDeclaration) || ts2.isObjectBindingPattern(closestDeclaration)) {
|
|
922
925
|
if (ts2.isBindingElement(closestDeclaration)) {
|
|
923
|
-
|
|
926
|
+
path2.unshift(closestDeclaration);
|
|
924
927
|
}
|
|
925
928
|
closestDeclaration = closestDeclaration.parent;
|
|
926
929
|
}
|
|
@@ -928,7 +931,7 @@ var StaticInterpreter = class {
|
|
|
928
931
|
return DynamicValue.fromUnknown(node);
|
|
929
932
|
}
|
|
930
933
|
let value = this.visit(closestDeclaration.initializer, context);
|
|
931
|
-
for (const element of
|
|
934
|
+
for (const element of path2) {
|
|
932
935
|
let key;
|
|
933
936
|
if (ts2.isArrayBindingPattern(element.parent)) {
|
|
934
937
|
key = element.parent.elements.indexOf(element);
|
|
@@ -951,8 +954,8 @@ var StaticInterpreter = class {
|
|
|
951
954
|
if (ts2.isIdentifier(node) || ts2.isStringLiteral(node) || ts2.isNumericLiteral(node)) {
|
|
952
955
|
return node.text;
|
|
953
956
|
} else if (ts2.isComputedPropertyName(node)) {
|
|
954
|
-
const
|
|
955
|
-
return typeof
|
|
957
|
+
const literal3 = this.visitExpression(node.expression, context);
|
|
958
|
+
return typeof literal3 === "string" ? literal3 : void 0;
|
|
956
959
|
} else {
|
|
957
960
|
return void 0;
|
|
958
961
|
}
|
|
@@ -1042,9 +1045,6 @@ function owningModule(context, override = null) {
|
|
|
1042
1045
|
return null;
|
|
1043
1046
|
}
|
|
1044
1047
|
}
|
|
1045
|
-
function getOriginalKeywordKind(identifier) {
|
|
1046
|
-
return typeof ts2.identifierToKeywordKind === "function" ? ts2.identifierToKeywordKind(identifier) : identifier.originalKeywordKind;
|
|
1047
|
-
}
|
|
1048
1048
|
|
|
1049
1049
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1050
1050
|
var PartialEvaluator = class {
|
|
@@ -2237,14 +2237,7 @@ function getConstructorDependencies(clazz, reflector, isCore, compilationMode) {
|
|
|
2237
2237
|
if (compilationMode === CompilationMode.LOCAL && param.typeValueReference.kind === 2 && param.typeValueReference.reason.kind !== 0) {
|
|
2238
2238
|
const typeNode = param.typeValueReference.reason.typeNode;
|
|
2239
2239
|
if (ts10.isTypeReferenceNode(typeNode)) {
|
|
2240
|
-
|
|
2241
|
-
token = new WrappedNodeExpr2(typeNode.typeName);
|
|
2242
|
-
} else if (ts10.isQualifiedName(typeNode.typeName)) {
|
|
2243
|
-
const receiver = new WrappedNodeExpr2(typeNode.typeName.left);
|
|
2244
|
-
token = new ReadPropExpr2(receiver, typeNode.typeName.right.getText());
|
|
2245
|
-
} else {
|
|
2246
|
-
throw new Error("Impossible state!");
|
|
2247
|
-
}
|
|
2240
|
+
token = toQualifiedExpression(typeNode.typeName);
|
|
2248
2241
|
}
|
|
2249
2242
|
} else {
|
|
2250
2243
|
token = valueReferenceToExpression(param.typeValueReference);
|
|
@@ -2300,6 +2293,12 @@ function getConstructorDependencies(clazz, reflector, isCore, compilationMode) {
|
|
|
2300
2293
|
return { deps: null, errors };
|
|
2301
2294
|
}
|
|
2302
2295
|
}
|
|
2296
|
+
function toQualifiedExpression(entity) {
|
|
2297
|
+
if (ts10.isIdentifier(entity)) {
|
|
2298
|
+
return new WrappedNodeExpr2(entity);
|
|
2299
|
+
}
|
|
2300
|
+
return new ReadPropExpr2(toQualifiedExpression(entity.left), entity.right.text);
|
|
2301
|
+
}
|
|
2303
2302
|
function unwrapConstructorDependencies(deps) {
|
|
2304
2303
|
if (deps === null) {
|
|
2305
2304
|
return null;
|
|
@@ -2971,12 +2970,12 @@ var ResourceRegistry = class {
|
|
|
2971
2970
|
}
|
|
2972
2971
|
}
|
|
2973
2972
|
registerTemplate(templateResource, component) {
|
|
2974
|
-
const { path } = templateResource;
|
|
2975
|
-
if (
|
|
2976
|
-
if (!this.externalTemplateToComponentsMap.has(
|
|
2977
|
-
this.externalTemplateToComponentsMap.set(
|
|
2973
|
+
const { path: path2 } = templateResource;
|
|
2974
|
+
if (path2 !== null) {
|
|
2975
|
+
if (!this.externalTemplateToComponentsMap.has(path2)) {
|
|
2976
|
+
this.externalTemplateToComponentsMap.set(path2, /* @__PURE__ */ new Set());
|
|
2978
2977
|
}
|
|
2979
|
-
this.externalTemplateToComponentsMap.get(
|
|
2978
|
+
this.externalTemplateToComponentsMap.get(path2).add(component);
|
|
2980
2979
|
}
|
|
2981
2980
|
this.componentToTemplateMap.set(component, templateResource);
|
|
2982
2981
|
}
|
|
@@ -2987,15 +2986,15 @@ var ResourceRegistry = class {
|
|
|
2987
2986
|
return this.componentToTemplateMap.get(component);
|
|
2988
2987
|
}
|
|
2989
2988
|
registerStyle(styleResource, component) {
|
|
2990
|
-
const { path } = styleResource;
|
|
2989
|
+
const { path: path2 } = styleResource;
|
|
2991
2990
|
if (!this.componentToStylesMap.has(component)) {
|
|
2992
2991
|
this.componentToStylesMap.set(component, /* @__PURE__ */ new Set());
|
|
2993
2992
|
}
|
|
2994
|
-
if (
|
|
2995
|
-
if (!this.externalStyleToComponentsMap.has(
|
|
2996
|
-
this.externalStyleToComponentsMap.set(
|
|
2993
|
+
if (path2 !== null) {
|
|
2994
|
+
if (!this.externalStyleToComponentsMap.has(path2)) {
|
|
2995
|
+
this.externalStyleToComponentsMap.set(path2, /* @__PURE__ */ new Set());
|
|
2997
2996
|
}
|
|
2998
|
-
this.externalStyleToComponentsMap.get(
|
|
2997
|
+
this.externalStyleToComponentsMap.get(path2).add(component);
|
|
2999
2998
|
}
|
|
3000
2999
|
this.componentToStylesMap.get(component).add(styleResource);
|
|
3001
3000
|
}
|
|
@@ -3500,6 +3499,33 @@ function removeIdentifierReferences(node, names) {
|
|
|
3500
3499
|
return result.transformed[0];
|
|
3501
3500
|
}
|
|
3502
3501
|
|
|
3502
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
|
|
3503
|
+
import { literal as literal2, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
3504
|
+
import * as path from "path";
|
|
3505
|
+
function extractClassDebugInfo(clazz, reflection, rootDirs, forbidOrphanRendering) {
|
|
3506
|
+
if (!reflection.isClass(clazz)) {
|
|
3507
|
+
return null;
|
|
3508
|
+
}
|
|
3509
|
+
const srcFile = clazz.getSourceFile();
|
|
3510
|
+
const srcFileMaybeRelativePath = computeRelativePathIfPossible(srcFile.fileName, rootDirs);
|
|
3511
|
+
return {
|
|
3512
|
+
type: new WrappedNodeExpr4(clazz.name),
|
|
3513
|
+
className: literal2(clazz.name.getText()),
|
|
3514
|
+
filePath: srcFileMaybeRelativePath ? literal2(srcFileMaybeRelativePath) : null,
|
|
3515
|
+
lineNumber: literal2(srcFile.getLineAndCharacterOfPosition(clazz.name.pos).line + 1),
|
|
3516
|
+
forbidOrphanRendering
|
|
3517
|
+
};
|
|
3518
|
+
}
|
|
3519
|
+
function computeRelativePathIfPossible(filePath, rootDirs) {
|
|
3520
|
+
for (const rootDir of rootDirs) {
|
|
3521
|
+
const rel = path.relative(rootDir, filePath);
|
|
3522
|
+
if (!rel.startsWith("..")) {
|
|
3523
|
+
return rel;
|
|
3524
|
+
}
|
|
3525
|
+
}
|
|
3526
|
+
return null;
|
|
3527
|
+
}
|
|
3528
|
+
|
|
3503
3529
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
3504
3530
|
var NoopReferencesRegistry = class {
|
|
3505
3531
|
add(source, ...references) {
|
|
@@ -3555,7 +3581,7 @@ function compileInputTransformFields(inputs) {
|
|
|
3555
3581
|
}
|
|
3556
3582
|
|
|
3557
3583
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
3558
|
-
import { compileClassMetadata as compileClassMetadata3, compileComponentClassMetadata, 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 as ViewEncapsulation2, WrappedNodeExpr as
|
|
3584
|
+
import { compileClassDebugInfo, compileClassMetadata as compileClassMetadata3, compileComponentClassMetadata, 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 as ViewEncapsulation2, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
3559
3585
|
import ts24 from "typescript";
|
|
3560
3586
|
|
|
3561
3587
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
@@ -3605,11 +3631,11 @@ var SemanticDepGraph = class {
|
|
|
3605
3631
|
}
|
|
3606
3632
|
return previousSymbol;
|
|
3607
3633
|
}
|
|
3608
|
-
getSymbolByName(
|
|
3609
|
-
if (!this.files.has(
|
|
3634
|
+
getSymbolByName(path2, identifier) {
|
|
3635
|
+
if (!this.files.has(path2)) {
|
|
3610
3636
|
return null;
|
|
3611
3637
|
}
|
|
3612
|
-
const file = this.files.get(
|
|
3638
|
+
const file = this.files.get(path2);
|
|
3613
3639
|
if (!file.has(identifier)) {
|
|
3614
3640
|
return null;
|
|
3615
3641
|
}
|
|
@@ -4334,10 +4360,10 @@ var TypeCheckScopeRegistry = class {
|
|
|
4334
4360
|
};
|
|
4335
4361
|
|
|
4336
4362
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4337
|
-
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as
|
|
4363
|
+
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
4338
4364
|
|
|
4339
4365
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4340
|
-
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as
|
|
4366
|
+
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
4341
4367
|
import ts20 from "typescript";
|
|
4342
4368
|
var EMPTY_OBJECT = {};
|
|
4343
4369
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -4395,7 +4421,7 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
|
|
|
4395
4421
|
}
|
|
4396
4422
|
}
|
|
4397
4423
|
const host = extractHostBindings(decoratedElements, evaluator, coreModule, directive);
|
|
4398
|
-
const providers = directive.has("providers") ? new
|
|
4424
|
+
const providers = directive.has("providers") ? new WrappedNodeExpr5(annotateForClosureCompiler ? wrapFunctionExpressionsInParens(directive.get("providers")) : directive.get("providers")) : null;
|
|
4399
4425
|
const usesOnChanges = members.some((member) => !member.isStatic && member.kind === ClassMemberKind.Method && member.name === "ngOnChanges");
|
|
4400
4426
|
let exportAs = null;
|
|
4401
4427
|
if (directive.has("exportAs")) {
|
|
@@ -4479,7 +4505,7 @@ function extractQueryMetadata(exprNode, name, args, propertyName, reflector, eva
|
|
|
4479
4505
|
let isStatic = false;
|
|
4480
4506
|
let predicate = null;
|
|
4481
4507
|
if (arg instanceof Reference || arg instanceof DynamicValue) {
|
|
4482
|
-
predicate = createMayBeForwardRefExpression(new
|
|
4508
|
+
predicate = createMayBeForwardRefExpression(new WrappedNodeExpr5(node), forwardReferenceTarget !== null ? 2 : 0);
|
|
4483
4509
|
} else if (typeof arg === "string") {
|
|
4484
4510
|
predicate = [arg];
|
|
4485
4511
|
} else if (isStringArrayOrDie(arg, `@${name} predicate`, node)) {
|
|
@@ -4497,7 +4523,7 @@ function extractQueryMetadata(exprNode, name, args, propertyName, reflector, eva
|
|
|
4497
4523
|
}
|
|
4498
4524
|
const options = reflectObjectLiteral(optionsExpr);
|
|
4499
4525
|
if (options.has("read")) {
|
|
4500
|
-
read = new
|
|
4526
|
+
read = new WrappedNodeExpr5(options.get("read"));
|
|
4501
4527
|
}
|
|
4502
4528
|
if (options.has("descendants")) {
|
|
4503
4529
|
const descendantsExpr = options.get("descendants");
|
|
@@ -4860,7 +4886,7 @@ function evaluateHostExpressionBindings(hostExpr, evaluator) {
|
|
|
4860
4886
|
if (typeof value == "string") {
|
|
4861
4887
|
hostMetadata[key] = value;
|
|
4862
4888
|
} else if (value instanceof DynamicValue) {
|
|
4863
|
-
hostMetadata[key] = new
|
|
4889
|
+
hostMetadata[key] = new WrappedNodeExpr5(value.node);
|
|
4864
4890
|
} else {
|
|
4865
4891
|
throw createValueHasWrongTypeError(hostExpr, value, `Decorator host metadata must be a string -> string object, but found unparseable value`);
|
|
4866
4892
|
}
|
|
@@ -4921,7 +4947,7 @@ function toR3InputMetadata(mapping) {
|
|
|
4921
4947
|
classPropertyName: mapping.classPropertyName,
|
|
4922
4948
|
bindingPropertyName: mapping.bindingPropertyName,
|
|
4923
4949
|
required: mapping.required,
|
|
4924
|
-
transformFunction: mapping.transform !== null ? new
|
|
4950
|
+
transformFunction: mapping.transform !== null ? new WrappedNodeExpr5(mapping.transform.node) : null
|
|
4925
4951
|
};
|
|
4926
4952
|
}
|
|
4927
4953
|
|
|
@@ -5129,7 +5155,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
5129
5155
|
symbol.baseClass = this.semanticDepGraphUpdater.getSymbol(analysis.baseClass.node);
|
|
5130
5156
|
}
|
|
5131
5157
|
const diagnostics = [];
|
|
5132
|
-
if (analysis.providersRequiringFactory !== null && analysis.meta.providers instanceof
|
|
5158
|
+
if (analysis.providersRequiringFactory !== null && analysis.meta.providers instanceof WrappedNodeExpr6) {
|
|
5133
5159
|
const providerDiagnostics = getProviderDiagnostics(analysis.providersRequiringFactory, analysis.meta.providers.node, this.injectableRegistry);
|
|
5134
5160
|
diagnostics.push(...providerDiagnostics);
|
|
5135
5161
|
}
|
|
@@ -5178,7 +5204,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
5178
5204
|
};
|
|
5179
5205
|
|
|
5180
5206
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5181
|
-
import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, ReturnStatement, WrappedNodeExpr as
|
|
5207
|
+
import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
|
|
5182
5208
|
import ts22 from "typescript";
|
|
5183
5209
|
|
|
5184
5210
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
@@ -5416,7 +5442,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
5416
5442
|
if (ngModule.has("id")) {
|
|
5417
5443
|
const idExpr = ngModule.get("id");
|
|
5418
5444
|
if (!isModuleIdExpression(idExpr)) {
|
|
5419
|
-
id = new
|
|
5445
|
+
id = new WrappedNodeExpr7(idExpr);
|
|
5420
5446
|
} else {
|
|
5421
5447
|
const diag = makeDiagnostic(ErrorCode.WARN_NGMODULE_ID_UNNECESSARY, idExpr, `Using 'module.id' for NgModule.id is a common anti-pattern that is ignored by the Angular compiler.`);
|
|
5422
5448
|
diag.category = ts22.DiagnosticCategory.Warning;
|
|
@@ -5445,10 +5471,10 @@ var NgModuleDecoratorHandler = class {
|
|
|
5445
5471
|
ngModuleMetadata = {
|
|
5446
5472
|
kind: R3NgModuleMetadataKind.Local,
|
|
5447
5473
|
type,
|
|
5448
|
-
bootstrapExpression: rawBootstrap ? new
|
|
5449
|
-
declarationsExpression: rawDeclarations ? new
|
|
5450
|
-
exportsExpression: rawExports ? new
|
|
5451
|
-
importsExpression: rawImports ? new
|
|
5474
|
+
bootstrapExpression: rawBootstrap ? new WrappedNodeExpr7(rawBootstrap) : null,
|
|
5475
|
+
declarationsExpression: rawDeclarations ? new WrappedNodeExpr7(rawDeclarations) : null,
|
|
5476
|
+
exportsExpression: rawExports ? new WrappedNodeExpr7(rawExports) : null,
|
|
5477
|
+
importsExpression: rawImports ? new WrappedNodeExpr7(rawImports) : null,
|
|
5452
5478
|
id,
|
|
5453
5479
|
selectorScopeMode: R3SelectorScopeMode.SideEffect,
|
|
5454
5480
|
schemas: []
|
|
@@ -5472,7 +5498,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
5472
5498
|
const rawProviders = ngModule.has("providers") ? ngModule.get("providers") : null;
|
|
5473
5499
|
let wrappedProviders = null;
|
|
5474
5500
|
if (rawProviders !== null && (!ts22.isArrayLiteralExpression(rawProviders) || rawProviders.elements.length > 0)) {
|
|
5475
|
-
wrappedProviders = new
|
|
5501
|
+
wrappedProviders = new WrappedNodeExpr7(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(rawProviders) : rawProviders);
|
|
5476
5502
|
}
|
|
5477
5503
|
const topLevelImports = [];
|
|
5478
5504
|
if (this.compilationMode !== CompilationMode.LOCAL && ngModule.has("imports")) {
|
|
@@ -5514,10 +5540,10 @@ var NgModuleDecoratorHandler = class {
|
|
|
5514
5540
|
}
|
|
5515
5541
|
if (ts22.isArrayLiteralExpression(exp)) {
|
|
5516
5542
|
if (exp.elements) {
|
|
5517
|
-
injectorMetadata.imports.push(...exp.elements.map((n) => new
|
|
5543
|
+
injectorMetadata.imports.push(...exp.elements.map((n) => new WrappedNodeExpr7(n)));
|
|
5518
5544
|
}
|
|
5519
5545
|
} else {
|
|
5520
|
-
injectorMetadata.imports.push(new
|
|
5546
|
+
injectorMetadata.imports.push(new WrappedNodeExpr7(exp));
|
|
5521
5547
|
}
|
|
5522
5548
|
}
|
|
5523
5549
|
}
|
|
@@ -5590,7 +5616,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
5590
5616
|
};
|
|
5591
5617
|
for (const topLevelImport of analysis.imports) {
|
|
5592
5618
|
if (topLevelImport.hasModuleWithProviders) {
|
|
5593
|
-
data.injectorImports.push(new
|
|
5619
|
+
data.injectorImports.push(new WrappedNodeExpr7(topLevelImport.expression));
|
|
5594
5620
|
continue;
|
|
5595
5621
|
}
|
|
5596
5622
|
const refsToEmit = [];
|
|
@@ -5624,7 +5650,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
5624
5650
|
refsToEmit.push(ref);
|
|
5625
5651
|
}
|
|
5626
5652
|
if (refsToEmit.length === topLevelImport.resolvedReferences.length) {
|
|
5627
|
-
data.injectorImports.push(new
|
|
5653
|
+
data.injectorImports.push(new WrappedNodeExpr7(topLevelImport.expression));
|
|
5628
5654
|
} else {
|
|
5629
5655
|
const context = node.getSourceFile();
|
|
5630
5656
|
for (const ref of refsToEmit) {
|
|
@@ -5820,9 +5846,9 @@ function isSyntheticReference(ref) {
|
|
|
5820
5846
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
5821
5847
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
5822
5848
|
const name = ref.debugName || "(unknown)";
|
|
5823
|
-
const
|
|
5849
|
+
const path2 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
5824
5850
|
const message = `The ${type} '${name}' is used in the template but importing it would create a cycle: `;
|
|
5825
|
-
return makeRelatedInformation(ref.node, message +
|
|
5851
|
+
return makeRelatedInformation(ref.node, message + path2);
|
|
5826
5852
|
}
|
|
5827
5853
|
function checkCustomElementSelectorForErrors(selector) {
|
|
5828
5854
|
if (selector.includes(".") || selector.includes("[") && selector.includes("]")) {
|
|
@@ -6313,7 +6339,7 @@ var EMPTY_ARRAY2 = [];
|
|
|
6313
6339
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
6314
6340
|
var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
|
|
6315
6341
|
var ComponentDecoratorHandler = class {
|
|
6316
|
-
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, includeClassMetadata, compilationMode, deferredSymbolTracker) {
|
|
6342
|
+
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, includeClassMetadata, compilationMode, deferredSymbolTracker, forbidOrphanRendering) {
|
|
6317
6343
|
this.reflector = reflector;
|
|
6318
6344
|
this.evaluator = evaluator;
|
|
6319
6345
|
this.metaRegistry = metaRegistry;
|
|
@@ -6346,6 +6372,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6346
6372
|
this.includeClassMetadata = includeClassMetadata;
|
|
6347
6373
|
this.compilationMode = compilationMode;
|
|
6348
6374
|
this.deferredSymbolTracker = deferredSymbolTracker;
|
|
6375
|
+
this.forbidOrphanRendering = forbidOrphanRendering;
|
|
6349
6376
|
this.literalCache = /* @__PURE__ */ new Map();
|
|
6350
6377
|
this.elementSchemaRegistry = new DomElementSchemaRegistry();
|
|
6351
6378
|
this.preanalyzeTemplateCache = /* @__PURE__ */ new Map();
|
|
@@ -6431,13 +6458,13 @@ var ComponentDecoratorHandler = class {
|
|
|
6431
6458
|
if (this.compilationMode !== CompilationMode.LOCAL) {
|
|
6432
6459
|
changeDetection = resolveEnumValue(this.evaluator, component, "changeDetection", "ChangeDetectionStrategy");
|
|
6433
6460
|
} else if (component.has("changeDetection")) {
|
|
6434
|
-
changeDetection = new
|
|
6461
|
+
changeDetection = new WrappedNodeExpr8(component.get("changeDetection"));
|
|
6435
6462
|
}
|
|
6436
6463
|
let animations = null;
|
|
6437
6464
|
let animationTriggerNames = null;
|
|
6438
6465
|
if (component.has("animations")) {
|
|
6439
6466
|
const animationExpression = component.get("animations");
|
|
6440
|
-
animations = new
|
|
6467
|
+
animations = new WrappedNodeExpr8(animationExpression);
|
|
6441
6468
|
const animationsValue = this.evaluator.evaluate(animationExpression, animationTriggerResolver);
|
|
6442
6469
|
animationTriggerNames = { includesDynamicAnimations: false, staticTriggerNames: [] };
|
|
6443
6470
|
collectAnimationNames(animationsValue, animationTriggerNames);
|
|
@@ -6456,7 +6483,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6456
6483
|
if (component.has("viewProviders")) {
|
|
6457
6484
|
const viewProviders = component.get("viewProviders");
|
|
6458
6485
|
viewProvidersRequiringFactory = resolveProvidersRequiringFactory(viewProviders, this.reflector, this.evaluator);
|
|
6459
|
-
wrappedViewProviders = new
|
|
6486
|
+
wrappedViewProviders = new WrappedNodeExpr8(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(viewProviders) : viewProviders);
|
|
6460
6487
|
}
|
|
6461
6488
|
if (component.has("providers")) {
|
|
6462
6489
|
providersRequiringFactory = resolveProvidersRequiringFactory(component.get("providers"), this.reflector, this.evaluator);
|
|
@@ -6592,10 +6619,16 @@ var ComponentDecoratorHandler = class {
|
|
|
6592
6619
|
viewProviders: wrappedViewProviders,
|
|
6593
6620
|
i18nUseExternalIds: this.i18nUseExternalIds,
|
|
6594
6621
|
relativeContextFilePath,
|
|
6595
|
-
rawImports: rawImports !== null ? new
|
|
6622
|
+
rawImports: rawImports !== null ? new WrappedNodeExpr8(rawImports) : void 0
|
|
6596
6623
|
},
|
|
6597
6624
|
typeCheckMeta: extractDirectiveTypeCheckMeta(node, inputs, this.reflector),
|
|
6598
6625
|
classMetadata: this.includeClassMetadata ? extractClassMetadata(node, this.reflector, this.isCore, this.annotateForClosureCompiler, (dec) => transformDecoratorResources(dec, component, styles, template)) : null,
|
|
6626
|
+
classDebugInfo: extractClassDebugInfo(
|
|
6627
|
+
node,
|
|
6628
|
+
this.reflector,
|
|
6629
|
+
this.rootDirs,
|
|
6630
|
+
this.forbidOrphanRendering
|
|
6631
|
+
),
|
|
6599
6632
|
template,
|
|
6600
6633
|
providersRequiringFactory,
|
|
6601
6634
|
viewProvidersRequiringFactory,
|
|
@@ -6875,11 +6908,11 @@ var ComponentDecoratorHandler = class {
|
|
|
6875
6908
|
const standaloneDiagnostics = validateStandaloneImports(analysis.resolvedImports, analysis.rawImports, this.metaReader, this.scopeReader);
|
|
6876
6909
|
diagnostics.push(...standaloneDiagnostics);
|
|
6877
6910
|
}
|
|
6878
|
-
if (analysis.providersRequiringFactory !== null && analysis.meta.providers instanceof
|
|
6911
|
+
if (analysis.providersRequiringFactory !== null && analysis.meta.providers instanceof WrappedNodeExpr8) {
|
|
6879
6912
|
const providerDiagnostics = getProviderDiagnostics(analysis.providersRequiringFactory, analysis.meta.providers.node, this.injectableRegistry);
|
|
6880
6913
|
diagnostics.push(...providerDiagnostics);
|
|
6881
6914
|
}
|
|
6882
|
-
if (analysis.viewProvidersRequiringFactory !== null && analysis.meta.viewProviders instanceof
|
|
6915
|
+
if (analysis.viewProvidersRequiringFactory !== null && analysis.meta.viewProviders instanceof WrappedNodeExpr8) {
|
|
6883
6916
|
const viewProviderDiagnostics = getProviderDiagnostics(analysis.viewProvidersRequiringFactory, analysis.meta.viewProviders.node, this.injectableRegistry);
|
|
6884
6917
|
diagnostics.push(...viewProviderDiagnostics);
|
|
6885
6918
|
}
|
|
@@ -6950,13 +6983,14 @@ var ComponentDecoratorHandler = class {
|
|
|
6950
6983
|
if (analysis.classMetadata) {
|
|
6951
6984
|
const deferrableSymbols = new Set(deferrableTypes.keys());
|
|
6952
6985
|
const rewrittenDecoratorsNode = removeIdentifierReferences(analysis.classMetadata.decorators.node, deferrableSymbols);
|
|
6953
|
-
analysis.classMetadata.decorators = new
|
|
6986
|
+
analysis.classMetadata.decorators = new WrappedNodeExpr8(rewrittenDecoratorsNode);
|
|
6954
6987
|
}
|
|
6955
6988
|
const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
|
|
6956
6989
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
6957
6990
|
const classMetadata = analysis.classMetadata !== null ? compileComponentClassMetadata(analysis.classMetadata, deferrableTypes).toStmt() : null;
|
|
6991
|
+
const debugInfo = analysis.classDebugInfo !== null ? compileClassDebugInfo(analysis.classDebugInfo).toStmt() : null;
|
|
6958
6992
|
const deferrableImports = this.deferredSymbolTracker.getDeferrableImportDecls();
|
|
6959
|
-
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports);
|
|
6993
|
+
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports, debugInfo);
|
|
6960
6994
|
}
|
|
6961
6995
|
compilePartial(node, analysis, resolution) {
|
|
6962
6996
|
if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
|
|
@@ -6966,7 +7000,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6966
7000
|
content: analysis.template.content,
|
|
6967
7001
|
sourceUrl: analysis.template.declaration.resolvedTemplateUrl,
|
|
6968
7002
|
isInline: analysis.template.declaration.isInline,
|
|
6969
|
-
inlineTemplateLiteralExpression: analysis.template.sourceMapping.type === "direct" ? new
|
|
7003
|
+
inlineTemplateLiteralExpression: analysis.template.sourceMapping.type === "direct" ? new WrappedNodeExpr8(analysis.template.sourceMapping.node) : null
|
|
6970
7004
|
};
|
|
6971
7005
|
const meta = { ...analysis.meta, ...resolution };
|
|
6972
7006
|
const fac = compileDeclareFactory(toFactoryMetadata(meta, FactoryTarget3.Component));
|
|
@@ -6990,7 +7024,8 @@ var ComponentDecoratorHandler = class {
|
|
|
6990
7024
|
const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
|
|
6991
7025
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
6992
7026
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata3(analysis.classMetadata).toStmt() : null;
|
|
6993
|
-
|
|
7027
|
+
const debugInfo = analysis.classDebugInfo !== null ? compileClassDebugInfo(analysis.classDebugInfo).toStmt() : null;
|
|
7028
|
+
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, null, debugInfo);
|
|
6994
7029
|
}
|
|
6995
7030
|
_checkForCyclicImport(importedFile, expr, origin) {
|
|
6996
7031
|
const imported = resolveImportedFile(this.moduleResolver, importedFile, expr, origin);
|
|
@@ -7109,7 +7144,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
|
|
|
7109
7144
|
}
|
|
7110
7145
|
|
|
7111
7146
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
7112
|
-
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as
|
|
7147
|
+
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
|
|
7113
7148
|
import ts25 from "typescript";
|
|
7114
7149
|
var InjectableDecoratorHandler = class {
|
|
7115
7150
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, includeClassMetadata, compilationMode, errorOnDuplicateProv = true) {
|
|
@@ -7246,7 +7281,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
|
|
|
7246
7281
|
result.useClass = getProviderExpression(meta.get("useClass"), reflector);
|
|
7247
7282
|
result.deps = deps;
|
|
7248
7283
|
} else if (meta.has("useFactory")) {
|
|
7249
|
-
result.useFactory = new
|
|
7284
|
+
result.useFactory = new WrappedNodeExpr9(meta.get("useFactory"));
|
|
7250
7285
|
result.deps = deps;
|
|
7251
7286
|
}
|
|
7252
7287
|
return result;
|
|
@@ -7256,7 +7291,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
|
|
|
7256
7291
|
}
|
|
7257
7292
|
function getProviderExpression(expression, reflector) {
|
|
7258
7293
|
const forwardRefValue = tryUnwrapForwardRef(expression, reflector);
|
|
7259
|
-
return createMayBeForwardRefExpression2(new
|
|
7294
|
+
return createMayBeForwardRefExpression2(new WrappedNodeExpr9(forwardRefValue != null ? forwardRefValue : expression), forwardRefValue !== null ? 2 : 0);
|
|
7260
7295
|
}
|
|
7261
7296
|
function extractInjectableCtorDeps(clazz, meta, decorator, reflector, isCore, strictCtorDeps, compilationMode) {
|
|
7262
7297
|
if (decorator.args === null) {
|
|
@@ -7285,7 +7320,7 @@ function requiresValidCtor(meta) {
|
|
|
7285
7320
|
}
|
|
7286
7321
|
function getDep(dep, reflector) {
|
|
7287
7322
|
const meta = {
|
|
7288
|
-
token: new
|
|
7323
|
+
token: new WrappedNodeExpr9(dep),
|
|
7289
7324
|
attributeNameType: null,
|
|
7290
7325
|
host: false,
|
|
7291
7326
|
optional: false,
|
|
@@ -7300,7 +7335,7 @@ function getDep(dep, reflector) {
|
|
|
7300
7335
|
switch (source.name) {
|
|
7301
7336
|
case "Inject":
|
|
7302
7337
|
if (token !== void 0) {
|
|
7303
|
-
meta.token = new
|
|
7338
|
+
meta.token = new WrappedNodeExpr9(token);
|
|
7304
7339
|
}
|
|
7305
7340
|
break;
|
|
7306
7341
|
case "Optional":
|
|
@@ -7327,7 +7362,7 @@ function getDep(dep, reflector) {
|
|
|
7327
7362
|
isDecorator = maybeUpdateDecorator(el.expression, reflector, token);
|
|
7328
7363
|
}
|
|
7329
7364
|
if (!isDecorator) {
|
|
7330
|
-
meta.token = new
|
|
7365
|
+
meta.token = new WrappedNodeExpr9(el);
|
|
7331
7366
|
}
|
|
7332
7367
|
});
|
|
7333
7368
|
}
|
|
@@ -7580,4 +7615,4 @@ export {
|
|
|
7580
7615
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7581
7616
|
* found in the LICENSE file at https://angular.io/license
|
|
7582
7617
|
*/
|
|
7583
|
-
//# sourceMappingURL=chunk-
|
|
7618
|
+
//# sourceMappingURL=chunk-LPMZPYYV.js.map
|