Beispiel #1
0
        void MakeStaticIfNeeded(TypeMember node)
        {
            if (node.DeclaringType.IsStatic)
            {
                if (node.IsStatic)
                {
                    Warnings.Add(CompilerWarningFactory.StaticClassMemberRedundantlyMarkedStatic(node, node.DeclaringType.Name, node.Name));
                }

                node.Modifiers |= TypeMemberModifiers.Static;
            }
        }