Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty block args bug tap{||} #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tompng
Copy link
Member

@tompng tompng commented Mar 1, 2024

BlockParametersNode#parameters can be nil for tap{||}. Added nil check for this.

# tap{||}
@ BlockNode (location: (1,3)-(1,7))
├── locals: []
├── parameters:
│   @ BlockParametersNode (location: (1,4)-(1,6))
│   ├── parameters: ∅ # ← This part
│   ├── locals: (length: 0)
│   ├── opening_loc: (1,4)-(1,5) = "|"
│   └── closing_loc: (1,5)-(1,6) = "|"
├── body: ∅
├── opening_loc: (1,3)-(1,4) = "{"
└── closing_loc: (1,6)-(1,7) = "}",
# tap{}
@ BlockNode (location: (1,3)-(1,5))
├── locals: []
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,3)-(1,4) = "{"
└── closing_loc: (1,4)-(1,5) = "}",

@tompng tompng added the bug Something isn't working label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant