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

Function pl_has_block

internal/cbm/doclink_perl.c:1408–1416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1406}
1407
1408static bool pl_has_block(TSNode decl) {
1409 uint32_t n = ts_node_child_count(decl);
1410 for (uint32_t i = 0; i < n; i++) {
1411 if (pl_kind(ts_node_child(decl, i), "block")) {
1412 return true;
1413 }
1414 }
1415 return false;
1416}
1417
1418/* `package NAME;` sets the package to the end of the enclosing block;
1419 * `package NAME { .. }` sets it inside its own block only. */

Callers 1

pl_walk_packageFunction · 0.85

Calls 1

pl_kindFunction · 0.85

Tested by

no test coverage detected