Commit Graph
5 Commits
Author SHA1 Message Date
83c2a1be11 [Dependency] source generator part 2 (#6550)
* [Dependency] source generator

No more reflection, no more codegen at runtime

Also various changes to Roslyn helpers to make this easier to write.

Requires all types with dependencies to be partial and not have readonly dependency fields. An analyzer enforces this at warning level, the previous injection strategies have remained in the code *for now* as a fallback.

No fallback is available for [field: Dependency] properties, due to a Roslyn bug.

Code Fixes exist. We love Roslyn

* Apply dependencies generator changes to all code

* Release notes

* Preprocessor got hands

* Handle nullable dependencies

These are bad but gotta deal with it.

* Apply suggestions from code review

Co-authored-by: Moony <moony@hellomouse.net>

* Fine, let's not use collection expressions

---------

Co-authored-by: Moony <moony@hellomouse.net>
2026-05-08 12:38:33 +02:00
metalgearslothandGitHub fdfe0949ab Hotfix generic visualizers (#3602) 2022-12-21 16:28:31 +11:00
AJCM-gitandGitHub 78a75daea2 SharedAppearanceSystem.TryGetData() generics support and small VisualizerSystem tweak (#3583) 2022-12-20 14:21:10 -08:00
Leon FriedrichandGitHub 790d523ebd Remove string keys from appearance component (#3086) 2022-08-08 11:43:17 +10:00
Leon FriedrichandGitHub 0d04d8a82a Add generic visualizer system (#2914) 2022-06-09 03:08:36 +10:00