Source Generators: REslava.Result.SourceGenerators

Zero-Boilerplate Code Generation

SourceGenerator/
β”œβ”€β”€ Core/                           # πŸ“ Generator Infrastructure
β”‚   β”œβ”€β”€ CodeGeneration/            # πŸ“ CodeBuilder utilities
β”‚   β”œβ”€β”€ Utilities/                 # 🌐 HttpStatusCodeMapper, AttributeParser
β”‚   β”œβ”€β”€ Configuration/             # βš™οΈ Configuration base classes
β”‚   └── Interfaces/                # οΏ½ SOLID interfaces
β”œβ”€β”€ Generators/                     # πŸ“¦ Individual Generators
β”‚   β”œβ”€β”€ ResultToIResult/          # 🎯 Result β†’ Minimal API IResult conversion
β”‚   β”‚   β”œβ”€β”€ Attributes/            # 🏷️ Auto-generated attributes
β”‚   β”‚   β”œβ”€β”€ CodeGeneration/        # πŸ’» Extension method generation
β”‚   β”‚   └── Orchestration/         # 🎼 Pipeline coordination
β”‚   β”œβ”€β”€ ResultToActionResult/      # 🎯 Result β†’ MVC IActionResult conversion (v1.21.0)
β”‚   β”‚   β”œβ”€β”€ Attributes/            # 🏷️ Auto-generated attributes
β”‚   β”‚   β”œβ”€β”€ CodeGeneration/        # πŸ’» Extension method generation
β”‚   β”‚   └── Orchestration/         # 🎼 Pipeline coordination
β”‚   β”œβ”€β”€ OneOfToIResult/            # πŸš€ OneOf<T1,...,TN> β†’ HTTP (consolidated v1.14.1)
β”‚   β”‚   β”œβ”€β”€ OneOf2ToIResultGenerator.cs  # 🎯 Thin wrapper (arity=2)
β”‚   β”‚   β”œβ”€β”€ OneOf3ToIResultGenerator.cs  # 🎯 Thin wrapper (arity=3)
β”‚   β”‚   β”œβ”€β”€ OneOf4ToIResultGenerator.cs  # 🎯 Thin wrapper (arity=4)
β”‚   β”‚   β”œβ”€β”€ Attributes/            # 🏷️ Shared attribute generators
β”‚   β”‚   β”œβ”€β”€ CodeGeneration/        # πŸ’» Arity-parameterized extensions
β”‚   β”‚   └── Orchestration/         # 🎼 Single shared orchestrator
β”‚   β”œβ”€β”€ OneOfToActionResult/       # 🎯 OneOf<T1,...,TN> β†’ MVC IActionResult (v1.22.0)
β”‚   β”‚   β”œβ”€β”€ OneOf2ToActionResultGenerator.cs  # 🎯 Thin wrapper (arity=2)
β”‚   β”‚   β”œβ”€β”€ OneOf3ToActionResultGenerator.cs  # 🎯 Thin wrapper (arity=3)
β”‚   β”‚   β”œβ”€β”€ OneOf4ToActionResultGenerator.cs  # 🎯 Thin wrapper (arity=4)
β”‚   β”‚   β”œβ”€β”€ Attributes/            # 🏷️ Shared attribute generators
β”‚   β”‚   β”œβ”€β”€ CodeGeneration/        # πŸ’» Arity-parameterized extensions
β”‚   β”‚   └── Orchestration/         # 🎼 Single shared orchestrator
β”‚   └── SmartEndpoints/            # ⚑ Auto-generate Minimal APIs (v1.11.0+)
β”‚       β”œβ”€β”€ Attributes/            # 🏷️ AutoGenerateEndpoints attribute
β”‚       β”œβ”€β”€ CodeGeneration/        # πŸ’» SmartEndpointExtensionGenerator
β”‚       β”œβ”€β”€ Models/                # πŸ“‹ EndpointMetadata
β”‚       └── Orchestration/         # 🎼 SmartEndpointsOrchestrator
└── Tests/                         # πŸ§ͺ Comprehensive Test Suite (1,976+ tests)
    β”œβ”€β”€ OneOfToIResult/           # βœ… 12/12 tests (unified, covers arity 2/3/4)
    β”œβ”€β”€ OneOfToActionResult/      # βœ… 12/12 tests passing (NEW v1.22.0!)
    β”œβ”€β”€ SmartEndpoints/           # βœ… 4/4 tests passing
    β”œβ”€β”€ ResultToIResult/          # βœ… 6/6 tests passing
    β”œβ”€β”€ ResultToActionResult/     # βœ… 9/9 tests passing (NEW v1.21.0!)
    β”œβ”€β”€ CoreLibrary/              # πŸ“š Base library tests
    └── GeneratorTest/             # οΏ½ Integration tests

πŸ“ Visual Architecture: See Core Type Hierarchy and Source Generator Pipeline for detailed Mermaid diagrams.