Antlr4.Runtime.Misc.RuleDependencyChecker.GetRuleMethod C# (CSharp) Method

GetRuleMethod() private static method

private static GetRuleMethod ( Type recognizerClass, string name ) : MethodInfo
recognizerClass System.Type
name string
return System.Reflection.MethodInfo
        private static MethodInfo GetRuleMethod(Type recognizerClass, string name)
        {
            MethodInfo[] declaredMethods = recognizerClass.GetMethods();
            foreach (MethodInfo method in declaredMethods)
            {
                if (method.Name.Equals(name) && Attribute.IsDefined(method, typeof(RuleVersionAttribute)))
                {
                    return method;
                }
            }
            return null;
        }

Same methods

RuleDependencyChecker::GetRuleMethod ( TypeInfo recognizerClass, string name ) : MethodInfo