| 745 | } |
| 746 | |
| 747 | static bool ts_is_function_like(TSNode n) { |
| 748 | static const char *const kinds[] = {"function_declaration", "generator_function_declaration", |
| 749 | "function_expression", "function", |
| 750 | "generator_function", "arrow_function", |
| 751 | "method_definition", NULL}; |
| 752 | for (int i = 0; kinds[i]; i++) { |
| 753 | if (ts_kind(n, kinds[i])) { |
| 754 | return true; |
| 755 | } |
| 756 | } |
| 757 | return false; |
| 758 | } |
| 759 | |
| 760 | typedef struct { |
| 761 | uint32_t first; /* a function body's lines */ |
no test coverage detected