public override bool Equals(object obj) { if (!(obj is MethodDescription)) { return(false); } MethodDescription other = (MethodDescription)obj; if (Formals.Count != other.Formals.Count || Locals.Count != other.Locals.Count || Visibility.GetType() != other.Visibility.GetType()) { return(false); } if (Start != other.Start || End != other.End || ReturnType != other.ReturnType || Name != other.Name || Formals.Where((t, i) => !t.Equals(other.Formals[i])).Any() || Locals.Where((t, i) => !t.Equals(other.Locals[i])).Any() || IsStatic != other.IsStatic) { return(false); } return(true); }
public override void OutAMethodDecl(AMethodDecl node) { MethodDescription method = new MethodDescription(node); if (inEnrichment) { method.Name = ""; method.Decl = null; } Methods.Add(method); }
public override void CaseADeconstructorDecl(ADeconstructorDecl node) { MethodDescription method = new MethodDescription(node); Deconstructors.Add(method); }
public override void CaseAConstructorDecl(AConstructorDecl node) { MethodDescription method = new MethodDescription(node, Util.TypeToString(type) + "*"); Constructors.Add(method); }
public override void CaseAMethodDecl(AMethodDecl node) { MethodDescription method = new MethodDescription(node); Methods.Add(method); }
public override void OutAInitializerDecl(AInitializerDecl node) { MethodDescription method = new MethodDescription(node); Methods.Add(method); }
public override void CaseAConstructorDecl(AConstructorDecl node) { MethodDescription method = new MethodDescription(node, Name + "*"); Constructors.Add(method); }