1 write to DocumentServiceProvider
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\DocumentInfo.cs (1)
70DocumentServiceProvider = documentServiceProvider;
11 references to DocumentServiceProvider
Microsoft.CodeAnalysis.Workspaces (6)
Workspace\Solution\AdditionalDocumentState.cs (1)
30: this(solutionServices, documentInfo.DocumentServiceProvider, documentInfo.Attributes, CreateTextAndVersionSource(solutionServices, documentInfo.TextLoader, documentInfo.FilePath, loadTextOptions), loadTextOptions)
Workspace\Solution\AnalyzerConfigDocumentState.cs (1)
36: this(solutionServices, documentInfo.DocumentServiceProvider, documentInfo.Attributes, CreateTextAndVersionSource(solutionServices, documentInfo.TextLoader, documentInfo.FilePath, loadTextOptions), loadTextOptions)
Workspace\Solution\DocumentInfo.cs (2)
105var newDocumentServiceProvider = documentServiceProvider.HasValue ? documentServiceProvider.Value : DocumentServiceProvider; 109newDocumentServiceProvider == DocumentServiceProvider)
Workspace\Solution\DocumentState.cs (1)
83info.DocumentServiceProvider,
Workspace\Solution\TextDocumentState.cs (1)
55.WithDocumentServiceProvider(info.DocumentServiceProvider)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace`1.cs (1)
384info.DocumentServiceProvider);
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
SolutionTests\DocumentInfoTests.cs (1)
113SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithDocumentServiceProvider(value), opt => opt.DocumentServiceProvider, serviceProvider);
SolutionTests\SolutionTests.cs (3)
1242Assert.Same(newDocumentInfo3.DocumentServiceProvider, newDocument3.DocumentServiceProvider); 1263Assert.Same(newAddDocumentInfo3.DocumentServiceProvider, newAddDocument3.DocumentServiceProvider); 1284Assert.Same(newConfigDocumentInfo3.DocumentServiceProvider, newConfigDocument3.DocumentServiceProvider);