18 references to SymbolVisibility
Microsoft.CodeAnalysis.Workspaces (18)
FindSymbols\FindReferences\DependentProjectsFinder.cs (8)
36(IAssemblySymbol assembly, Project? sourceProject, SymbolVisibility visibility), 89var filteredProjects = maxVisibility == SymbolVisibility.Internal 104private static Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility maxVisibility)> GetSymbolOriginations( 107var result = new Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility visibility)>(); 127projectAndVisibility.visibility = (SymbolVisibility)Math.Min((int)projectAndVisibility.visibility, (int)symbol.GetResultantVisibility()); 137SymbolVisibility visibility, 165SymbolVisibility visibility, 178if (visibility != SymbolVisibility.Private)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CompilationExtensions.cs (2)
50case Utilities.SymbolVisibility.Public: 51case Utilities.SymbolVisibility.Internal when currentType.ContainingAssembly.GivesAccessTo(compilation.Assembly):
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (8)
27=> symbol.GetResultantVisibility() == SymbolVisibility.Public; 29public static SymbolVisibility GetResultantVisibility(this ISymbol symbol) 32var visibility = SymbolVisibility.Public; 39return SymbolVisibility.Private; 47return SymbolVisibility.Private; 57return SymbolVisibility.Private; 63visibility = SymbolVisibility.Internal;