Skip to content

Ensure generated converters match source type accessibility#1

Merged
neuecc merged 1 commit intoCysharp:mainfrom
ProjektMing:accessibility-fix
Dec 28, 2025
Merged

Ensure generated converters match source type accessibility#1
neuecc merged 1 commit intoCysharp:mainfrom
ProjektMing:accessibility-fix

Conversation

@ProjektMing
Copy link
Contributor

This PR improves the accessibility consistency of the source generator’s output. Previously, generated converter classes defaulted to public. This change ensures that all generated converters inherit and match the accessibility level (e.g., internal, public, private) of their target types.

Additionally, this PR includes minor code modernizations for array and list handling.

A new property is added to ToonObjectInfo record to track target type accessibility.

@neuecc
Copy link
Member

neuecc commented Dec 28, 2025

Thanks!
I forgot about the accessibility settings, that's really helpful!

@neuecc neuecc merged commit 7dd3942 into Cysharp:main Dec 28, 2025
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.

2 participants