Rosetta.AST.Helpers.PropertyDeclaration.SearchForNode C# (CSharp) Méthode

SearchForNode() private static méthode

private static SearchForNode ( SyntaxList accessors, SyntaxKind kind ) : bool
accessors SyntaxList
kind SyntaxKind
Résultat bool
        private static bool SearchForNode(SyntaxList<AccessorDeclarationSyntax> accessors, SyntaxKind kind)
        {
            foreach (var accessor in accessors)
            {
                if (accessor.Kind() == kind)
                {
                    return true;
                }
            }

            return false;
        }