14 writes to FileSystem
Microsoft.CodeAnalysis (1)
CommandLine\CommonCompiler.cs (1)
137this.FileSystem = fileSystem ?? StandardFileSystem.Instance;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (7)
CommandLineTests.cs (7)
8772csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 8795csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 8817csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 8841csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 8869csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 8895csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 8920csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) =>
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
BasicDeterministicKeyBuilderTests.cs (1)
203compiler.FileSystem = TestableFileSystem.CreateForFiles((filePath, new TestableFile("hello")));
CSharpDeterministicKeyBuilderTests.cs (1)
386compiler.FileSystem = TestableFileSystem.CreateForFiles((filePath, new TestableFile("hello")));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (4)
CommandLineTests.vb (4)
9465vbc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc:= 9485vbc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc:= 9504vbc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc:= 9525vbc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc:=
8 references to FileSystem
Microsoft.CodeAnalysis (7)
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (1)
113return _streamToDispose = _compiler.FileSystem.OpenFile(_filePath, FileMode.Create, FileAccess.ReadWrite, FileShare.None);
CommandLine\CommonCompiler.cs (6)
210var peStream = FileSystem.OpenFileWithNormalizedException(path, FileMode.Open, FileAccess.Read, FileShare.Read); 217var pathResolver = new CompilerRelativePathResolver(FileSystem, Arguments.ReferencePaths, Arguments.BaseDirectory!); 386=> FileSystem.OpenFileEx( 1155EmitDeterminismKey(compilation, FileSystem, additionalTextFiles, analyzers, generators, Arguments.PathMap, emitOptions); 1262using (var win32ResourceStreamOpt = GetWin32Resources(FileSystem, MessageProvider, Arguments, compilation, diagnostics)) 1487return FileSystem.OpenFile(filePath, mode, access, share);
Microsoft.CodeAnalysis.Test.Utilities (1)
TestableCompiler.cs (1)
62if (!object.ReferenceEquals(compiler.FileSystem, fileSystem))