visitIfStmt method

  1. @override
void visitIfStmt(
  1. If stmt
)
override

Implementation

@override
void visitIfStmt(Stmt.If stmt) {
  resolveExpr(stmt.condition);
  resolveStmt(stmt.thenBranch);
  if (stmt.elseBranch != null) {
    resolveStmt(stmt.elseBranch!);
  }
  return;
}