visitDeleteSubStmt method

  1. @override
String visitDeleteSubStmt(
  1. DeleteSubStmt stmt
)
override

Implementation

@override
String visitDeleteSubStmt(DeleteSubStmt stmt) {
  final output = StringBuffer();
  output.write('${_lexicon.kDelete} ');
  final objectString = formatAST(stmt.object);
  final keyString = formatAST(stmt.key);
  output.write(
      '$objectString${_lexicon.subGetStart}$keyString${_lexicon.subGetEnd}');
  if (stmt.hasEndOfStmtMark) {
    output.write(_lexicon.endOfStatementMark);
  }
  return output.toString();
}