Skip to content

Adjust documentation lookup offset when finding sigs#676

Open
vinistock wants to merge 1 commit intomainfrom
03-18-ensure_that_comments_above_method_decorator_are_considered_documentation
Open

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

Conversation

@vinistock
Copy link
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
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
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.

1 participant