File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 40
40
import java .util .Arrays ;
41
41
import java .util .Collection ;
42
42
import java .util .Deque ;
43
- import java .util .HashSet ;
43
+ import java .util .LinkedHashSet ;
44
44
import java .util .List ;
45
45
import java .util .Set ;
46
46
import java .util .function .Function ;
@@ -424,7 +424,7 @@ public Object visitAtom(Python3Parser.AtomContext ctx) {
424
424
public Object visitSetmaker (Python3Parser .SetmakerContext ctx ) {
425
425
if (ctx .comp_for () == null ) {
426
426
List <PNode > nodes = asList (super .visitSetmaker (ctx ));
427
- Set <PNode > setNodes = new HashSet <>(nodes );
427
+ Set <PNode > setNodes = new LinkedHashSet <>(nodes );
428
428
return factory .createSetLiteral (setNodes );
429
429
} else {
430
430
return factory .callBuiltin (SET , createComprehensionExpression (ctx ));
You can’t perform that action at this time.
0 commit comments