File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/sst Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,11 @@ public SSTNode getNakedForComp() {
198
198
}
199
199
200
200
public void addNakedForComp (SSTNode node ) {
201
- this . nakedForComp = node ;
201
+ setNakedForComp ( node ) ;
202
202
addArg (node );
203
203
}
204
+
205
+ public void setNakedForComp (SSTNode nakedForComp ) {
206
+ this .nakedForComp = nakedForComp ;
207
+ }
204
208
}
Original file line number Diff line number Diff line change 40
40
*/
41
41
package com .oracle .graal .python .parser .sst ;
42
42
43
+ import java .io .DataInputStream ;
44
+ import java .io .IOException ;
45
+ import java .math .BigInteger ;
46
+ import java .util .ArrayList ;
47
+
43
48
import com .oracle .graal .python .builtins .PythonBuiltinClassType ;
44
49
import com .oracle .graal .python .nodes .expression .BinaryArithmetic ;
45
50
import com .oracle .graal .python .nodes .expression .UnaryArithmetic ;
46
51
import com .oracle .graal .python .nodes .literal .FormatStringLiteralNode .StringPart ;
47
52
import com .oracle .graal .python .parser .ScopeInfo ;
48
53
import com .oracle .graal .python .parser .sst .SerializationUtils .SSTId ;
49
- import java .io .DataInputStream ;
50
- import java .io .IOException ;
51
- import java .math .BigInteger ;
52
- import java .util .ArrayList ;
53
54
54
55
public final class SSTDeserializer {
55
56
@@ -773,6 +774,7 @@ private ArgListBuilder readArgListBuilder() throws IOException {
773
774
for (int i = 0 ; i < kwArgCount ; i ++) {
774
775
alb .addKwArg (readNode ());
775
776
}
777
+ alb .setNakedForComp (readNode ());
776
778
return alb ;
777
779
}
778
780
Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ private void writeArgListBuilder(ArgListBuilder alb) throws IOException {
183
183
for (SSTNode arg : kwArg ) {
184
184
writeNodeOrNull (arg );
185
185
}
186
+ writeNodeOrNull (alb .getNakedForComp ());
186
187
}
187
188
188
189
private void writeArguments (ArgDefListBuilder argBuilder ) throws IOException {
Original file line number Diff line number Diff line change 45
45
import com .oracle .graal .python .nodes .expression .UnaryArithmetic ;
46
46
47
47
public class SerializationUtils {
48
- public static byte VERSION = 2 ;
48
+ public static byte VERSION = 3 ;
49
49
50
50
public static enum SSTId {
51
51
AndID ,
You can’t perform that action at this time.
0 commit comments