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

GetPrimarySourceLocationsFor() public method

Return zero or more locations in primary source documents that correspond to one or more of the given derived (non primary) document locations.
public GetPrimarySourceLocationsFor ( IEnumerable locations ) : IEnumerable
locations IEnumerable Zero or more locations in documents that have been derived from one or more source documents.
return IEnumerable
    public IEnumerable<IPrimarySourceLocation> GetPrimarySourceLocationsFor(IEnumerable<ILocation> locations) {
      foreach (ILocation location in locations) {
        foreach (var psloc in this.MapLocationToSourceLocations(location))
          yield return psloc;
      }
    }

Same methods

AggregatingSourceLocationProvider::GetPrimarySourceLocationsFor ( ILocation location ) : IEnumerable