23 references to BestSymbolLocation
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Symbols.cs (23)
2443
private readonly
BestSymbolLocation
_location;
2461
return _location ==
BestSymbolLocation
.FromSourceModule;
2469
return _location ==
BestSymbolLocation
.FromAddedModule;
2477
return (_location ==
BestSymbolLocation
.FromSourceModule) || (_location ==
BestSymbolLocation
.FromAddedModule);
2485
return _location ==
BestSymbolLocation
.FromFile;
2493
return _location ==
BestSymbolLocation
.None;
2501
return _location ==
BestSymbolLocation
.FromCorLibrary;
2505
public BestSymbolInfo(
BestSymbolLocation
location, int index)
2507
Debug.Assert(location !=
BestSymbolLocation
.None);
2532
public static bool IsSecondLocationBetter(
BestSymbolLocation
firstLocation,
BestSymbolLocation
secondLocation)
2535
return (firstLocation ==
BestSymbolLocation
.None) || (firstLocation > secondLocation);
2551
BestSymbolLocation
location;
2555
location =
BestSymbolLocation
.None;
2558
var
current = GetLocation(compilation, ns);
2562
if (location ==
BestSymbolLocation
.FromSourceModule)
2588
private static
BestSymbolLocation
GetLocation(CSharpCompilation compilation, Symbol symbol)
2592
return
BestSymbolLocation
.FromFile;
2599
BestSymbolLocation
.FromSourceModule :
2600
BestSymbolLocation
.FromAddedModule;
2605
BestSymbolLocation
.FromCorLibrary :
2606
BestSymbolLocation
.FromReferencedAssembly;