| 536 | } |
| 537 | |
| 538 | static bool ts_is_decl(TSNode d) { |
| 539 | static const char *const kinds[] = {"class_declaration", |
| 540 | "abstract_class_declaration", |
| 541 | "function_declaration", |
| 542 | "generator_function_declaration", |
| 543 | "function_signature", |
| 544 | "interface_declaration", |
| 545 | "type_alias_declaration", |
| 546 | "enum_declaration", |
| 547 | "internal_module", |
| 548 | "module", |
| 549 | "class", |
| 550 | NULL}; |
| 551 | for (int i = 0; kinds[i]; i++) { |
| 552 | if (ts_kind(d, kinds[i])) { |
| 553 | return true; |
| 554 | } |
| 555 | } |
| 556 | return false; |
| 557 | } |
| 558 | |
| 559 | static void ts_decl_rec(ts_walk_t *w, TSNode name, bool exported, bool dflt) { |
| 560 | ts_sb_puts(w->sb, "\nD"); |
no test coverage detected