Skip to content

Fix NoMethodError in AST diff for record types#432

Merged
mame merged 1 commit intomasterfrom
fix-record-node-diff
Apr 13, 2026
Merged

Fix NoMethodError in AST diff for record types#432
mame merged 1 commit intomasterfrom
fix-record-node-diff

Conversation

@mame
Copy link
Copy Markdown
Member

@mame mame commented Apr 13, 2026

SigTyRecordNode stored its fields as a Hash subnode, but the diff method only handles Node and Array subnodes. Split @fields into @keys (attrs) and @vals (subnodes) so diff works correctly when editing code with inline record type annotations.

SigTyRecordNode stored its fields as a Hash subnode, but the diff
method only handles Node and Array subnodes. Split @fields into
@keys (attrs) and @vals (subnodes) so diff works correctly when
editing code with inline record type annotations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mame mame marked this pull request as ready for review April 13, 2026 09:35
@mame mame enabled auto-merge (rebase) April 13, 2026 09:35
@mame mame merged commit 2e4e489 into master Apr 13, 2026
12 checks passed
@mame mame deleted the fix-record-node-diff branch April 13, 2026 09:36
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