public AggregateIncrementalAnalyzer( Workspace workspace, IncrementalAnalyzerProviderBase owner, List < Lazy < IPerLanguageIncrementalAnalyzerProvider, PerLanguageIncrementalAnalyzerProviderMetadata > > providers ) { Analyzers = providers.ToImmutableDictionary( p => p.Metadata.Language, p => new Lazy <IIncrementalAnalyzer>( () => p.Value.CreatePerLanguageIncrementalAnalyzer(workspace, owner), isThreadSafe: true ) ); }
public AggregateIncrementalAnalyzer(Workspace workspace, IncrementalAnalyzerProviderBase owner, List<Lazy<IPerLanguageIncrementalAnalyzerProvider, PerLanguageIncrementalAnalyzerProviderMetadata>> providers) { this.Analyzers = providers.ToImmutableDictionary( p => p.Metadata.Language, p => new Lazy<IIncrementalAnalyzer>(() => p.Value.CreatePerLanguageIncrementalAnalyzer(workspace, owner), isThreadSafe: true)); }