23 references to BestSymbolLocation
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Symbols.cs (23)
2383
private readonly
BestSymbolLocation
_location;
2401
return _location ==
BestSymbolLocation
.FromSourceModule;
2409
return _location ==
BestSymbolLocation
.FromAddedModule;
2417
return (_location ==
BestSymbolLocation
.FromSourceModule) || (_location ==
BestSymbolLocation
.FromAddedModule);
2425
return _location ==
BestSymbolLocation
.FromFile;
2433
return _location ==
BestSymbolLocation
.None;
2441
return _location ==
BestSymbolLocation
.FromCorLibrary;
2445
public BestSymbolInfo(
BestSymbolLocation
location, int index)
2447
Debug.Assert(location !=
BestSymbolLocation
.None);
2472
public static bool IsSecondLocationBetter(
BestSymbolLocation
firstLocation,
BestSymbolLocation
secondLocation)
2475
return (firstLocation ==
BestSymbolLocation
.None) || (firstLocation > secondLocation);
2491
BestSymbolLocation
location;
2495
location =
BestSymbolLocation
.None;
2498
var
current = GetLocation(compilation, ns);
2502
if (location ==
BestSymbolLocation
.FromSourceModule)
2528
private static
BestSymbolLocation
GetLocation(CSharpCompilation compilation, Symbol symbol)
2532
return
BestSymbolLocation
.FromFile;
2539
BestSymbolLocation
.FromSourceModule :
2540
BestSymbolLocation
.FromAddedModule;
2545
BestSymbolLocation
.FromCorLibrary :
2546
BestSymbolLocation
.FromReferencedAssembly;