Skip to content

Commit

Permalink
Simplify perf test
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkiGibson committed May 19, 2021
1 parent 5dc2a8a commit 4718b68
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -653,11 +653,7 @@ class C

sourceBuilder.Append(source2);

var tree = SyntaxFactory.ParseSyntaxTree(sourceBuilder.ToString(), path: "bench.cs");
var comp = CSharpCompilation.Create(
"Benchmark",
new[] { tree },
new[] { MetadataReference.CreateFromFile(typeof(object).Assembly.Location) });
var comp = CreateCompilation(sourceBuilder.ToString());
comp.VerifyDiagnostics();
}
}
Expand Down

0 comments on commit 4718b68

Please sign in to comment.