18 references to SymbolVisibility
Microsoft.CodeAnalysis.Workspaces (18)
FindSymbols\FindReferences\DependentProjectsFinder.cs (8)
36
(IAssemblySymbol assembly, Project? sourceProject,
SymbolVisibility
visibility),
89
var filteredProjects = maxVisibility ==
SymbolVisibility
.Internal
104
private static Dictionary<IAssemblySymbol, (Project? sourceProject,
SymbolVisibility
maxVisibility)> GetSymbolOriginations(
107
var result = new Dictionary<IAssemblySymbol, (Project? sourceProject,
SymbolVisibility
visibility)>();
127
projectAndVisibility.visibility = (
SymbolVisibility
)Math.Min((int)projectAndVisibility.visibility, (int)symbol.GetResultantVisibility());
137
SymbolVisibility
visibility,
165
SymbolVisibility
visibility,
178
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)
27
=> symbol.GetResultantVisibility() ==
SymbolVisibility
.Public;
29
public static
SymbolVisibility
GetResultantVisibility(this ISymbol symbol)
32
var
visibility =
SymbolVisibility
.Public;
39
return
SymbolVisibility
.Private;
47
return
SymbolVisibility
.Private;
57
return
SymbolVisibility
.Private;
63
visibility =
SymbolVisibility
.Internal;