visitThrowStmt method

  1. @override
String visitThrowStmt(
  1. ThrowStmt stmt
)
override

Implementation

@override
String visitThrowStmt(ThrowStmt stmt) {
  final output = StringBuffer();
  output.write('${_lexicon.kThrow} ');
  final messageString = formatAST(stmt.message);
  output.write(messageString);
  if (stmt.hasEndOfStmtMark) {
    output.write(_lexicon.endOfStatementMark);
  }
  return output.toString();
}