CodeGenHelpers icon indicating copy to clipboard operation
CodeGenHelpers copied to clipboard

The CodeGenHelpers is meant to help anyone who is working on C# CodeGenerator

Results 9 CodeGenHelpers issues
Sort by recently updated
recently updated
newest added

ability to add params of same type

Ability to add "#warning" on property

I'm adding one file which has several classes in it - for this I have one `CodeBuilder` where I call `AddClass` many times. What I want to achieve is to...

Currently when we want to Invoke something in a method body we have to use AppendLine: ``` methodBuilder.WithBody((x) => { x.AppendLine($"await Test(argument1, argument2)); }); ``` Idea would be to create...

Currently it doesnt seem to be possible to add Enums inside a class. Is this with a specific reason or just not supported(yet).

I've just found this project and decided to try it out by copying the example provided in the readme. On doing so I found some issues, although since I'm not...

I'm not sure if I'm doing something crazy but I have this code ``` .AddConstructor(Accessibility.Public).WithBaseCall(new Dictionary() { ["IPage"] = "page", ["string"] = "absolutePath", ["string"] = "elementPath", }) ``` which will...

Adding libraries to source generators as dependencies is notoriously hard: https://github.com/dotnet/roslyn/blob/main/docs/features/source-generators.cookbook.md#use-functionality-from-nuget-packages And it gets worse if multiple generators use the same library but in different versions as roslyn does _not_...