| 1406 | } |
| 1407 | |
| 1408 | static 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. */ |
no test coverage detected