23 references to BestSymbolLocation
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Symbols.cs (23)
2460
private readonly
BestSymbolLocation
_location;
2478
return _location ==
BestSymbolLocation
.FromSourceModule;
2486
return _location ==
BestSymbolLocation
.FromAddedModule;
2494
return (_location ==
BestSymbolLocation
.FromSourceModule) || (_location ==
BestSymbolLocation
.FromAddedModule);
2502
return _location ==
BestSymbolLocation
.FromFile;
2510
return _location ==
BestSymbolLocation
.None;
2518
return _location ==
BestSymbolLocation
.FromCorLibrary;
2522
public BestSymbolInfo(
BestSymbolLocation
location, int index)
2524
Debug.Assert(location !=
BestSymbolLocation
.None);
2549
public static bool IsSecondLocationBetter(
BestSymbolLocation
firstLocation,
BestSymbolLocation
secondLocation)
2552
return (firstLocation ==
BestSymbolLocation
.None) || (firstLocation > secondLocation);
2568
BestSymbolLocation
location;
2572
location =
BestSymbolLocation
.None;
2575
var
current = GetLocation(compilation, ns);
2579
if (location ==
BestSymbolLocation
.FromSourceModule)
2605
private static
BestSymbolLocation
GetLocation(CSharpCompilation compilation, Symbol symbol)
2609
return
BestSymbolLocation
.FromFile;
2616
BestSymbolLocation
.FromSourceModule :
2617
BestSymbolLocation
.FromAddedModule;
2622
BestSymbolLocation
.FromCorLibrary :
2623
BestSymbolLocation
.FromReferencedAssembly;