Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
psfinaki committed Sep 21, 2023
1 parent 754f469 commit 8581c9b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private CsharpFolderComposite FindProjectFilesUsingBuildalyzer(IAnalyzerResult a
var relativePath = Path.GetRelativePath(sourceProjectDir, sourceFile);
var folderComposite = GetOrBuildFolderComposite(cache, Path.GetDirectoryName(relativePath), sourceProjectDir, projectUnderTestFolderComposite);

var file = new CsharpFileLeaf()
var file = new CsharpFileLeaf(options.Mutate)
{
SourceCode = FileSystem.File.ReadAllText(sourceFile),
FullPath = sourceFile,
Expand Down Expand Up @@ -197,7 +197,7 @@ private CsharpFolderComposite FindInputFiles(string path, string sourceProjectDi
// Roslyn cannot compile xaml.cs files generated by xamarin.
// Since the files are generated they should not be mutated anyway, so skip these files.

var fileLeaf = new CsharpFileLeaf()
var fileLeaf = new CsharpFileLeaf(_options.Mutate)
{
SourceCode = FileSystem.File.ReadAllText(file),
FullPath = file,
Expand Down

0 comments on commit 8581c9b

Please sign in to comment.