visitDeleteMemberStmt method

  1. @override
Uint8List visitDeleteMemberStmt(
  1. DeleteMemberStmt stmt
)
override

Implementation

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