23 references to BestSymbolLocation
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Symbols.cs (23)
2454
private readonly
BestSymbolLocation
_location;
2472
return _location ==
BestSymbolLocation
.FromSourceModule;
2480
return _location ==
BestSymbolLocation
.FromAddedModule;
2488
return (_location ==
BestSymbolLocation
.FromSourceModule) || (_location ==
BestSymbolLocation
.FromAddedModule);
2496
return _location ==
BestSymbolLocation
.FromFile;
2504
return _location ==
BestSymbolLocation
.None;
2512
return _location ==
BestSymbolLocation
.FromCorLibrary;
2516
public BestSymbolInfo(
BestSymbolLocation
location, int index)
2518
Debug.Assert(location !=
BestSymbolLocation
.None);
2543
public static bool IsSecondLocationBetter(
BestSymbolLocation
firstLocation,
BestSymbolLocation
secondLocation)
2546
return (firstLocation ==
BestSymbolLocation
.None) || (firstLocation > secondLocation);
2562
BestSymbolLocation
location;
2566
location =
BestSymbolLocation
.None;
2569
var
current = GetLocation(compilation, ns);
2573
if (location ==
BestSymbolLocation
.FromSourceModule)
2599
private static
BestSymbolLocation
GetLocation(CSharpCompilation compilation, Symbol symbol)
2603
return
BestSymbolLocation
.FromFile;
2610
BestSymbolLocation
.FromSourceModule :
2611
BestSymbolLocation
.FromAddedModule;
2616
BestSymbolLocation
.FromCorLibrary :
2617
BestSymbolLocation
.FromReferencedAssembly;