Skip to content

Conversation

JunaMeinhold
Copy link
Member

No description provided.

In `TypeGenerationStep.cs`, refactored pointer and handle type management by introducing new `StringBuilder` instances for better clarity and error handling. The logic for adding to `WrappedPointers` now includes error logging for conflicts, ensuring existing mappings are not overwritten.

In `HexaGen.csproj`, updated the `PackageId` to `HexaGen.Legacy` and changed the `PackageVersion` from `1.1.10` to `1.0.0`. Added an `ItemGroup` to include `LICENSE.txt` and `README.md` for packaging.
Bump the `PackageVersion` in `HexaGen.csproj` from `1.0.0` to `1.0.1`.
Updated the codebase to use Newtonsoft.Json instead of System.Text.Json for JSON serialization across multiple files. Incremented the PackageVersion in HexaGen.Core.csproj to 1.1.4.1 and added a reference to Newtonsoft.Json version 13.0.3.

Refactored the BaseGenerator class for improved configuration handling and introduced a new CollectionNormalizer class to ensure proper initialization of collections. Enhanced CsCodeGeneratorConfig with new properties and methods for better management.

Added the GeneratorBuilder class to streamline code generation setup and included new classes/interfaces like IConfigComposer, ImportType, and MergeOptions to support the new functionality.

Created a new TestApp project with a Program.cs entry point for testing, along with sample configuration files config.base.json and config.json for easier demonstration of features.
@JunaMeinhold JunaMeinhold changed the title Legacy Legacy code unification with mainline. Jul 15, 2025
- Modified `WriteConstructors` and `WriteConstructor` methods to include properties instead of fields.
- Introduced `targetsProperty` boolean to enhance parameter handling.
- Updated constructor logic for new property checks.
- Incremented `PackageVersion` in `HexaGen.csproj` from 1.0.6 to 1.0.7.
- Replaced `Foo` enum with boolean fields in `Test` struct in `Foo.cs`.
- Adjusted `Test` struct constructor to accommodate new boolean fields.
- Reformatted `TestApp.csproj` for consistent XML structure.
- Updated `main.h` to reflect changes in the `Test` struct.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant