1 write to TemporaryFilePath
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
45this.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; 112if (!File.Exists(fileInfo.TemporaryFilePath)) 169var directoryToCreate = Path.GetDirectoryName(fileInfo.TemporaryFilePath)!; 206using (var textWriter = new StreamWriter(fileInfo.TemporaryFilePath, append: false, encoding: MetadataAsSourceGeneratedFileInfo.Encoding)) 212new FileInfo(fileInfo.TemporaryFilePath).IsReadOnly = true; 229return new MetadataAsSourceFile(fileInfo.TemporaryFilePath, navigateLocation, documentName, documentTooltip); 335workspace.OnDocumentClosed(documentId, new WorkspaceFileTextLoader(workspace.Services.SolutionServices, fileInfo.TemporaryFilePath, MetadataAsSourceGeneratedFileInfo.Encoding));
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (3)
87Path.GetFileName(TemporaryFilePath), 88loader: loadFileFromDisk ? new WorkspaceFileTextLoader(services, TemporaryFilePath, Encoding) : null, 89filePath: TemporaryFilePath,