Benjamin Hodgson

Results 80 comments of Benjamin Hodgson

Yes this is a well-known (to me, at least!) shortcoming of the single-type-param design of `IRewritable`. You can do it type-unsafely by implementing `IRewritable` on your base `SyntaxNode` abstract class...

For example: `ImmutableList` [implements](https://github.com/dotnet/runtime/blob/7b0fbc8e971aac12b77bbf6ed8f7e198b089a6ee/src/libraries/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableList_1.cs#L19) the internal interface [`IStrongEnumerable`](https://github.com/dotnet/runtime/blob/7b0fbc8e971aac12b77bbf6ed8f7e198b089a6ee/src/libraries/System.Collections.Immutable/src/System/Collections/Immutable/IStrongEnumerable_2.cs#L16), but that interface does not appear in [the docs for `ImmutableList`](https://learn.microsoft.com/en-us/dotnet/api/system.collections.immutable.immutablelist-1?view=net-9.0#code-try-0).

No promises, but I’ll see what I can do. Is supporting Windows older than 10 super important to you? Windows 8 has been unsupported (just like .NET 6) for well...

If you don't mind my asking, what kind of software are you shipping? Who are your users? I'm just trying to understand the constraints here - it seems odd to...

I looked into this. Supporting NetStandard would mean breaking `ITokenStream` as it contains default implementations. I don’t want to do the breaking change for Net6 (since I think it’s a...