-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
Source generator - Improved diagnostics
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Microsoft.CodeAnalysis; | ||
using Microsoft.CodeAnalysis.CSharp.Testing; | ||
using Microsoft.CodeAnalysis.Testing; | ||
using SpreadCheetah.SourceGeneration; | ||
using SpreadCheetah.SourceGenerators; | ||
|
||
namespace SpreadCheetah.SourceGenerator.SnapshotTest.Helpers; | ||
|
||
internal static class AnalyzerTest | ||
{ | ||
public static CSharpAnalyzerTest<WorksheetRowAnalyzer, DefaultVerifier> CreateContext() | ||
{ | ||
return new CSharpAnalyzerTest<WorksheetRowAnalyzer, DefaultVerifier> | ||
{ | ||
TestState = | ||
{ | ||
ReferenceAssemblies = ReferenceAssemblies.Net.Net80, | ||
AdditionalReferences = | ||
{ | ||
MetadataReference.CreateFromFile(typeof(WorksheetRowAttribute).Assembly.Location) | ||
} | ||
} | ||
}; | ||
} | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.