Skip to content

Generate stunts for ref struct, pointer, and ref readonly signatures - #239

Merged
kzu merged 1 commit into
mainfrom
dev/ref-struct-signatures
Sep 29, 2026
Merged

kzu merged 1 commit into
mainfrom
dev/ref-struct-signatures

Conversation

@kzu

@kzu kzu commented Sep 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Generate ref readonly, ref struct, and pointer signatures instead of rejecting them. Behaviors read those values as StructRef<T>, SpanRef<T>, ReadOnlySpanRef<T>, or PointerRef.
  • ref readonly is emitted as that keyword, so the required custom modifiers match the original method. ST005 is no longer reported for pointer members.
  • Cover the signatures in Scenarios/SignatureRefs.

@kzu kzu added the enhancement New feature or request label Sep 29, 2026
@kzu
kzu enabled auto-merge (rebase) September 29, 2026 16:20
@kzu
kzu merged commit 6e1cc81 into main Sep 29, 2026
6 checks passed
@kzu
kzu deleted the dev/ref-struct-signatures branch September 29, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant