SourceGen started
This commit is contained in:
1 parent
a3cd3e86a1
commit
a409054750
274 files changed
+14862
-3
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
using System.Threading;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.Text;
|
||||
|
||||
namespace InfraGens.Tests.Utils;
|
||||
|
||||
public class TestAdditionalFile : AdditionalText
|
||||
{
|
||||
private readonly SourceText _text;
|
||||
|
||||
public TestAdditionalFile(string path, string text)
|
||||
{
|
||||
Path = path;
|
||||
_text = SourceText.From(text);
|
||||
}
|
||||
|
||||
public override SourceText GetText(CancellationToken cancellationToken = new()) => _text;
|
||||
|
||||
public override string Path { get; }
|
||||
}
|
||||
Reference in new issue
Block a user