class IDL::Delegator

def declare_bitfield(name_, bits_, idltype_)

def declare_bitfield(name_, bits_, idltype_)
  params = {
    bits: bits_,
    bitset: @cur,
    idltype: idltype_
  }
  params[:annotations] = @annotation_stack
  @annotation_stack = IDL::AST::Annotations.new
  set_last(@cur.define(IDL::AST::BitField, name_, params))
  @cur
end