ImmutableObjectGraph icon indicating copy to clipboard operation
ImmutableObjectGraph copied to clipboard

Code generation for immutable types

Results 20 ImmutableObjectGraph issues
Sort by recently updated
recently updated
newest added

This PR switches to the official source generators. The demo project and all tests run fine on my machine. Also tested the nuget package on a different project locally.

This adds the ability to reset a builder with an immutable object by copying all the fields into the builder. I think it handles recursive builders correctly. Writing Roslyn syntax...

Rather than copy docs around in the generated code, use syntax like this: ```cs /// ```

The With methods try to use the `==` operator between two structs, which isn't legal unless the operator happens to be defined on that struct, which in the case of...

It seems the generated code uses a extension method ResetContents that requires *using ImmutableObjectGraph;* which is not present on the generated file. It happens when use fields of type ImmutableList

Just came up here that a project referencing ImmutableObjectGraph failed to build the moment .NET Core SDK 3 was installed. Something about dotnet-codegen --info Once I uninstalled .NET Core SDK...

This is a pretty big feature. Is this something you would consider? I've spent a fair amount of time studying the implementation and reproducing more generic versions of it and...

I still need to think through some of this design, particularly the VisitChildren and RewriteChildren but I wanted to get this on your radar. ```csharp public interface IVisitor { void...

This should probably be independent of the Delta switch -- or maybe should actually work, even for non self-recursive types.

enhancement