Skip to content

Adjust documentation lookup offset when finding sigs#676

Merged
vinistock merged 1 commit intomainfrom
03-18-ensure_that_comments_above_method_decorator_are_considered_documentation
Mar 25, 2026
Merged

Adjust documentation lookup offset when finding sigs#676
vinistock merged 1 commit intomainfrom
03-18-ensure_that_comments_above_method_decorator_are_considered_documentation

Conversation

@vinistock
Copy link
Copy Markdown
Member

@vinistock vinistock commented Mar 19, 2026

We were not considering comments on top of Sorbet signatures as documentation. This PR ensures that we associate the comments with the definition they are related to.

The idea is to save the byte offset when we find sigs, so that we can collect comments starting from that point instead of the method/attribute def's offset.

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this Mar 19, 2026
@vinistock vinistock added the bugfix A change that fixes an existing bug label Mar 19, 2026
@vinistock vinistock marked this pull request as ready for review March 19, 2026 18:48
@vinistock vinistock requested a review from a team as a code owner March 19, 2026 18:48
Comment thread rust/rubydex/src/indexing/ruby_indexer.rs
@vinistock vinistock force-pushed the 03-18-ensure_that_comments_above_method_decorator_are_considered_documentation branch from e0304d3 to b138a88 Compare March 25, 2026 13:08
@vinistock vinistock enabled auto-merge March 25, 2026 13:08
@vinistock vinistock merged commit d1173bb into main Mar 25, 2026
32 checks passed
@vinistock vinistock deleted the 03-18-ensure_that_comments_above_method_decorator_are_considered_documentation branch March 25, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix A change that fixes an existing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants