23 references to BestSymbolLocation
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Symbols.cs (23)
2357
private readonly
BestSymbolLocation
_location;
2375
return _location ==
BestSymbolLocation
.FromSourceModule;
2383
return _location ==
BestSymbolLocation
.FromAddedModule;
2391
return (_location ==
BestSymbolLocation
.FromSourceModule) || (_location ==
BestSymbolLocation
.FromAddedModule);
2399
return _location ==
BestSymbolLocation
.FromFile;
2407
return _location ==
BestSymbolLocation
.None;
2415
return _location ==
BestSymbolLocation
.FromCorLibrary;
2419
public BestSymbolInfo(
BestSymbolLocation
location, int index)
2421
Debug.Assert(location !=
BestSymbolLocation
.None);
2446
public static bool IsSecondLocationBetter(
BestSymbolLocation
firstLocation,
BestSymbolLocation
secondLocation)
2449
return (firstLocation ==
BestSymbolLocation
.None) || (firstLocation > secondLocation);
2465
BestSymbolLocation
location;
2469
location =
BestSymbolLocation
.None;
2472
var
current = GetLocation(compilation, ns);
2476
if (location ==
BestSymbolLocation
.FromSourceModule)
2502
private static
BestSymbolLocation
GetLocation(CSharpCompilation compilation, Symbol symbol)
2506
return
BestSymbolLocation
.FromFile;
2513
BestSymbolLocation
.FromSourceModule :
2514
BestSymbolLocation
.FromAddedModule;
2519
BestSymbolLocation
.FromCorLibrary :
2520
BestSymbolLocation
.FromReferencedAssembly;