23 references to BestSymbolLocation
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Symbols.cs (23)
2330
private readonly
BestSymbolLocation
_location;
2348
return _location ==
BestSymbolLocation
.FromSourceModule;
2356
return _location ==
BestSymbolLocation
.FromAddedModule;
2364
return (_location ==
BestSymbolLocation
.FromSourceModule) || (_location ==
BestSymbolLocation
.FromAddedModule);
2372
return _location ==
BestSymbolLocation
.FromFile;
2380
return _location ==
BestSymbolLocation
.None;
2388
return _location ==
BestSymbolLocation
.FromCorLibrary;
2392
public BestSymbolInfo(
BestSymbolLocation
location, int index)
2394
Debug.Assert(location !=
BestSymbolLocation
.None);
2419
public static bool IsSecondLocationBetter(
BestSymbolLocation
firstLocation,
BestSymbolLocation
secondLocation)
2422
return (firstLocation ==
BestSymbolLocation
.None) || (firstLocation > secondLocation);
2438
BestSymbolLocation
location;
2442
location =
BestSymbolLocation
.None;
2445
var
current = GetLocation(compilation, ns);
2449
if (location ==
BestSymbolLocation
.FromSourceModule)
2475
private static
BestSymbolLocation
GetLocation(CSharpCompilation compilation, Symbol symbol)
2479
return
BestSymbolLocation
.FromFile;
2486
BestSymbolLocation
.FromSourceModule :
2487
BestSymbolLocation
.FromAddedModule;
2492
BestSymbolLocation
.FromCorLibrary :
2493
BestSymbolLocation
.FromReferencedAssembly;