private bool MethodIsPublicOrAccessibleFromCompilation(IMethodSymbol method)
{
if (method.DeclaredAccessibility == Accessibility.Public)
{
return true;
}
if ((method.DeclaredAccessibility == Accessibility.Internal
|| method.DeclaredAccessibility == Accessibility.ProtectedOrInternal)
&& Equals(method.ContainingAssembly, this.compilation.Assembly))
{
return true;
}
return false;
}