Skip to content

Conversation

@BlankTiger
Copy link

Implementation handles following goto scenarios for enum literals:

  • procedure calls: SDL_CreateGPUDevice(.SPIRV | .MSL | .DXIL, ...)
  • struct field defaults/declarations: se: Some_Enum = .A
  • variable assignments: flags = .SPIRV | .MSL and ident.parent.kind = .UNARY_OPERATION
  • comparison operations: value == .SOME_ENUM and value != .OTHER_ENUM

@BlankTiger BlankTiger changed the title Implement goto for enum literals WIP: Implement goto for enum literals Sep 5, 2025
@BlankTiger BlankTiger changed the title WIP: Implement goto for enum literals Implement goto for enum literals Sep 5, 2025
@SogoCZE
Copy link
Owner

SogoCZE commented Oct 5, 2025

Thank you. I will try to review this PR soon.

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