visitExprStmt method

  1. @override
String visitExprStmt(
  1. ExprStmt stmt
)
override

Implementation

@override
String visitExprStmt(ExprStmt stmt) {
  final output = StringBuffer();
  final exprString = formatAST(stmt.expr);
  output.write(exprString);
  if (stmt.hasEndOfStmtMark) {
    output.write(_lexicon.endOfStatementMark);
  }
  return output.toString();
}