ABB.Swum.BaseVerbRule.MakeClassification C# (CSharp) Метод

MakeClassification() защищенный Метод

Determines whether the given MethodDeclarationNode meets the conditions for this rule.
protected MakeClassification ( MethodDeclarationNode node ) : bool
node ABB.Swum.Nodes.MethodDeclarationNode The MethodDeclarationNode to test.
Результат bool
        protected override bool MakeClassification(MethodDeclarationNode node)
        {
            string firstWord = node.ParsedName[0].Text;
            if (IsChecker(firstWord)
                || IsSpecialCase(firstWord)
                || IsEventHandler(node.ParsedName)
                //|| IsEventHandler(node.FormalParameters) //pretty sure the parameters haven't been set yet
                || StartsNounPhrase(firstWord)
                || IsPrepositionalPhrase(node.ParsedName)
                || IsNonBaseVerb(firstWord))
            {
                return false;
            }
            else
            {
                return true;
            }
        }