C# Class Microsoft.Cci.AggregatingSourceLocationProvider

Inheritance: ISourceLocationProvider, IDisposable
Show file Open project: visualmutator/visualmutator Class Usage Examples

Public Methods

Method Description
AggregatingSourceLocationProvider ( ISourceLocationProvider>.Dictionary unit2ProviderMap ) : System

Uses the given dictionary to find the appropriate provider for a query.

AggregatingSourceLocationProvider ( ISourceLocationProvider>.IDictionary unit2ProviderMap ) : System

Copies the contents of the table

Dispose ( ) : void

Disposes all aggregated providers.

GetPrimarySourceLocationsFor ( IEnumerable locations ) : IEnumerable

Return zero or more locations in primary source documents that correspond to one or more of the given derived (non primary) document locations.

GetPrimarySourceLocationsFor ( ILocation location ) : IEnumerable

Return zero or more locations in primary source documents that correspond to the given derived (non primary) document location.

GetPrimarySourceLocationsForDefinitionOf ( ILocalDefinition localDefinition ) : IEnumerable

Return zero or more locations in primary source documents that correspond to the definition of the given local.

GetSourceNameFor ( ILocalDefinition localDefinition, bool &isCompilerGenerated ) : string

Returns the source name of the given local definition, if this is available. Otherwise returns the value of the Name property and sets isCompilerGenerated to true.

Private Methods

Method Description
Close ( ) : void
GetProvider ( IILLocation mbLocation ) : ISourceLocationProvider
GetProvider ( ILocalDefinition localDefinition ) : ISourceLocationProvider
GetProvider ( IMethodDefinition methodDefinition ) : ISourceLocationProvider
MapLocationToSourceLocations ( ILocation location ) : IEnumerable

Method Details

AggregatingSourceLocationProvider() public method

Uses the given dictionary to find the appropriate provider for a query.
public AggregatingSourceLocationProvider ( ISourceLocationProvider>.Dictionary unit2ProviderMap ) : System
unit2ProviderMap ISourceLocationProvider>.Dictionary
return System

AggregatingSourceLocationProvider() public method

Copies the contents of the table
public AggregatingSourceLocationProvider ( ISourceLocationProvider>.IDictionary unit2ProviderMap ) : System
unit2ProviderMap ISourceLocationProvider>.IDictionary
return System

Dispose() public method

Disposes all aggregated providers.
public Dispose ( ) : void
return void

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

GetPrimarySourceLocationsFor() public method

Return zero or more locations in primary source documents that correspond to the given derived (non primary) document location.
public GetPrimarySourceLocationsFor ( ILocation location ) : IEnumerable
location ILocation A location in a document that have been derived from one or more source documents.
return IEnumerable

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

GetSourceNameFor() public method

Returns the source name of the given local definition, if this is available. Otherwise returns the value of the Name property and sets isCompilerGenerated to true.
public GetSourceNameFor ( ILocalDefinition localDefinition, bool &isCompilerGenerated ) : string
localDefinition ILocalDefinition
isCompilerGenerated bool
return string