Example #1
0
        public static bool IsPublic(this MemberDeclarationSyntax node)
        {
            if (node == null)
            {
                return(false);
            }

            var type = node.GetDeclaringType();

            return(node.HasModifier("public") || (type != null && type != node && type is InterfaceDeclarationSyntax));
        }