Skip to content

Commit 192d281

Browse files
committed
Add type to Component and Directive
1 parent 51e32ec commit 192d281

File tree

1 file changed

+4
-0
lines changed
  • packages/compiler/src/ml_parser

1 file changed

+4
-0
lines changed

packages/compiler/src/ml_parser/ast.ts

+4
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ export class Component extends NodeWithI18n {
202202
override visit(visitor: Visitor, context: any): any {
203203
return visitor.visitComponent(this, context);
204204
}
205+
206+
readonly type = 'component';
205207
}
206208

207209
export class Directive implements BaseNode {
@@ -216,6 +218,8 @@ export class Directive implements BaseNode {
216218
visit(visitor: Visitor, context: any): any {
217219
return visitor.visitDirective(this, context);
218220
}
221+
222+
readonly type = 'directive';
219223
}
220224

221225
export class BlockParameter implements BaseNode {

0 commit comments

Comments
 (0)