10 writes to FileSystem
Microsoft.CodeAnalysis (1)
CommandLine\CommonCompiler.cs (1)
140this.FileSystem = fileSystem ?? StandardFileSystem.Instance;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (7)
CommandLineTests.cs (7)
8985csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 9008csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 9030csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 9054csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 9082csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 9108csc.FileSystem = TestableFileSystem.CreateForStandard(openFileFunc: (file, mode, access, share) => 9133csc.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)
382compiler.FileSystem = TestableFileSystem.CreateForFiles((filePath, new TestableFile("hello")));
8 references to FileSystem
Microsoft.CodeAnalysis (7)
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (1)
112return _streamToDispose = _compiler.FileSystem.OpenFile(_filePath, FileMode.Create, FileAccess.ReadWrite, FileShare.None);
CommandLine\CommonCompiler.cs (6)
201var peStream = FileSystem.OpenFileWithNormalizedException(path, FileMode.Open, FileAccess.Read, FileShare.Read); 208var pathResolver = new CompilerRelativePathResolver(FileSystem, Arguments.ReferencePaths, Arguments.BaseDirectory); 377=> FileSystem.OpenFileEx( 1276FileSystem, 1371using (var win32ResourceStreamOpt = GetWin32Resources(FileSystem, MessageProvider, Arguments, compilation, diagnostics)) 1626return FileSystem.OpenFile(filePath, mode, access, share);
Microsoft.CodeAnalysis.Test.Utilities (1)
TestableCompiler.cs (1)
62if (!object.ReferenceEquals(compiler.FileSystem, fileSystem))