23 references to BestSymbolLocation
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Symbols.cs (23)
2456
private readonly
BestSymbolLocation
_location;
2474
return _location ==
BestSymbolLocation
.FromSourceModule;
2482
return _location ==
BestSymbolLocation
.FromAddedModule;
2490
return (_location ==
BestSymbolLocation
.FromSourceModule) || (_location ==
BestSymbolLocation
.FromAddedModule);
2498
return _location ==
BestSymbolLocation
.FromFile;
2506
return _location ==
BestSymbolLocation
.None;
2514
return _location ==
BestSymbolLocation
.FromCorLibrary;
2518
public BestSymbolInfo(
BestSymbolLocation
location, int index)
2520
Debug.Assert(location !=
BestSymbolLocation
.None);
2545
public static bool IsSecondLocationBetter(
BestSymbolLocation
firstLocation,
BestSymbolLocation
secondLocation)
2548
return (firstLocation ==
BestSymbolLocation
.None) || (firstLocation > secondLocation);
2564
BestSymbolLocation
location;
2568
location =
BestSymbolLocation
.None;
2571
var
current = GetLocation(compilation, ns);
2575
if (location ==
BestSymbolLocation
.FromSourceModule)
2601
private static
BestSymbolLocation
GetLocation(CSharpCompilation compilation, Symbol symbol)
2605
return
BestSymbolLocation
.FromFile;
2612
BestSymbolLocation
.FromSourceModule :
2613
BestSymbolLocation
.FromAddedModule;
2618
BestSymbolLocation
.FromCorLibrary :
2619
BestSymbolLocation
.FromReferencedAssembly;