visitDeleteSubStmt method

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

Implementation

@override
Uint8List visitDeleteSubStmt(DeleteSubStmt stmt) {
  final bytesBuilder = BytesBuilder();
  bytesBuilder.add(_lineInfo(stmt.line, stmt.column));
  bytesBuilder.addByte(HTOpCode.delete);
  bytesBuilder.addByte(DeletingTypeCode.sub);
  final objectBytes = compileAST(stmt.object, endOfExec: true);
  bytesBuilder.add(objectBytes);
  final keyBytes = compileAST(stmt.key, endOfExec: true);
  bytesBuilder.add(keyBytes);
  return bytesBuilder.toBytes();
}