コード例 #1
0
 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
             )
         );
 }
コード例 #2
0
 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));
 }