visitAssertStmt method

  1. @override
String visitAssertStmt(
  1. AssertStmt stmt
)
override

Implementation

@override
String visitAssertStmt(AssertStmt stmt) {
  final output = StringBuffer();
  output.write('${_lexicon.kAssert} ');
  final exprString = formatAST(stmt.expr);
  output.write(exprString);
  if (stmt.hasEndOfStmtMark) {
    output.write(_lexicon.endOfStatementMark);
  }
  return output.toString();
}