Returns the closest ancestor of the given nodes.
If the nodes are all the same node, the given node will be returned.
If the given nodes are not part of the same AST tree, an error will be thrown.
Returns the closest ancestor of the given nodes.
If the nodes are all the same node, the given node will be returned.
If the given nodes are not part of the same AST tree, an error will be thrown.
Rest
...b: B[]Returns the closest ancestor of the given nodes.
If the nodes are all the same node, the given node will be returned.
If the given nodes are not part of the same AST tree, an error will be thrown.
Rest
...args: T[]
Returns the closest ancestor of the given nodes.
Since only one node is given, the node will be returned as is.