@@ -10,6 +10,7 @@ import {SecurityContext} from '../../../../../core';
1010import * as i18n from '../../../../../i18n/i18n_ast' ;
1111import * as o from '../../../../../output/output_ast' ;
1212import { ParseSourceSpan } from '../../../../../parse_util' ;
13+ import * as t from '../../../../../render3/r3_ast' ;
1314import {
1415 AnimationKind ,
1516 BindingKind ,
@@ -80,7 +81,8 @@ export type CreateOp =
8081 | AnimationOp
8182 | SourceLocationOp
8283 | ControlCreateOp
83- | BoundaryCreateOp ;
84+ | BoundaryCreateOp
85+ | BoundaryErrorCreateOp ;
8486
8587/**
8688 * An operation representing the creation of an element or container.
@@ -504,6 +506,67 @@ export function createBoundaryCreateOp(
504506 } ;
505507}
506508
509+ /**
510+ * An op that creates a boundary error block.
511+ */
512+ export interface BoundaryErrorCreateOp extends Op < CreateOp > , ConsumesSlotOpTrait {
513+ kind : OpKind . BoundaryErrorCreate ;
514+
515+ templateKind : TemplateKind ;
516+
517+ decls : number | null ;
518+
519+ vars : number | null ;
520+
521+ functionNameSuffix : string ;
522+
523+ i18nPlaceholder ?: i18n . TagPlaceholder | i18n . BlockPlaceholder ;
524+
525+ /**
526+ * The Xref of the BoundaryCreate op that this error branch belongs to.
527+ */
528+ boundaryXref : XrefId ;
529+
530+ contextVariables : t . Variable [ ] ;
531+
532+ /**
533+ * The handle to the slot allocated for this element.
534+ */
535+ handle : SlotHandle ;
536+
537+ startSourceSpan : ParseSourceSpan ;
538+
539+ wholeSourceSpan : ParseSourceSpan ;
540+ }
541+
542+ export function createBoundaryErrorCreateOp (
543+ xref : XrefId ,
544+ templateKind : TemplateKind ,
545+ functionNameSuffix : string ,
546+ i18nPlaceholder : i18n . TagPlaceholder | i18n . BlockPlaceholder | undefined ,
547+ startSourceSpan : ParseSourceSpan ,
548+ wholeSourceSpan : ParseSourceSpan ,
549+ boundaryXref : XrefId ,
550+ contextVariables : t . Variable [ ] ,
551+ ) : BoundaryErrorCreateOp {
552+ return {
553+ kind : OpKind . BoundaryErrorCreate ,
554+ xref,
555+ templateKind,
556+ handle : new SlotHandle ( ) ,
557+ functionNameSuffix,
558+ decls : null ,
559+ vars : null ,
560+ i18nPlaceholder,
561+ startSourceSpan,
562+ wholeSourceSpan,
563+ boundaryXref,
564+ contextVariables,
565+ ...TRAIT_CONSUMES_SLOT ,
566+ ...NEW_OP ,
567+ } ;
568+ }
569+
507570/**
508571 * An op that creates a repeater (e.g. a for loop).
509572 */
0 commit comments