Skip to content

Commit 77bd959

Browse files
committed
Add BitfieldChangeDetector stub for test project compilation
The source generator now emits a change detection factory that references BitfieldChangeDetector<T>, which lives in the consuming project. The test project needs a minimal stub so the generated code compiles.
1 parent b9263a1 commit 77bd959

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Stub so the generated change detection factory compiles in the test project,
3+
* which does not reference the real BitfieldChangeDetector implementation.
4+
*/
5+
namespace Modspec.Model;
6+
7+
public class BitfieldChangeDetector<TClient>
8+
{
9+
public BitfieldChangeDetector<TClient> Track<T>(System.Func<TClient, T> getter, System.Func<T, Level> getLevel) where T : struct, System.Enum
10+
{
11+
return this;
12+
}
13+
}

0 commit comments

Comments
 (0)