@@ -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,8 +83,7 @@ export class Expansion extends NodeWithI18n {
8383 override visit ( visitor : Visitor , context : any ) : any {
8484 return visitor . visitExpansion ( this , context ) ;
8585 }
86-
87- readonly type = 'expansion' ;
86+ readonly kind = 'expansion' ;
8887}
8988
9089export class ExpansionCase implements BaseNode {
@@ -100,7 +99,7 @@ export class ExpansionCase implements BaseNode {
10099 return visitor . visitExpansionCase ( this , context ) ;
101100 }
102101
103- readonly type = 'expansionCase' ;
102+ readonly kind = 'expansionCase' ;
104103}
105104
106105export class Attribute extends NodeWithI18n {
@@ -118,7 +117,7 @@ export class Attribute extends NodeWithI18n {
118117 override visit ( visitor : Visitor , context : any ) : any {
119118 return visitor . visitAttribute ( this , context ) ;
120119 }
121- readonly type = 'attribute' ;
120+ readonly kind = 'attribute' ;
122121 // angular-html-parser: backwards compatibility for Prettier
123122 get nameSpan ( ) {
124123 return this . keySpan ;
@@ -144,7 +143,7 @@ export class Element extends NodeWithI18n {
144143 override visit ( visitor : Visitor , context : any ) : any {
145144 return visitor . visitElement ( this , context ) ;
146145 }
147- readonly type = 'element' ;
146+ readonly kind = 'element' ;
148147}
149148
150149export class Comment implements BaseNode {
@@ -155,15 +154,15 @@ export class Comment implements BaseNode {
155154 visit ( visitor : Visitor , context : any ) : any {
156155 return visitor . visitComment ( this , context ) ;
157156 }
158- readonly type = 'comment' ;
157+ readonly kind = 'comment' ;
159158}
160159
161160export class DocType implements BaseNode {
162161 constructor ( public value : string | null , public sourceSpan : ParseSourceSpan ) { }
163162 visit ( visitor : Visitor , context : any ) : any {
164163 return visitor . visitDocType ( this , context ) ;
165164 }
166- readonly type = 'docType' ;
165+ readonly kind = 'docType' ;
167166}
168167
169168export class Block extends NodeWithI18n {
@@ -184,7 +183,7 @@ export class Block extends NodeWithI18n {
184183 return visitor . visitBlock ( this , context ) ;
185184 }
186185
187- readonly type = 'block' ;
186+ readonly kind = 'block' ;
188187}
189188
190189export class Component extends NodeWithI18n {
@@ -208,7 +207,7 @@ export class Component extends NodeWithI18n {
208207 return visitor . visitComponent ( this , context ) ;
209208 }
210209
211- readonly type = 'component' ;
210+ readonly kind = 'component' ;
212211}
213212
214213export class Directive implements BaseNode {
@@ -224,7 +223,7 @@ export class Directive implements BaseNode {
224223 return visitor . visitDirective ( this , context ) ;
225224 }
226225
227- readonly type = 'directive' ;
226+ readonly kind = 'directive' ;
228227}
229228
230229export class BlockParameter implements BaseNode {
@@ -237,7 +236,7 @@ export class BlockParameter implements BaseNode {
237236 return visitor . visitBlockParameter ( this , context ) ;
238237 }
239238
240- readonly type = 'blockParameter' ;
239+ readonly kind = 'blockParameter' ;
241240 readonly startSourceSpan : null = null ;
242241 readonly endSourceSpan : null = null ;
243242}
@@ -255,7 +254,7 @@ export class LetDeclaration implements BaseNode {
255254 return visitor . visitLetDeclaration ( this , context ) ;
256255 }
257256
258- readonly type = 'letDeclaration' ;
257+ readonly kind = 'letDeclaration' ;
259258 readonly startSourceSpan : null = null ;
260259 readonly endSourceSpan : null = null ;
261260}
0 commit comments