Create a shallow copy of the syntax tree. This is very fast.
()
| 237 | } |
| 238 | /** Create a shallow copy of the syntax tree. This is very fast. */ |
| 239 | copy() { |
| 240 | const address = C._ts_tree_copy(this[0]); |
| 241 | return new _Tree(INTERNAL, address, this.language, this.textCallback); |
| 242 | } |
| 243 | /** Delete the syntax tree, freeing its resources. */ |
| 244 | delete() { |
| 245 | C._ts_tree_delete(this[0]); |
no outgoing calls