23 references to MetadataAsSourceWorkspace
Microsoft.CodeAnalysis.Features (23)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (6)
64
MetadataAsSourceWorkspace
metadataWorkspace,
280
public bool ShouldCollapseOnOpen(
MetadataAsSourceWorkspace
workspace, string filePath, BlockStructureOptions blockStructureOptions)
292
public bool TryAddDocumentToWorkspace(
MetadataAsSourceWorkspace
workspace, string filePath, SourceTextContainer sourceTextContainer, [NotNullWhen(true)] out DocumentId? documentId)
315
public bool TryRemoveDocumentFromWorkspace(
MetadataAsSourceWorkspace
workspace, string filePath)
329
private bool RemoveDocumentFromWorkspace_NoLock(
MetadataAsSourceWorkspace
workspace, MetadataAsSourceGeneratedFileInfo fileInfo)
358
public void CleanupGeneratedFiles(
MetadataAsSourceWorkspace
workspace)
MetadataAsSource\IMetadataAsSourceFileProvider.cs (5)
21
MetadataAsSourceWorkspace
metadataWorkspace,
34
void CleanupGeneratedFiles(
MetadataAsSourceWorkspace
workspace);
40
bool TryAddDocumentToWorkspace(
MetadataAsSourceWorkspace
workspace, string filePath, SourceTextContainer sourceTextContainer, [NotNullWhen(true)] out DocumentId? documentId);
46
bool TryRemoveDocumentFromWorkspace(
MetadataAsSourceWorkspace
workspace, string filePath);
52
bool ShouldCollapseOnOpen(
MetadataAsSourceWorkspace
workspace, string filePath, BlockStructureOptions blockStructureOptions);
MetadataAsSource\MetadataAsSourceFileService.cs (6)
39
private
MetadataAsSourceWorkspace
? _workspace;
160
private static void AssertIsMainThread(
MetadataAsSourceWorkspace
workspace)
171
var
workspace = _workspace;
195
var
workspace = _workspace;
216
var
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)
79
MetadataAsSourceWorkspace
metadataWorkspace,
369
public bool ShouldCollapseOnOpen(
MetadataAsSourceWorkspace
workspace, string filePath, BlockStructureOptions blockStructureOptions)
374
public bool TryAddDocumentToWorkspace(
MetadataAsSourceWorkspace
workspace, string filePath, SourceTextContainer sourceTextContainer, [NotNullWhen(true)] out DocumentId? documentId)
394
public bool TryRemoveDocumentFromWorkspace(
MetadataAsSourceWorkspace
workspace, string filePath)
444
public void CleanupGeneratedFiles(
MetadataAsSourceWorkspace
workspace)