23 references to MetadataAsSourceWorkspace
Microsoft.CodeAnalysis.Features (23)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (6)
64MetadataAsSourceWorkspace metadataWorkspace, 280public bool ShouldCollapseOnOpen(MetadataAsSourceWorkspace workspace, string filePath, BlockStructureOptions blockStructureOptions) 292public bool TryAddDocumentToWorkspace(MetadataAsSourceWorkspace workspace, string filePath, SourceTextContainer sourceTextContainer, [NotNullWhen(true)] out DocumentId? documentId) 315public bool TryRemoveDocumentFromWorkspace(MetadataAsSourceWorkspace workspace, string filePath) 329private bool RemoveDocumentFromWorkspace_NoLock(MetadataAsSourceWorkspace workspace, MetadataAsSourceGeneratedFileInfo fileInfo) 358public void CleanupGeneratedFiles(MetadataAsSourceWorkspace workspace)
MetadataAsSource\IMetadataAsSourceFileProvider.cs (5)
21MetadataAsSourceWorkspace metadataWorkspace, 34void CleanupGeneratedFiles(MetadataAsSourceWorkspace workspace); 40bool TryAddDocumentToWorkspace(MetadataAsSourceWorkspace workspace, string filePath, SourceTextContainer sourceTextContainer, [NotNullWhen(true)] out DocumentId? documentId); 46bool TryRemoveDocumentFromWorkspace(MetadataAsSourceWorkspace workspace, string filePath); 52bool ShouldCollapseOnOpen(MetadataAsSourceWorkspace workspace, string filePath, BlockStructureOptions blockStructureOptions);
MetadataAsSource\MetadataAsSourceFileService.cs (6)
39private MetadataAsSourceWorkspace? _workspace; 160private static void AssertIsMainThread(MetadataAsSourceWorkspace workspace) 171var workspace = _workspace; 195var workspace = _workspace; 216var workspace = _workspace; 223$"'{nameof(ShouldCollapseOnOpen)}' should only be called once outlining has already confirmed that '{filePath}' is from the {nameof(MetadataAsSourceWorkspace)}");
MetadataAsSource\SymbolMappingServiceFactory.cs (1)
26=> new SymbolMappingService(((MetadataAsSourceWorkspace)workspaceServices.Workspace).FileService);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (5)
79MetadataAsSourceWorkspace metadataWorkspace, 369public bool ShouldCollapseOnOpen(MetadataAsSourceWorkspace workspace, string filePath, BlockStructureOptions blockStructureOptions) 374public bool TryAddDocumentToWorkspace(MetadataAsSourceWorkspace workspace, string filePath, SourceTextContainer sourceTextContainer, [NotNullWhen(true)] out DocumentId? documentId) 394public bool TryRemoveDocumentFromWorkspace(MetadataAsSourceWorkspace workspace, string filePath) 444public void CleanupGeneratedFiles(MetadataAsSourceWorkspace workspace)