3 writes to SourceFile
dotnet (3)
Commands\Run\FileBasedAppSourceEditor.cs (3)
56SourceFile = sourceFile, 82SourceFile = SourceFile.WithText(SourceFile.Text.WithChanges([change])); 219SourceFile = SourceFile.WithText(SourceFile.Text.Replace(start: start, length: length, newText: string.Empty));
10 references to SourceFile
dotnet (9)
Commands\Package\Add\PackageAddCommand.cs (2)
262editor.SourceFile.Save(); 269editor.SourceFile.Save();
Commands\Package\Remove\PackageRemoveCommand.cs (1)
86editor.SourceFile.Save();
Commands\Run\FileBasedAppSourceEditor.cs (6)
36field = VirtualProjectBuildingCommand.FindDirectives(SourceFile, reportAllErrors: false, DiagnosticBag.Ignore()); 82SourceFile = SourceFile.WithText(SourceFile.Text.WithChanges([change])); 119var tokenizer = VirtualProjectBuildingCommand.CreateTokenizer(SourceFile.Text); 219SourceFile = SourceFile.WithText(SourceFile.Text.Replace(start: start, length: length, newText: string.Empty));
dotnet.Tests (1)
CommandTests\Run\FileBasedAppSourceEditorTests.cs (1)
462var actualOutput = editor.SourceFile.Text.ToString();