Skip to content

chore(core): remove Wolverine-specific Roslyn source generator#2679

Merged
jeremydmiller merged 1 commit intomainfrom
source-generator-removal
May 5, 2026
Merged

chore(core): remove Wolverine-specific Roslyn source generator#2679
jeremydmiller merged 1 commit intomainfrom
source-generator-removal

Conversation

@jeremydmiller
Copy link
Copy Markdown
Member

Summary

  • Strips the experimental Wolverine.SourceGeneration analyzer project and its IWolverineTypeLoader / [WolverineTypeManifest] / CompositeWolverineTypeLoader surface — the compile-time handler-discovery branch was never wired up in steady state, so the source-gen path was carrying weight without pulling any. Handler graph compilation always falls back to compileWithRuntimeScanning, which has been the only exercised path.
  • Drops the analyzer ProjectReference + Pack include from Wolverine.csproj (so the WolverineFx NuGet no longer ships the netstandard2.0 analyzer DLL), removes the source-gen branches in ExtensionLoader.ApplyExtensions, WolverineRuntime.HostService startup, HandlerGraph.Compile, and HandlerChain.AttachTypes, plus the two TypeLoaderManifestModule* test fixtures and their aggregation tests.
  • JasperFx.SourceGeneration (separate package, used as analyzer reference) is unaffected. Bumps to 5.37.2.

Test plan

  • dotnet build src/Wolverine/Wolverine.csproj --framework net9.0 clean
  • dotnet test src/Testing/CoreTests/CoreTests.csproj --framework net9.0 — 1537 passed, 0 failed

🤖 Generated with Claude Code

Strips the experimental Wolverine.SourceGeneration analyzer project and
its IWolverineTypeLoader / [WolverineTypeManifest] / CompositeWolverineTypeLoader
surface. The compile-time handler-discovery branch was never exercised in
steady state — handler graph compilation always falls back to
compileWithRuntimeScanning, so the source-gen path was carrying weight without
pulling any. Removes:

- src/Wolverine.SourceGeneration/ (whole project)
- IWolverineTypeLoader, CompositeWolverineTypeLoader, WolverineTypeManifestAttribute
- The analyzer ProjectReference + Pack include in Wolverine.csproj
- The source-gen branches in ExtensionLoader.ApplyExtensions,
  WolverineRuntime.HostService startup, HandlerGraph.Compile, and
  HandlerChain.AttachTypes
- TypeLoaderManifestModuleA/B test fixtures and their aggregation tests

JasperFx.SourceGeneration (separate package, used as analyzer reference) is
unaffected. Bumps to 5.37.2.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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