Boo.Lang.Compiler.Steps.ProcessMethodBodies.FindMethodOverridenBy C# (CSharp) Метод

FindMethodOverridenBy() приватный статический Метод

private static FindMethodOverridenBy ( Boo.Lang.Compiler.TypeSystem.InternalMethod entity, IEntity candidates ) : IMethod
entity Boo.Lang.Compiler.TypeSystem.InternalMethod
candidates IEntity
Результат IMethod
        private static IMethod FindMethodOverridenBy(InternalMethod entity, IEntity candidates)
        {
            if (EntityType.Method == candidates.EntityType)
            {
                var candidate = (IMethod)candidates;
                if (TypeSystemServices.CheckOverrideSignature(entity, candidate))
                    return candidate;
            }

            if (candidates.IsAmbiguous())
                foreach (IMethod candidate in ((Ambiguous) candidates).Entities)
                    if (TypeSystemServices.CheckOverrideSignature(entity, candidate))
                        return candidate;

            return null;
        }

Same methods

ProcessMethodBodies::FindMethodOverridenBy ( Boo.Lang.Compiler.TypeSystem.InternalMethod entity ) : IMethod
ProcessMethodBodies