We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34afd52 commit fbce4ffCopy full SHA for fbce4ff
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/util/PFunctionArgsFinder.java
@@ -20,18 +20,10 @@ public class PFunctionArgsFinder {
20
private final RootNode rootNode;
21
22
public PFunctionArgsFinder(Node node) {
23
- this.rootNode = findRootNode(node);
+ this.rootNode = node.getRootNode();
24
assert rootNode instanceof PRootNode;
25
}
26
27
- private static RootNode findRootNode(Node node) {
28
- Node n = node;
29
- while (!(n instanceof RootNode) && (n != null)) {
30
- n = n.getParent();
31
- }
32
- return (RootNode) n;
33
34
-
35
public ArgumentListObject collectArgs() {
36
List<String> arguments = new LinkedList<>();
37
0 commit comments