Skip to content

Fix spoom srb assertions translate to preserve trailing comments in correct order#803

Merged
burke merged 4 commits into
mainfrom
comments-and-types
Oct 8, 2025
Merged

Fix spoom srb assertions translate to preserve trailing comments in correct order#803
burke merged 4 commits into
mainfrom
comments-and-types

Conversation

@burke

@burke burke commented Oct 8, 2025

Copy link
Copy Markdown
Member

When translating T.let with trailing comments, the RBS annotation now appears before the comment so Sorbet can properly recognize the type:

a = T.let(3, Integer) # comment

now translates to:

a = 3 #: Integer # comment

instead of:

a = 3 # comment #: Integer

@burke burke requested a review from a team as a code owner October 8, 2025 16:14
…orrect order

When translating T.let with trailing comments, the RBS annotation now appears
before the comment so Sorbet can properly recognize the type:

  a = T.let(3, Integer) # comment

now translates to:

  a = 3 #: Integer # comment

instead of:

  a = 3 # comment #: Integer

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@burke burke force-pushed the comments-and-types branch from 1ef1233 to 79fbc5b Compare October 8, 2025 16:15
@burke

burke commented Oct 8, 2025

Copy link
Copy Markdown
Member Author

egh I guess I messed up a test, I'll see when I get some time to debug that.

@burke

burke commented Oct 8, 2025

Copy link
Copy Markdown
Member Author

Oh interesting, it was failing on main too. Well I pushed a fix I think.

@egiurleo egiurleo self-requested a review October 8, 2025 17:23
@egiurleo

egiurleo commented Oct 8, 2025

Copy link
Copy Markdown
Contributor

Oh hm there are some Rubocop issues that I'm assuming are also failing on main? NVM I can't read! Linting issue is straightforward. We can approve and merge once that's fixed.

@burke

burke commented Oct 8, 2025

Copy link
Copy Markdown
Member Author

Whoops! Fixed, thanks.

@burke burke merged commit 68c0037 into main Oct 8, 2025
8 checks passed
@burke burke deleted the comments-and-types branch October 8, 2025 18:47
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