| 884 | } |
| 885 | |
| 886 | void cbm_reset_thread_parser(void) { |
| 887 | // Release parser's internal slab-allocated subtrees (stack, cached token). |
| 888 | // Must be called BEFORE cbm_slab_reset_thread() to avoid corrupting |
| 889 | // live slab chunks that the parser still references. |
| 890 | if (tl_parser) { |
| 891 | ts_parser_reset(tl_parser); |
| 892 | } |
| 893 | } |
| 894 | |
| 895 | enum { FIELD_CACHE_SLOTS = 512, FIELD_NAME_CACHED_MAX = 31 }; |
| 896 | typedef struct { |
nothing calls this directly
no outgoing calls
no test coverage detected