protected override BaseMethodRef CreateMethodRef (BaseTypeRef ret_type,
PEAPI.CallConv call_conv, string name, BaseTypeRef[] param, int gen_param_count)
{
- return new MethodRef (this, call_conv, ret_type, name, param, gen_param_count);
+ if (SigMod == null | SigMod == "")
+ return new MethodRef (this, call_conv, ret_type, name, param, gen_param_count);
+ else
+ return new TypeSpecMethodRef (this, call_conv, ret_type, name, param, gen_param_count);
}
protected override IFieldRef CreateFieldRef (BaseTypeRef ret_type, string name)
base_type = code_gen.TypeManager.GetPeapiType (full_name);
if (base_type == null) {
- code_gen.Report.Error ("Reference to undefined class '" +
+ Report.Error ("Reference to undefined class '" +
FullName + "'");
return;
}