node: add getRootnode method (NOT IMPLEMENTED)

Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
Francis Bouvier
2023-09-26 17:43:44 +02:00
parent 70a66a95da
commit 97b2435a13

View File

@@ -145,6 +145,11 @@ pub const Node = struct {
pub fn _contains(self: *parser.Node, other: *parser.Node) bool {
return parser.nodeContains(self, other);
}
pub fn _getRootNode(self: *parser.Node) void {
_ = self;
@panic("Not implemented node.getRootNode()");
}
};
pub const Types = generate.Tuple(.{