File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/sst Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,9 @@ public static enum SSTId {
91
91
WhileID ,
92
92
WithID ,
93
93
YieldExpressionID ,
94
- NullID , // represent null value in the tree (needed for collections for example)
94
+ NullID ; // represent null value in the tree (needed for collections for example)
95
+
96
+ public static final SSTId [] VALUES = values ();
95
97
}
96
98
97
99
// This implementation requires that if the enum is changed,
@@ -101,7 +103,7 @@ public static byte getSSTNodeTypeId(SSTId sstId) {
101
103
}
102
104
103
105
public static SSTId getSSTNodeTypeFromId (byte id ) {
104
- return SSTId .values () [id ];
106
+ return SSTId .VALUES [id ];
105
107
}
106
108
107
109
public static byte getUnaryArithemticId (UnaryArithmetic ua ) {
You can’t perform that action at this time.
0 commit comments