bool TopLevelTypeDefinitionIsAccessible(ITypeDefinition typeDef) { if (typeDef.IsInternal) { return typeDef.ParentAssembly.InternalsVisibleTo(compilation.MainAssembly); } return true; }