Skip to content

Commit

Permalink
remove obsolete comment
Browse files Browse the repository at this point in the history
  • Loading branch information
asklar committed Aug 3, 2022
1 parent ab84b42 commit e98230b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Tests/DiagnosticTests/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Microsoft.CodeAnalysis.Diagnostics;

using Microsoft.CodeAnalysis.Diagnostics;

namespace DiagnosticTests
{
public sealed partial class UnitTesting
Expand All @@ -15,12 +15,12 @@ public sealed partial class UnitTesting
/// </summary>
/// <param name="source">string of source code</param>
/// <returns></returns>
private static Compilation CreateCompilation(string source)
private static Compilation CreateCompilation(string source)
=> CSharpCompilation.Create(
assemblyName: "compilation",
syntaxTrees: new[] { CSharpSyntaxTree.ParseText(source, new CSharpParseOptions(LanguageVersion.Preview)) },
references: new[] { MetadataReference.CreateFromFile(typeof(Binder).GetTypeInfo().Assembly.Location) },
options: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
options: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));

/// <summary>
/// CreateDriver makes a CSharpGeneratorDriver
Expand All @@ -34,7 +34,6 @@ private static GeneratorDriver CreateDriver(Compilation compilation, AnalyzerCon
additionalTexts: ImmutableArray<AdditionalText>.Empty,
parseOptions: (CSharpParseOptions)compilation.SyntaxTrees.First().Options,
optionsProvider: options);
// todo: pass the CsWinRTComponent config option here so we don't have to comment out the check in the source generator

/// <summary>
/// RunGenerators makes a driver and applies the given generators to the compilation, storing diagnostics in an out param
Expand Down

0 comments on commit e98230b

Please sign in to comment.