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

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
    public string GetSourceNameFor(ILocalDefinition localDefinition, out bool isCompilerGenerated) {
      ISourceLocationProvider/*?*/ provider = this.GetProvider(localDefinition);
      if (provider == null) {
        isCompilerGenerated = false;
        return "";
      } else {
        return provider.GetSourceNameFor(localDefinition, out isCompilerGenerated);
      }
    }