(name: SpanName, otherwise?: Node)
| 186 | } |
| 187 | |
| 188 | private spanStart(name: SpanName, otherwise?: Node): Node { |
| 189 | let res: Node; |
| 190 | if (this.spanTable.has(name)) { |
| 191 | res = this.spanTable.get(name)!.start(); |
| 192 | } else { |
| 193 | res = this.llparse.node('span_start_stub_' + name); |
| 194 | } |
| 195 | if (otherwise !== undefined) { |
| 196 | res.otherwise(otherwise); |
| 197 | } |
| 198 | return res; |
| 199 | } |
| 200 | |
| 201 | private spanEnd(name: SpanName, otherwise?: Node): Node { |
| 202 | let res: Node; |