(name: SpanName, otherwise?: Node)
| 199 | } |
| 200 | |
| 201 | private spanEnd(name: SpanName, otherwise?: Node): Node { |
| 202 | let res: Node; |
| 203 | if (this.spanTable.has(name)) { |
| 204 | res = this.spanTable.get(name)!.end(); |
| 205 | } else { |
| 206 | res = this.llparse.node('span_end_stub_' + name); |
| 207 | } |
| 208 | if (otherwise !== undefined) { |
| 209 | res.otherwise(otherwise); |
| 210 | } |
| 211 | return res; |
| 212 | } |
| 213 | |
| 214 | private node(name: string): Match { |
| 215 | const res = this.llparse.node('url_' + name); |