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