23 references to BestSymbolLocation
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Symbols.cs (23)
2375
private readonly
BestSymbolLocation
_location;
2393
return _location ==
BestSymbolLocation
.FromSourceModule;
2401
return _location ==
BestSymbolLocation
.FromAddedModule;
2409
return (_location ==
BestSymbolLocation
.FromSourceModule) || (_location ==
BestSymbolLocation
.FromAddedModule);
2417
return _location ==
BestSymbolLocation
.FromFile;
2425
return _location ==
BestSymbolLocation
.None;
2433
return _location ==
BestSymbolLocation
.FromCorLibrary;
2437
public BestSymbolInfo(
BestSymbolLocation
location, int index)
2439
Debug.Assert(location !=
BestSymbolLocation
.None);
2464
public static bool IsSecondLocationBetter(
BestSymbolLocation
firstLocation,
BestSymbolLocation
secondLocation)
2467
return (firstLocation ==
BestSymbolLocation
.None) || (firstLocation > secondLocation);
2483
BestSymbolLocation
location;
2487
location =
BestSymbolLocation
.None;
2490
var
current = GetLocation(compilation, ns);
2494
if (location ==
BestSymbolLocation
.FromSourceModule)
2520
private static
BestSymbolLocation
GetLocation(CSharpCompilation compilation, Symbol symbol)
2524
return
BestSymbolLocation
.FromFile;
2531
BestSymbolLocation
.FromSourceModule :
2532
BestSymbolLocation
.FromAddedModule;
2537
BestSymbolLocation
.FromCorLibrary :
2538
BestSymbolLocation
.FromReferencedAssembly;