| 160 | } |
| 161 | |
| 162 | export class Component extends NodeWithI18n { |
| 163 | constructor( |
| 164 | readonly componentName: string, |
| 165 | readonly tagName: string | null, |
| 166 | readonly fullName: string, |
| 167 | public attrs: Attribute[], |
| 168 | readonly directives: Directive[], |
| 169 | readonly children: Node[], |
| 170 | readonly isSelfClosing: boolean, |
| 171 | sourceSpan: ParseSourceSpan, |
| 172 | readonly startSourceSpan: ParseSourceSpan, |
| 173 | public endSourceSpan: ParseSourceSpan | null = null, |
| 174 | i18n?: I18nMeta, |
| 175 | public comments: StartTagComment[] = [], |
| 176 | ) { |
| 177 | super(sourceSpan, i18n); |
| 178 | } |
| 179 | |
| 180 | override visit(visitor: Visitor, context: any): any { |
| 181 | return visitor.visitComponent(this, context); |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | export class Directive implements BaseNode { |
| 186 | constructor( |
no outgoing calls
no test coverage detected