@@ -51,7 +51,7 @@ export class Text extends NodeWithI18n {
5151 override visit ( visitor : Visitor , context : any ) : any {
5252 return visitor . visitText ( this , context ) ;
5353 }
54- readonly type = 'text' ;
54+ readonly kind = 'text' ;
5555}
5656
5757export class CDATA extends NodeWithI18n {
@@ -66,7 +66,7 @@ export class CDATA extends NodeWithI18n {
6666 override visit ( visitor : Visitor , context : any ) : any {
6767 return visitor . visitCdata ( this , context ) ;
6868 }
69- readonly type = 'cdata' ;
69+ readonly kind = 'cdata' ;
7070}
7171
7272export class Expansion extends NodeWithI18n {
@@ -83,6 +83,7 @@ export class Expansion extends NodeWithI18n {
8383 override visit ( visitor : Visitor , context : any ) : any {
8484 return visitor . visitExpansion ( this , context ) ;
8585 }
86+ readonly kind = 'expansion' ;
8687}
8788
8889export class ExpansionCase implements BaseNode {
@@ -98,7 +99,7 @@ export class ExpansionCase implements BaseNode {
9899 return visitor . visitExpansionCase ( this , context ) ;
99100 }
100101
101- readonly type = 'expansionCase' ;
102+ readonly kind = 'expansionCase' ;
102103}
103104
104105export class Attribute extends NodeWithI18n {
@@ -116,7 +117,7 @@ export class Attribute extends NodeWithI18n {
116117 override visit ( visitor : Visitor , context : any ) : any {
117118 return visitor . visitAttribute ( this , context ) ;
118119 }
119- readonly type = 'attribute' ;
120+ readonly kind = 'attribute' ;
120121 // angular-html-parser: backwards compatibility for Prettier
121122 get nameSpan ( ) {
122123 return this . keySpan ;
@@ -142,7 +143,7 @@ export class Element extends NodeWithI18n {
142143 override visit ( visitor : Visitor , context : any ) : any {
143144 return visitor . visitElement ( this , context ) ;
144145 }
145- readonly type = 'element' ;
146+ readonly kind = 'element' ;
146147}
147148
148149export class Comment implements BaseNode {
@@ -153,15 +154,15 @@ export class Comment implements BaseNode {
153154 visit ( visitor : Visitor , context : any ) : any {
154155 return visitor . visitComment ( this , context ) ;
155156 }
156- readonly type = 'comment' ;
157+ readonly kind = 'comment' ;
157158}
158159
159160export class DocType implements BaseNode {
160161 constructor ( public value : string | null , public sourceSpan : ParseSourceSpan ) { }
161162 visit ( visitor : Visitor , context : any ) : any {
162163 return visitor . visitDocType ( this , context ) ;
163164 }
164- readonly type = 'docType' ;
165+ readonly kind = 'docType' ;
165166}
166167
167168export class Block extends NodeWithI18n {
@@ -182,7 +183,7 @@ export class Block extends NodeWithI18n {
182183 return visitor . visitBlock ( this , context ) ;
183184 }
184185
185- readonly type = 'block' ;
186+ readonly kind = 'block' ;
186187}
187188
188189export class Component extends NodeWithI18n {
@@ -206,7 +207,7 @@ export class Component extends NodeWithI18n {
206207 return visitor . visitComponent ( this , context ) ;
207208 }
208209
209- readonly type = 'component' ;
210+ readonly kind = 'component' ;
210211}
211212
212213export class Directive implements BaseNode {
@@ -222,7 +223,7 @@ export class Directive implements BaseNode {
222223 return visitor . visitDirective ( this , context ) ;
223224 }
224225
225- readonly type = 'directive' ;
226+ readonly kind = 'directive' ;
226227}
227228
228229export class BlockParameter implements BaseNode {
@@ -235,7 +236,7 @@ export class BlockParameter implements BaseNode {
235236 return visitor . visitBlockParameter ( this , context ) ;
236237 }
237238
238- readonly type = 'blockParameter' ;
239+ readonly kind = 'blockParameter' ;
239240 readonly startSourceSpan : null = null ;
240241 readonly endSourceSpan : null = null ;
241242}
@@ -253,7 +254,7 @@ export class LetDeclaration implements BaseNode {
253254 return visitor . visitLetDeclaration ( this , context ) ;
254255 }
255256
256- readonly type = 'letDeclaration' ;
257+ readonly kind = 'letDeclaration' ;
257258 readonly startSourceSpan : null = null ;
258259 readonly endSourceSpan : null = null ;
259260}
0 commit comments