@angular/compiler-cli 17.0.0-next.5 → 17.0.0-next.7
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-7QICZXP3.js → chunk-3NXCUQ44.js} +2 -2
- package/bundles/{chunk-7QTF7U4J.js → chunk-C4TR4DIO.js} +2 -2
- package/bundles/{chunk-YWV5CDS7.js → chunk-I3FLXBLP.js} +67 -33
- package/bundles/chunk-I3FLXBLP.js.map +6 -0
- package/bundles/{chunk-TX6LIB73.js → chunk-PAPUMJUA.js} +2 -1
- package/bundles/{chunk-TX6LIB73.js.map → chunk-PAPUMJUA.js.map} +1 -1
- package/bundles/{chunk-RVITQ7TS.js → chunk-PBDWVP2J.js} +106 -47
- package/bundles/chunk-PBDWVP2J.js.map +6 -0
- package/bundles/{chunk-KV7WQARZ.js → chunk-PYIYPY3X.js} +38 -15
- package/bundles/chunk-PYIYPY3X.js.map +6 -0
- package/bundles/{chunk-OADA63HC.js → chunk-W3AMRN7J.js} +2 -2
- package/bundles/index.js +6 -6
- package/bundles/linker/babel/index.js +3 -3
- package/bundles/linker/index.js +3 -3
- package/bundles/private/migrations.js +3 -3
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +5 -5
- package/bundles/src/bin/ngc.js +5 -5
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/partial_component_linker_1.d.ts +3 -1
- package/linker/src/file_linker/partial_linkers/partial_linker.d.ts +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -0
- package/package.json +2 -2
- package/src/ngtsc/annotations/common/src/evaluation.d.ts +8 -0
- package/src/ngtsc/annotations/component/src/handler.d.ts +3 -2
- package/src/ngtsc/annotations/component/src/resources.d.ts +0 -1
- package/src/ngtsc/core/src/compiler.d.ts +0 -1
- package/src/ngtsc/diagnostics/src/error_code.d.ts +14 -1
- package/src/ngtsc/docs/src/class_extractor.d.ts +3 -1
- package/src/ngtsc/docs/src/entities.d.ts +2 -0
- package/src/ngtsc/docs/src/function_extractor.d.ts +1 -1
- package/src/ngtsc/imports/src/deferred_symbol_tracker.d.ts +1 -1
- package/src/ngtsc/typecheck/src/oob.d.ts +6 -1
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +8 -4
- package/bundles/chunk-KV7WQARZ.js.map +0 -6
- package/bundles/chunk-RVITQ7TS.js.map +0 -6
- package/bundles/chunk-YWV5CDS7.js.map +0 -6
- /package/bundles/{chunk-7QICZXP3.js.map → chunk-3NXCUQ44.js.map} +0 -0
- /package/bundles/{chunk-7QTF7U4J.js.map → chunk-C4TR4DIO.js.map} +0 -0
- /package/bundles/{chunk-OADA63HC.js.map → chunk-W3AMRN7J.js.map} +0 -0
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
aliasTransformFactory,
|
|
37
37
|
declarationTransformFactory,
|
|
38
38
|
ivyTransformFactory
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-I3FLXBLP.js";
|
|
40
40
|
import {
|
|
41
41
|
ImportManager,
|
|
42
42
|
translateExpression,
|
|
43
43
|
translateType
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3NXCUQ44.js";
|
|
45
45
|
import {
|
|
46
46
|
AbsoluteModuleStrategy,
|
|
47
47
|
AliasStrategy,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
relativePathBetween,
|
|
84
84
|
replaceTsWithNgInErrors,
|
|
85
85
|
toUnredirectedSourceFile
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-PAPUMJUA.js";
|
|
87
87
|
import {
|
|
88
88
|
ActivePerfRecorder,
|
|
89
89
|
DelegatingPerfRecorder,
|
|
@@ -531,15 +531,14 @@ import ts7 from "typescript";
|
|
|
531
531
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
532
532
|
import ts6 from "typescript";
|
|
533
533
|
var ClassExtractor = class {
|
|
534
|
-
constructor(declaration,
|
|
534
|
+
constructor(declaration, typeChecker) {
|
|
535
535
|
this.declaration = declaration;
|
|
536
|
-
this.reference = reference;
|
|
537
536
|
this.typeChecker = typeChecker;
|
|
538
537
|
}
|
|
539
538
|
extract() {
|
|
540
539
|
return {
|
|
541
540
|
name: this.declaration.name.text,
|
|
542
|
-
entryType: EntryType.UndecoratedClass,
|
|
541
|
+
entryType: ts6.isInterfaceDeclaration(this.declaration) ? EntryType.Interface : EntryType.UndecoratedClass,
|
|
543
542
|
members: this.extractAllClassMembers(this.declaration),
|
|
544
543
|
description: extractJsDocDescription(this.declaration),
|
|
545
544
|
jsdocTags: extractJsDocTags(this.declaration),
|
|
@@ -559,9 +558,9 @@ var ClassExtractor = class {
|
|
|
559
558
|
return members;
|
|
560
559
|
}
|
|
561
560
|
extractClassMember(memberDeclaration) {
|
|
562
|
-
if (
|
|
561
|
+
if (this.isMethod(memberDeclaration)) {
|
|
563
562
|
return this.extractMethod(memberDeclaration);
|
|
564
|
-
} else if (
|
|
563
|
+
} else if (this.isProperty(memberDeclaration)) {
|
|
565
564
|
return this.extractClassProperty(memberDeclaration);
|
|
566
565
|
} else if (ts6.isAccessor(memberDeclaration)) {
|
|
567
566
|
return this.extractGetterSetter(memberDeclaration);
|
|
@@ -626,12 +625,19 @@ var ClassExtractor = class {
|
|
|
626
625
|
return !member.name || !this.isDocumentableMember(member) || !!((_a = member.modifiers) == null ? void 0 : _a.some((mod) => mod.kind === ts6.SyntaxKind.PrivateKeyword));
|
|
627
626
|
}
|
|
628
627
|
isDocumentableMember(member) {
|
|
629
|
-
return
|
|
628
|
+
return this.isMethod(member) || this.isProperty(member) || ts6.isAccessor(member);
|
|
629
|
+
}
|
|
630
|
+
isProperty(member) {
|
|
631
|
+
return ts6.isPropertyDeclaration(member) || ts6.isPropertySignature(member);
|
|
632
|
+
}
|
|
633
|
+
isMethod(member) {
|
|
634
|
+
return ts6.isMethodDeclaration(member) || ts6.isMethodSignature(member);
|
|
630
635
|
}
|
|
631
636
|
};
|
|
632
637
|
var DirectiveExtractor = class extends ClassExtractor {
|
|
633
638
|
constructor(declaration, reference, metadata, checker) {
|
|
634
|
-
super(declaration,
|
|
639
|
+
super(declaration, checker);
|
|
640
|
+
this.reference = reference;
|
|
635
641
|
this.metadata = metadata;
|
|
636
642
|
}
|
|
637
643
|
extract() {
|
|
@@ -671,7 +677,8 @@ var DirectiveExtractor = class extends ClassExtractor {
|
|
|
671
677
|
};
|
|
672
678
|
var PipeExtractor = class extends ClassExtractor {
|
|
673
679
|
constructor(declaration, reference, metadata, typeChecker) {
|
|
674
|
-
super(declaration,
|
|
680
|
+
super(declaration, typeChecker);
|
|
681
|
+
this.reference = reference;
|
|
675
682
|
this.metadata = metadata;
|
|
676
683
|
}
|
|
677
684
|
extract() {
|
|
@@ -685,7 +692,8 @@ var PipeExtractor = class extends ClassExtractor {
|
|
|
685
692
|
};
|
|
686
693
|
var NgModuleExtractor = class extends ClassExtractor {
|
|
687
694
|
constructor(declaration, reference, metadata, typeChecker) {
|
|
688
|
-
super(declaration,
|
|
695
|
+
super(declaration, typeChecker);
|
|
696
|
+
this.reference = reference;
|
|
689
697
|
this.metadata = metadata;
|
|
690
698
|
}
|
|
691
699
|
extract() {
|
|
@@ -708,10 +716,14 @@ function extractClass(classDeclaration, metadataReader, typeChecker) {
|
|
|
708
716
|
} else if (ngModuleMetadata) {
|
|
709
717
|
extractor = new NgModuleExtractor(classDeclaration, ref, ngModuleMetadata, typeChecker);
|
|
710
718
|
} else {
|
|
711
|
-
extractor = new ClassExtractor(classDeclaration,
|
|
719
|
+
extractor = new ClassExtractor(classDeclaration, typeChecker);
|
|
712
720
|
}
|
|
713
721
|
return extractor.extract();
|
|
714
722
|
}
|
|
723
|
+
function extractInterface(declaration, typeChecker) {
|
|
724
|
+
const extractor = new ClassExtractor(declaration, typeChecker);
|
|
725
|
+
return extractor.extract();
|
|
726
|
+
}
|
|
715
727
|
|
|
716
728
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
717
729
|
function extractConstant(declaration, typeChecker) {
|
|
@@ -748,6 +760,9 @@ var DocsExtractor = class {
|
|
|
748
760
|
if (isNamedClassDeclaration(node)) {
|
|
749
761
|
entry = extractClass(node, this.metadataReader, this.typeChecker);
|
|
750
762
|
}
|
|
763
|
+
if (ts7.isInterfaceDeclaration(node)) {
|
|
764
|
+
entry = extractInterface(node, this.typeChecker);
|
|
765
|
+
}
|
|
751
766
|
if (ts7.isFunctionDeclaration(node)) {
|
|
752
767
|
const functionExtractor = new FunctionExtractor(node, this.typeChecker);
|
|
753
768
|
entry = functionExtractor.extract();
|
|
@@ -3372,6 +3387,17 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
|
|
|
3372
3387
|
const message = `Cannot access '${access.name}' inside of a track expression. Only '${block.item.name}', '${block.contextVariables.$index.name}' and properties on the containing component are available to this expression.`;
|
|
3373
3388
|
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), sourceSpan, ts23.DiagnosticCategory.Error, ngErrorCode(ErrorCode.ILLEGAL_FOR_LOOP_TRACK_ACCESS), message));
|
|
3374
3389
|
}
|
|
3390
|
+
inaccessibleDeferredTriggerElement(templateId, trigger) {
|
|
3391
|
+
let message;
|
|
3392
|
+
if (trigger.reference === null) {
|
|
3393
|
+
message = `Trigger cannot find reference. Make sure that the @defer block has a @placeholder with at least one root element node.`;
|
|
3394
|
+
} else {
|
|
3395
|
+
message = `Trigger cannot find reference "${trigger.reference}".
|
|
3396
|
+
Check that an element with #${trigger.reference} exists in the same template and it's accessible from the @defer block.
|
|
3397
|
+
Deferred blocks can only access triggers in same view, a parent embedded view or the root view of the @placeholder block.`;
|
|
3398
|
+
}
|
|
3399
|
+
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), trigger.sourceSpan, ts23.DiagnosticCategory.Error, ngErrorCode(ErrorCode.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT), message));
|
|
3400
|
+
}
|
|
3375
3401
|
};
|
|
3376
3402
|
function makeInlineDiagnostic(templateId, code, node, messageText, relatedInformation) {
|
|
3377
3403
|
return {
|
|
@@ -3815,7 +3841,7 @@ var TcbGenericContextBehavior;
|
|
|
3815
3841
|
})(TcbGenericContextBehavior || (TcbGenericContextBehavior = {}));
|
|
3816
3842
|
function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecorder, genericContextBehavior) {
|
|
3817
3843
|
const tcb = new Context(env, domSchemaChecker, oobRecorder, meta.id, meta.boundTarget, meta.pipes, meta.schemas, meta.isStandalone);
|
|
3818
|
-
const scope = Scope.forNodes(tcb, null, tcb.boundTarget.target.template, null);
|
|
3844
|
+
const scope = Scope.forNodes(tcb, null, null, tcb.boundTarget.target.template, null);
|
|
3819
3845
|
const ctxRawType = env.referenceType(ref);
|
|
3820
3846
|
if (!ts27.isTypeReferenceNode(ctxRawType)) {
|
|
3821
3847
|
throw new Error(`Expected TypeReferenceNode when referencing the ctx param for ${ref.debugName}`);
|
|
@@ -3977,7 +4003,7 @@ var TcbTemplateBodyOp = class extends TcbOp {
|
|
|
3977
4003
|
if (directiveGuards.length > 0) {
|
|
3978
4004
|
guard = directiveGuards.reduce((expr, dirGuard) => ts27.factory.createBinaryExpression(expr, ts27.SyntaxKind.AmpersandAmpersandToken, dirGuard), directiveGuards.pop());
|
|
3979
4005
|
}
|
|
3980
|
-
const tmplScope = Scope.forNodes(this.tcb, this.scope, this.template, guard);
|
|
4006
|
+
const tmplScope = Scope.forNodes(this.tcb, this.scope, this.template, this.template.children, guard);
|
|
3981
4007
|
const statements = tmplScope.render();
|
|
3982
4008
|
if (statements.length === 0) {
|
|
3983
4009
|
return null;
|
|
@@ -4482,8 +4508,20 @@ var TcbIfOp = class extends TcbOp {
|
|
|
4482
4508
|
if (!branch) {
|
|
4483
4509
|
return void 0;
|
|
4484
4510
|
}
|
|
4485
|
-
|
|
4486
|
-
|
|
4511
|
+
if (branch.expression === null) {
|
|
4512
|
+
const branchScope2 = Scope.forNodes(this.tcb, this.scope, null, branch.children, null);
|
|
4513
|
+
return ts27.factory.createBlock(branchScope2.render());
|
|
4514
|
+
}
|
|
4515
|
+
let branchParentScope;
|
|
4516
|
+
if (branch.expressionAlias === null) {
|
|
4517
|
+
branchParentScope = this.scope;
|
|
4518
|
+
} else {
|
|
4519
|
+
branchParentScope = Scope.forNodes(this.tcb, this.scope, branch, [], null);
|
|
4520
|
+
branchParentScope.render().forEach((stmt) => this.scope.addStatement(stmt));
|
|
4521
|
+
}
|
|
4522
|
+
const branchScope = Scope.forNodes(this.tcb, branchParentScope, null, branch.children, null);
|
|
4523
|
+
const expression = branch.expressionAlias === null ? tcbExpression(branch.expression, this.tcb, branchScope) : branchScope.resolve(branch.expressionAlias);
|
|
4524
|
+
return ts27.factory.createIfStatement(expression, ts27.factory.createBlock(branchScope.render()), this.generateBranch(index + 1));
|
|
4487
4525
|
}
|
|
4488
4526
|
};
|
|
4489
4527
|
var TcbSwitchOp = class extends TcbOp {
|
|
@@ -4500,7 +4538,7 @@ var TcbSwitchOp = class extends TcbOp {
|
|
|
4500
4538
|
const clauses = [];
|
|
4501
4539
|
for (const current of this.block.cases) {
|
|
4502
4540
|
const breakStatement = ts27.factory.createBreakStatement();
|
|
4503
|
-
const clauseScope = Scope.forNodes(this.tcb, this.scope, current.children, null);
|
|
4541
|
+
const clauseScope = Scope.forNodes(this.tcb, this.scope, null, current.children, null);
|
|
4504
4542
|
if (current.expression === null) {
|
|
4505
4543
|
clauses.push(ts27.factory.createDefaultClause([...clauseScope.render(), breakStatement]));
|
|
4506
4544
|
} else {
|
|
@@ -4522,9 +4560,9 @@ var TcbForOfOp = class extends TcbOp {
|
|
|
4522
4560
|
return false;
|
|
4523
4561
|
}
|
|
4524
4562
|
execute() {
|
|
4525
|
-
const loopScope = Scope.forNodes(this.tcb, this.scope, this.block, null);
|
|
4563
|
+
const loopScope = Scope.forNodes(this.tcb, this.scope, this.block, this.block.children, null);
|
|
4526
4564
|
const initializer = ts27.factory.createVariableDeclarationList([ts27.factory.createVariableDeclaration(this.block.item.name)], ts27.NodeFlags.Const);
|
|
4527
|
-
const expression = tcbExpression(this.block.expression, this.tcb, loopScope);
|
|
4565
|
+
const expression = ts27.factory.createNonNullExpression(tcbExpression(this.block.expression, this.tcb, loopScope));
|
|
4528
4566
|
const trackTranslator = new TcbForLoopTrackTranslator(this.tcb, loopScope, this.block);
|
|
4529
4567
|
const trackExpression = trackTranslator.translate(this.block.trackBy);
|
|
4530
4568
|
const statements = [
|
|
@@ -4571,39 +4609,33 @@ var Scope = class {
|
|
|
4571
4609
|
this.varMap = /* @__PURE__ */ new Map();
|
|
4572
4610
|
this.statements = [];
|
|
4573
4611
|
}
|
|
4574
|
-
static forNodes(tcb,
|
|
4575
|
-
const scope = new Scope(tcb,
|
|
4576
|
-
if (
|
|
4612
|
+
static forNodes(tcb, parentScope, scopedNode, children, guard) {
|
|
4613
|
+
const scope = new Scope(tcb, parentScope, guard);
|
|
4614
|
+
if (parentScope === null && tcb.env.config.enableTemplateTypeChecker) {
|
|
4577
4615
|
scope.opQueue.push(new TcbComponentContextCompletionOp(scope));
|
|
4578
4616
|
}
|
|
4579
|
-
|
|
4580
|
-
if (blockOrNodes instanceof TmplAstTemplate2) {
|
|
4617
|
+
if (scopedNode instanceof TmplAstTemplate2) {
|
|
4581
4618
|
const varMap = /* @__PURE__ */ new Map();
|
|
4582
|
-
for (const v of
|
|
4619
|
+
for (const v of scopedNode.variables) {
|
|
4583
4620
|
if (!varMap.has(v.name)) {
|
|
4584
4621
|
varMap.set(v.name, v);
|
|
4585
4622
|
} else {
|
|
4586
4623
|
const firstDecl = varMap.get(v.name);
|
|
4587
4624
|
tcb.oobRecorder.duplicateTemplateVar(tcb.id, v, firstDecl);
|
|
4588
4625
|
}
|
|
4589
|
-
this.registerVariable(scope, v, new TcbTemplateVariableOp(tcb, scope,
|
|
4626
|
+
this.registerVariable(scope, v, new TcbTemplateVariableOp(tcb, scope, scopedNode, v));
|
|
4590
4627
|
}
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
const { expression, expressionAlias } = blockOrNodes;
|
|
4628
|
+
} else if (scopedNode instanceof TmplAstIfBlockBranch) {
|
|
4629
|
+
const { expression, expressionAlias } = scopedNode;
|
|
4594
4630
|
if (expression !== null && expressionAlias !== null) {
|
|
4595
4631
|
this.registerVariable(scope, expressionAlias, new TcbBlockVariableOp(tcb, scope, tcbExpression(expression, tcb, scope), expressionAlias));
|
|
4596
4632
|
}
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
for (const variable of Object.values(blockOrNodes.contextVariables)) {
|
|
4633
|
+
} else if (scopedNode instanceof TmplAstForLoopBlock) {
|
|
4634
|
+
this.registerVariable(scope, scopedNode.item, new TcbBlockVariableOp(tcb, scope, ts27.factory.createIdentifier(scopedNode.item.name), scopedNode.item));
|
|
4635
|
+
for (const variable of Object.values(scopedNode.contextVariables)) {
|
|
4601
4636
|
const type = ts27.factory.createKeywordTypeNode(ts27.SyntaxKind.NumberKeyword);
|
|
4602
4637
|
this.registerVariable(scope, variable, new TcbBlockImplicitVariableOp(tcb, scope, type, variable));
|
|
4603
4638
|
}
|
|
4604
|
-
children = blockOrNodes.children;
|
|
4605
|
-
} else {
|
|
4606
|
-
children = blockOrNodes;
|
|
4607
4639
|
}
|
|
4608
4640
|
for (const node of children) {
|
|
4609
4641
|
scope.appendNode(node);
|
|
@@ -4717,12 +4749,7 @@ var Scope = class {
|
|
|
4717
4749
|
}
|
|
4718
4750
|
this.checkAndAppendReferencesOfNode(node);
|
|
4719
4751
|
} else if (node instanceof TmplAstDeferredBlock) {
|
|
4720
|
-
|
|
4721
|
-
node.prefetchTriggers.when !== void 0 && this.opQueue.push(new TcbExpressionOp(this.tcb, this, node.prefetchTriggers.when.value));
|
|
4722
|
-
this.appendChildren(node);
|
|
4723
|
-
node.placeholder !== null && this.appendChildren(node.placeholder);
|
|
4724
|
-
node.loading !== null && this.appendChildren(node.loading);
|
|
4725
|
-
node.error !== null && this.appendChildren(node.error);
|
|
4752
|
+
this.appendDeferredBlock(node);
|
|
4726
4753
|
} else if (node instanceof TmplAstIfBlock) {
|
|
4727
4754
|
this.opQueue.push(new TcbIfOp(this.tcb, this, node));
|
|
4728
4755
|
} else if (node instanceof TmplAstSwitchBlock) {
|
|
@@ -4849,6 +4876,39 @@ var Scope = class {
|
|
|
4849
4876
|
}
|
|
4850
4877
|
}
|
|
4851
4878
|
}
|
|
4879
|
+
appendDeferredBlock(block) {
|
|
4880
|
+
this.appendDeferredTriggers(block, block.triggers);
|
|
4881
|
+
this.appendDeferredTriggers(block, block.prefetchTriggers);
|
|
4882
|
+
this.appendChildren(block);
|
|
4883
|
+
if (block.placeholder !== null) {
|
|
4884
|
+
this.appendChildren(block.placeholder);
|
|
4885
|
+
}
|
|
4886
|
+
if (block.loading !== null) {
|
|
4887
|
+
this.appendChildren(block.loading);
|
|
4888
|
+
}
|
|
4889
|
+
if (block.error !== null) {
|
|
4890
|
+
this.appendChildren(block.error);
|
|
4891
|
+
}
|
|
4892
|
+
}
|
|
4893
|
+
appendDeferredTriggers(block, triggers) {
|
|
4894
|
+
if (triggers.when !== void 0) {
|
|
4895
|
+
this.opQueue.push(new TcbExpressionOp(this.tcb, this, triggers.when.value));
|
|
4896
|
+
}
|
|
4897
|
+
if (triggers.hover !== void 0) {
|
|
4898
|
+
this.appendReferenceBasedDeferredTrigger(block, triggers.hover);
|
|
4899
|
+
}
|
|
4900
|
+
if (triggers.interaction !== void 0) {
|
|
4901
|
+
this.appendReferenceBasedDeferredTrigger(block, triggers.interaction);
|
|
4902
|
+
}
|
|
4903
|
+
if (triggers.viewport !== void 0) {
|
|
4904
|
+
this.appendReferenceBasedDeferredTrigger(block, triggers.viewport);
|
|
4905
|
+
}
|
|
4906
|
+
}
|
|
4907
|
+
appendReferenceBasedDeferredTrigger(block, trigger) {
|
|
4908
|
+
if (this.tcb.boundTarget.getDeferredTriggerTarget(block, trigger) === null) {
|
|
4909
|
+
this.tcb.oobRecorder.inaccessibleDeferredTriggerElement(this.tcb.id, trigger);
|
|
4910
|
+
}
|
|
4911
|
+
}
|
|
4852
4912
|
};
|
|
4853
4913
|
function tcbThisParam(name, typeArguments) {
|
|
4854
4914
|
return ts27.factory.createParameterDeclaration(
|
|
@@ -7168,7 +7228,7 @@ var NgCompiler = class {
|
|
|
7168
7228
|
}
|
|
7169
7229
|
}
|
|
7170
7230
|
constructor(adapter, options, inputProgram, programDriver, incrementalStrategy, incrementalCompilation, enableTemplateTypeChecker, usePoisonedData, livePerfRecorder) {
|
|
7171
|
-
var _a
|
|
7231
|
+
var _a;
|
|
7172
7232
|
this.adapter = adapter;
|
|
7173
7233
|
this.options = options;
|
|
7174
7234
|
this.inputProgram = inputProgram;
|
|
@@ -7182,7 +7242,6 @@ var NgCompiler = class {
|
|
|
7182
7242
|
this.nonTemplateDiagnostics = null;
|
|
7183
7243
|
this.delegatingPerfRecorder = new DelegatingPerfRecorder(this.perfRecorder);
|
|
7184
7244
|
this.enableTemplateTypeChecker = enableTemplateTypeChecker || ((_a = options["_enableTemplateTypeChecker"]) != null ? _a : false);
|
|
7185
|
-
this.enabledBlockTypes = new Set((_b = options["_enabledBlockTypes"]) != null ? _b : []);
|
|
7186
7245
|
this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options));
|
|
7187
7246
|
this.currentProgram = inputProgram;
|
|
7188
7247
|
this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
|
|
@@ -7662,7 +7721,7 @@ var NgCompiler = class {
|
|
|
7662
7721
|
throw new Error('JIT mode support ("supportJitMode" option) cannot be disabled in partial compilation mode.');
|
|
7663
7722
|
}
|
|
7664
7723
|
const handlers = [
|
|
7665
|
-
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.
|
|
7724
|
+
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, supportTestBed, compilationMode, deferredSymbolsTracker),
|
|
7666
7725
|
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
7667
7726
|
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
7668
7727
|
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
@@ -8452,4 +8511,4 @@ export {
|
|
|
8452
8511
|
* Use of this source code is governed by an MIT-style license that can be
|
|
8453
8512
|
* found in the LICENSE file at https://angular.io/license
|
|
8454
8513
|
*/
|
|
8455
|
-
//# sourceMappingURL=chunk-
|
|
8514
|
+
//# sourceMappingURL=chunk-PBDWVP2J.js.map
|