Skip to content

Commit 842812d

Browse files
stereotype441commit-bot@chromium.org
authored andcommitted
Flow analysis: Remove unnecessary arg to ifStatement_thenBegin
Change-Id: I56242547905825108759ef015ec96668bf75d8d2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109742 Reviewed-by: Konstantin Shcheglov <[email protected]>
1 parent 0faa3b7 commit 842812d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/analyzer/lib/src/dart/resolver/flow_analysis.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ class FlowAnalysis<Statement, Expression, Element, Type> {
347347
_current = _join(afterThen, afterElse);
348348
}
349349

350-
void ifStatement_thenBegin(Statement ifStatement, Expression condition) {
350+
void ifStatement_thenBegin(Expression condition) {
351351
_conditionalEnd(condition);
352352
// Tail of the stack: falseCondition, trueCondition
353353

pkg/analyzer/lib/src/generated/resolver.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4711,7 +4711,7 @@ class ResolverVisitor extends ScopedVisitor {
47114711

47124712
Statement thenStatement = node.thenStatement;
47134713
if (_flowAnalysis != null) {
4714-
_flowAnalysis.flow.ifStatement_thenBegin(node, condition);
4714+
_flowAnalysis.flow.ifStatement_thenBegin(condition);
47154715
visitStatementInScope(thenStatement);
47164716
} else {
47174717
_promoteManager.visitIfStatement_thenStatement(

0 commit comments

Comments
 (0)