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

GetRuleMethod() private static method

private static GetRuleMethod ( TypeInfo recognizerClass, string name ) : MethodInfo
recognizerClass System.Reflection.TypeInfo
name string
return System.Reflection.MethodInfo
        private static MethodInfo GetRuleMethod(TypeInfo recognizerClass, string name)
        {
            IEnumerable<MethodInfo> declaredMethods = recognizerClass.DeclaredMethods;
            foreach (MethodInfo method in declaredMethods)
            {
                if (method.Name.Equals(name) && method.GetCustomAttribute<RuleVersionAttribute>() != null)
                {
                    return method;
                }
            }
            return null;
        }

Same methods

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