1 write to TemporaryFilePath
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
45
this.
TemporaryFilePath
= Path.Combine(rootPath, directoryName, topLevelNamedType.Name + extension);
10 references to TemporaryFilePath
Microsoft.CodeAnalysis.Features (10)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (7)
110
_generatedFilenameToInformation[fileInfo.
TemporaryFilePath
] = fileInfo;
112
if (!File.Exists(fileInfo.
TemporaryFilePath
))
169
var directoryToCreate = Path.GetDirectoryName(fileInfo.
TemporaryFilePath
)!;
206
using (var textWriter = new StreamWriter(fileInfo.
TemporaryFilePath
, append: false, encoding: MetadataAsSourceGeneratedFileInfo.Encoding))
212
new FileInfo(fileInfo.
TemporaryFilePath
).IsReadOnly = true;
229
return new MetadataAsSourceFile(fileInfo.
TemporaryFilePath
, navigateLocation, documentName, documentTooltip);
335
workspace.OnDocumentClosed(documentId, new WorkspaceFileTextLoader(workspace.Services.SolutionServices, fileInfo.
TemporaryFilePath
, MetadataAsSourceGeneratedFileInfo.Encoding));
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (3)
87
Path.GetFileName(
TemporaryFilePath
),
88
loader: loadFileFromDisk ? new WorkspaceFileTextLoader(services,
TemporaryFilePath
, Encoding) : null,
89
filePath:
TemporaryFilePath
,