protected override BaseMethodRef CreateMethodRef (BaseTypeRef ret_type,
PEAPI.CallConv call_conv, string name, BaseTypeRef[] param, int gen_param_count)
{
- throw new Exception ("Should not be called");
+ throw new InternalErrorException ("Should not be called");
}
public override BaseMethodRef GetMethodRef (BaseTypeRef ret_type, PEAPI.CallConv call_conv,
protected override IFieldRef CreateFieldRef (BaseTypeRef ret_type, string name)
{
- throw new Exception ("PrimitiveType's can't have fields!");
+ Report.Error ("PrimitiveType's can't have fields!");
+ return null;
}
public BaseClassRef AsClassRef (CodeGen code_gen)