t = parent.DefineType ();
if (t == null){
- Report.Error (146, "Class definition is circular: `"+name+"'");
+ Report.Error (146, Location, "Class definition is circular: `"+name+"'");
error = true;
return null;
}
if (match != null){
if (t != null){
- Report.Error (104, "`" + name + "' is an ambiguous reference");
+ Report.Error (104, Location, "`" + name + "' is an ambiguous reference");
return null;
}
return ns.Substring (0, i);
}
- static Type NamespaceLookup (Namespace curr_ns, string name)
+ static Type NamespaceLookup (Namespace curr_ns, string name, Location loc)
{
Type t;
match = TypeManager.LookupType (MakeFQN (ue.Name, name));
if (match != null){
if (t != null){
- Report.Error (104, "`" + name + "' is an ambiguous reference");
+ Report.Error (104, loc, "`" + name + "' is an ambiguous reference");
return null;
}
containing_ds = containing_ds.Parent;
}
- t = NamespaceLookup (ds.Namespace, name);
+ t = NamespaceLookup (ds.Namespace, name, loc);
if (t != null){
ds.Cache [name] = t;
return t;