Skip to content

Conversation

@Morriar
Copy link
Contributor

@Morriar Morriar commented May 6, 2025

This pull-request expose the location field for the Block class.

It's useful when we want to point an error to the block inside the signature.

The location was already computed and associated with the node but it wasn't exposed to Ruby, so hard to test.

I also fixed the location that was pointing at the wrong range.

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar force-pushed the at-fix-block-loc branch from 553d7ad to a189bee Compare May 6, 2025 16:17
Morriar added 3 commits May 6, 2025 12:47
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar force-pushed the at-fix-block-loc branch from a189bee to d996fea Compare May 6, 2025 16:47
@Morriar Morriar changed the title Expose and fix Block location Expose and fix Block#location May 6, 2025
@soutaro soutaro added this to the RBS 4.0 milestone May 9, 2025
Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🎉

@soutaro soutaro added this pull request to the merge queue May 9, 2025
Merged via the queue into ruby:master with commit 91ab0d7 May 9, 2025
20 checks passed
soutaro added a commit that referenced this pull request Oct 10, 2025
Expose and fix `Block#location`
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