18 references to SymbolVisibility
Microsoft.CodeAnalysis.Workspaces (18)
FindSymbols\FindReferences\DependentProjectsFinder.cs (8)
36(IAssemblySymbol assembly, Project? sourceProject, SymbolVisibility visibility), 88var filteredProjects = maxVisibility == SymbolVisibility.Internal 103private static Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility maxVisibility)> GetSymbolOriginations( 106var result = new Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility visibility)>(); 126projectAndVisibility.visibility = (SymbolVisibility)Math.Min((int)projectAndVisibility.visibility, (int)symbol.GetResultantVisibility()); 136SymbolVisibility visibility, 164SymbolVisibility visibility, 177if (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)
26=> symbol.GetResultantVisibility() == SymbolVisibility.Public; 28public static SymbolVisibility GetResultantVisibility(this ISymbol symbol) 31var visibility = SymbolVisibility.Public; 38return SymbolVisibility.Private; 46return SymbolVisibility.Private; 56return SymbolVisibility.Private; 62visibility = SymbolVisibility.Internal;