18 references to SymbolVisibility
Microsoft.CodeAnalysis.Workspaces (18)
FindSymbols\FindReferences\DependentProjectsFinder.cs (8)
36
(IAssemblySymbol assembly, Project? sourceProject,
SymbolVisibility
visibility),
88
var filteredProjects = maxVisibility ==
SymbolVisibility
.Internal
103
private static Dictionary<IAssemblySymbol, (Project? sourceProject,
SymbolVisibility
maxVisibility)> GetSymbolOriginations(
106
var result = new Dictionary<IAssemblySymbol, (Project? sourceProject,
SymbolVisibility
visibility)>();
126
projectAndVisibility.visibility = (
SymbolVisibility
)Math.Min((int)projectAndVisibility.visibility, (int)symbol.GetResultantVisibility());
136
SymbolVisibility
visibility,
164
SymbolVisibility
visibility,
177
if (visibility !=
SymbolVisibility
.Private)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CompilationExtensions.cs (2)
50
case Utilities.
SymbolVisibility
.Public:
51
case Utilities.
SymbolVisibility
.Internal when currentType.ContainingAssembly.GivesAccessTo(compilation.Assembly):
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (8)
26
=> symbol.GetResultantVisibility() ==
SymbolVisibility
.Public;
28
public static
SymbolVisibility
GetResultantVisibility(this ISymbol symbol)
31
var
visibility =
SymbolVisibility
.Public;
38
return
SymbolVisibility
.Private;
46
return
SymbolVisibility
.Private;
56
return
SymbolVisibility
.Private;
62
visibility =
SymbolVisibility
.Internal;