You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/parser/GeneratorAndCompForTests.java
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -316,4 +316,18 @@ public void issueGR18174() throws Exception {
316
316
publicvoidissueGR18309() throwsException {
317
317
checkScopeAndTree("[ b for a in d1 if d1 for b in d2]");
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/sst/GeneratorFactorySSTVisitor.java
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -415,14 +415,11 @@ public PNode visit(WhileSSTNode node) {
415
415
if (!node.containsBreak) {
416
416
result = nodeFactory.createElse(whileNode, elseBranch);
417
417
} elseif (oldNumber == numOfActiveFlags) {
418
-
// TODO: The old parser doesn't enclude the else branch to the tree. See issue GR-16991
419
-
// TODO: this is also strange, that we create don't create ElseNode for break target.
420
-
// At least it seems to be inconsistent.
421
418
result = node.elseStatement == null ?
422
419
// TODO: Do we need to create the empty block here?
0 commit comments