MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / ts_is_function_like

Function ts_is_function_like

internal/cbm/doclink_ts.c:747–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747static 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
760typedef struct {
761 uint32_t first; /* a function body's lines */

Callers 1

ts_walk_nestedFunction · 0.85

Calls 1

ts_kindFunction · 0.85

Tested by

no test coverage detected