Skip to content

Add control flow keyword support#108

Merged
dak2 merged 1 commit into
mainfrom
control-flow-keywords
Apr 5, 2026
Merged

Add control flow keyword support#108
dak2 merged 1 commit into
mainfrom
control-flow-keywords

Conversation

@dak2

@dak2 dak2 commented Apr 5, 2026

Copy link
Copy Markdown
Owner

Motivation

Control flow keywords (next, break, redo, retry) were not handled by the AST installer, causing crashes when analyzing Ruby code containing these keywords.

Changes

  • Handle next and break nodes with optional value expression type checking
  • Handle redo and retry nodes (no value expression)
  • Add integration tests for all control flow keywords

Checked

  • cargo test --lib

🤖 Generated with Claude Code

@dak2 dak2 changed the title Add control flow keyword support (next, break, redo, retry) Add control flow keyword support Apr 5, 2026
Prevent crashes when encountering control flow keywords in Ruby source.
Process value expressions for type checking while returning None for
control flow semantics.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dak2 dak2 force-pushed the control-flow-keywords branch from 8cf1eb4 to c909109 Compare April 5, 2026 05:12
@dak2 dak2 merged commit e600c76 into main Apr 5, 2026
4 checks passed
@dak2 dak2 deleted the control-flow-keywords branch April 5, 2026 05:36
@dak2 dak2 added this to the v0.2.0 milestone Apr 5, 2026
@dak2 dak2 mentioned this pull request Apr 5, 2026
4 tasks
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