Skip to content

Commit b398030

Browse files
committed
rename function
1 parent 824c293 commit b398030

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/expression/ExpressionNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public boolean hasSideEffectAsAnExpression() {
145145
}
146146
}
147147

148-
public final ExpressionNode withSideEffects(StatementNode sideEffect) {
148+
public final ExpressionNode withSideEffect(StatementNode sideEffect) {
149149
return new ExpressionWithSideEffects(this, sideEffect);
150150
}
151151
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/PythonTreeTranslator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ public Object visitComparison(Python3Parser.ComparisonContext ctx) {
983983
} else {
984984
ReadNode tempVar = environment.makeTempLocalVariable();
985985
StatementNode tempAsgn = tempVar.makeWriteNode(rhs);
986-
nextComp = factory.createComparisonOperation(op, lhs, (ExpressionNode) tempVar).withSideEffects(tempAsgn);
986+
nextComp = factory.createComparisonOperation(op, lhs, (ExpressionNode) tempVar).withSideEffect(tempAsgn);
987987
lhs = (ExpressionNode) tempVar;
988988
}
989989
if (currentComparison == null) {

0 commit comments

Comments
 (0)