(element: html.Element)
| 40 | constructor(private includeSourceSpan: boolean) {} |
| 41 | |
| 42 | visitElement(element: html.Element): any { |
| 43 | const res = this._appendContext(element, [html.Element, element.name, this.elDepth++]); |
| 44 | if (element.isSelfClosing) { |
| 45 | res.push('#selfClosing'); |
| 46 | } |
| 47 | if (this.includeSourceSpan) { |
| 48 | res.push(element.startSourceSpan.toString() ?? null); |
| 49 | res.push(element.endSourceSpan?.toString() ?? null); |
| 50 | } |
| 51 | this.result.push(res); |
| 52 | html.visitAll(this, element.attrs); |
| 53 | html.visitAll(this, element.directives); |
| 54 | html.visitAll(this, element.children); |
| 55 | this.elDepth--; |
| 56 | } |
| 57 | |
| 58 | visitAttribute(attribute: html.Attribute): any { |
| 59 | const valueTokens = attribute.valueTokens ?? []; |
nothing calls this directly
no test coverage detected