Semicolon Cleanup

1. Semicolons were required in the wrong spot.
2. Make semicolons "invisible" (from the tree-sitter perspective).

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-02-27 08:23:27 -05:00
parent 1495074459
commit cfe78a9b29
13 changed files with 73 additions and 92 deletions
@@ -53,3 +53,15 @@ extension MutableTree {
return false
}
}
extension Node {
public func enumerateNamedChildren(block: (Node) -> Void) {
for childIdx in 0..<self.childCount {
let child = self.child(at: childIdx)!
if !child.isNamed {
continue
}
block(child)
}
}
}