| 950 | static CBM_TLS bool tl_cursor_live = false; |
| 951 | |
| 952 | TSTreeCursor *cbm_thread_cursor(TSNode node) { |
| 953 | if (tl_cursor_live) { |
| 954 | ts_tree_cursor_reset(&tl_cursor, node); |
| 955 | } else { |
| 956 | tl_cursor = ts_tree_cursor_new(node); |
| 957 | tl_cursor_live = true; |
| 958 | } |
| 959 | return &tl_cursor; |
| 960 | } |
| 961 | |
| 962 | /* Per-depth cursors for recursive walks (cbm_cursor_acquire). A walk at depth d |
| 963 | * holds slot d while it recurses into depth d + 1; the LSP call walkers used to |
no outgoing calls
no test coverage detected