Skip to content

Conversation

@johnnyt
Copy link
Member

@johnnyt johnnyt commented Sep 2, 2025

Adds support for nested if blocks by handling the case where an if element ends while nested inside another if container. Previously, nested if blocks were lost during parsing instead of being created as separate IfAction instances.

Changes:

  • Adds new pattern match case in handle_if_end for nested if containers
  • Creates IfAction from nested if container and adds to parent block
  • Enables proper parsing of complex conditional logic with nested if/else

Fixes SCION test if_else/test0 which now passes.

🤖 Generated with Claude Code

Adds support for nested if blocks by handling the case where an if element
ends while nested inside another if container. Previously, nested if blocks
were lost during parsing instead of being created as separate IfAction
instances.

Changes:
- Adds new pattern match case in handle_if_end for nested if containers
- Creates IfAction from nested if container and adds to parent block
- Enables proper parsing of complex conditional logic with nested if/else

Fixes SCION test if_else/test0 which now passes.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Sep 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
lib/statifier/parser/scxml/state_stack.ex 90.53% <100.00%> (+0.11%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@johnnyt johnnyt merged commit ccb3b79 into main Sep 2, 2025
10 checks passed
@johnnyt johnnyt deleted the fix-if-actions branch September 2, 2025 13:06
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