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:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user