Microsoft.Cci.AggregatingSourceLocationProvider.GetPrimarySourceLocationsForDefinitionOf C# (CSharp) Method

GetPrimarySourceLocationsForDefinitionOf() public method

Return zero or more locations in primary source documents that correspond to the definition of the given local.
public GetPrimarySourceLocationsForDefinitionOf ( ILocalDefinition localDefinition ) : IEnumerable
localDefinition ILocalDefinition
return IEnumerable
    public IEnumerable<IPrimarySourceLocation> GetPrimarySourceLocationsForDefinitionOf(ILocalDefinition localDefinition) {
      ISourceLocationProvider/*?*/ provider = this.GetProvider(localDefinition);
      if (provider == null)
        return Enumerable<IPrimarySourceLocation>.Empty;
      else
        return provider.GetPrimarySourceLocationsForDefinitionOf(localDefinition);
    }