Source Generator Architecture
Deep-dive into how REslava.Result.SourceGenerators works — from attribute detection to generated output.
-
Source Generators Package Zero-boilerplate code generation — SmartEndpoints, IResult, ActionResult, and Validate generators.
-
Two-Phase Pipeline How generators run in two phases — attribute registration then source output.
-
Smart Auto-Detection Zero-config setup detection for OneOf arities — how v1.10.0 eliminated all boilerplate.
-
Error → HTTP Status Convention Convention-based name matching that maps error types to HTTP status codes automatically.
-
Core Library Components Shared orchestrators, attribute generators, and code generators used by all source generators.
-
Generated Output Structure What files the generators emit and where they land in your project.
-
Build Integration Automatic MSBuild integration — how generators hook into the build pipeline.
-
SOLID Design (v1.9.4+) Three-class generator pattern (SRP) — orchestrator, attribute generator, code generator.
-
Incremental Rebuilds How
RegisterSourceOutput+SyntaxValueProviderkeeps builds fast in large solutions.