public string GetFullName() { string fullname = Name; if (DefType == XDefType.Root) { fullname = SubDef.GetFullName(); } if (DefType == XDefType.Namespace) { fullname += "." + SubDef.GetFullName(); } if (GenericCount != null) { fullname += "`" + GenericCount.Value.ToString(); } if (Generics != null) { fullname += "<" + String2.Join(",", Generics.Select(g => g.GetFullName())) + ">"; } if (Arrays != null) { fullname += Arrays; } //fullname += "[" + string.Join(",", Arrays.Select(g => g.GetFullName())) + "]"; // nested classes if (DefType == XDefType.Class && SubDef != null) { fullname += "/" + SubDef.GetFullName(); } if (Remains != null) { fullname += Remains; } if (Mods != null) { fullname += Mods; } return(fullname); }
public static XDef ParseAndCheck(string input) { XDef def = new XDef(input); string fullname = def.GetFullName(); Debug.Assert(fullname == input); return def; }
public static XDef ParseAndCheck(string input) { XDef def = new XDef(input); string fullname = def.GetFullName(); Debug.Assert(fullname == input); return(def); }