Exemple #1
0
            public override SyntaxNode VisitConstructorDeclaration(ConstructorDeclarationSyntax node)
            {
                if (_members.IndexOf(node) != -1)
                {
                    return(MarkMemberAsStaticRefactoring.AddStaticModifier(node));
                }

                return(base.VisitConstructorDeclaration(node));
            }
            public override SyntaxNode VisitEventFieldDeclaration(EventFieldDeclarationSyntax node)
            {
                if (_classDeclaration.Members.IndexOf(node) != -1)
                {
                    return(MarkMemberAsStaticRefactoring.AddStaticModifier(node));
                }

                return(base.VisitEventFieldDeclaration(node));
            }