()
| 35 | } |
| 36 | |
| 37 | override execute(): TcbExpr { |
| 38 | const id = this.tcb.allocateId(); |
| 39 | const idNode = new TcbExpr(id); |
| 40 | idNode.addParseSpanInfo(this.element.startSourceSpan || this.element.sourceSpan); |
| 41 | |
| 42 | // Add the declaration of the element using document.createElement. |
| 43 | const initializer = new TcbExpr(`document.createElement("${this.element.name}")`); |
| 44 | initializer.addParseSpanInfo(this.element.startSourceSpan || this.element.sourceSpan); |
| 45 | const stmt = new TcbExpr(`var ${idNode.print()} = ${initializer.print()}`); |
| 46 | stmt.addParseSpanInfo(this.element.startSourceSpan || this.element.sourceSpan); |
| 47 | this.scope.addStatement(stmt); |
| 48 | return idNode; |
| 49 | } |
| 50 | } |
nothing calls this directly
no test coverage detected