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 a7742ef commit 824c293Copy full SHA for 824c293
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/frame/GlobalNode.java
@@ -47,11 +47,11 @@
47
import com.oracle.truffle.api.frame.VirtualFrame;
48
49
public interface GlobalNode {
50
- static boolean isInModule(VirtualFrame frame) {
+ default boolean isInModule(VirtualFrame frame) {
51
return PArguments.getGlobals(frame) instanceof PythonModule;
52
}
53
54
- static boolean isInDict(VirtualFrame frame) {
+ default boolean isInDict(VirtualFrame frame) {
55
Object globals = PArguments.getGlobals(frame);
56
return globals instanceof PDict || globals instanceof PMappingproxy;
57
0 commit comments