| 115 | } |
| 116 | |
| 117 | export class TagPlaceholder implements Node { |
| 118 | constructor( |
| 119 | public tag: string, |
| 120 | public attrs: {[k: string]: string}, |
| 121 | public startName: string, |
| 122 | public closeName: string, |
| 123 | public children: Node[], |
| 124 | public isVoid: boolean, |
| 125 | // TODO sourceSpan should cover all (we need a startSourceSpan and endSourceSpan) |
| 126 | public sourceSpan: ParseSourceSpan, |
| 127 | public startSourceSpan: ParseSourceSpan | null, |
| 128 | public endSourceSpan: ParseSourceSpan | null, |
| 129 | ) {} |
| 130 | |
| 131 | visit(visitor: Visitor, context?: any): any { |
| 132 | return visitor.visitTagPlaceholder(this, context); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | export class Placeholder implements Node { |
| 137 | constructor( |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…