SourceGen started

This commit is contained in:
ThomasCharester committed 2026-01-20 16:59:57 +03:00
1 parent a3cd3e86a1
commit a409054750
274 files changed
+14862 -3

No files matched your search

@@ -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; }
}