visitExpressionStmt method

  1. @override
Statement visitExpressionStmt(
  1. ExpressionStatement stmt,
  2. C context
)
override

Implementation

@override
Statement visitExpressionStmt(ExpressionStatement stmt, C context) {
  return ExpressionStatement(stmt.expr.visitExpression(this, context))
    // We visit expression statements after the sourceReference is already
    // set. Ideally we should visit all statements prior to calling
    // `bindingToUpdateStatements` which attaches the correct sourceReference
    // information.
    ..sourceReference = stmt.sourceReference;
}