Skip to content

Support typegroup-based struct lowering#163

Merged
Keno merged 1 commit into
JuliaDebug:masterfrom
KenoAIStaging:kf/typegroup-structs
Jul 21, 2026
Merged

Support typegroup-based struct lowering#163
Keno merged 1 commit into
JuliaDebug:masterfrom
KenoAIStaging:kf/typegroup-structs

Conversation

@Keno

@Keno Keno commented Jul 21, 2026

Copy link
Copy Markdown
Member

On future Julia versions where ordinary struct definitions lower through the typegroup mechanism, the type-creating statement is a call to Core.resolve_typegroup rather than Core._structtype/Core._typebody!. Teach istypedef/typedef_range/find_typedefs to recognize this form, including multi-type typegroup blocks, which have no leading global marker and define several names from a single statement range.

On Julia versions where ordinary `struct` definitions lower through the
typegroup mechanism, the type-creating statement is a call to
`Core.resolve_typegroup` rather than `Core._structtype`/`Core._typebody!`.
Teach `istypedef`/`typedef_range`/`find_typedefs` to recognize this form,
including multi-type `typegroup` blocks, which have no leading `global`
marker and define several names from a single statement range.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Keno
Keno merged commit 0b7e6af into JuliaDebug:master Jul 21, 2026
8 checks passed
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