Skip to content

Preserve sig parameter comments#612

Draft
KaanOzkan wants to merge 4 commits into
mainfrom
ko-sig-param-rbs-comments
Draft

Preserve sig parameter comments#612
KaanOzkan wants to merge 4 commits into
mainfrom
ko-sig-param-rbs-comments

Conversation

@KaanOzkan

Copy link
Copy Markdown
Contributor

To be used by Shopify/spoom#901

@KaanOzkan KaanOzkan force-pushed the ko-sig-param-rbs-comments branch 2 times, most recently from 7dd5059 to 7a5304c Compare June 10, 2026 18:51
@KaanOzkan KaanOzkan force-pushed the ko-sig-param-rbs-comments branch from 1c12951 to b24a431 Compare June 10, 2026 19:06
Comment thread test/rbi/parser_test.rb
params(
a: Integer, # `a` comment
b: String # `b` comment 1
# `b` comment 2

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I opted to keep the existing RBI printer behaviour here so the comments are printed as trailing but we could also make it multiline like the RBS printer.

@KaanOzkan KaanOzkan marked this pull request as ready for review June 10, 2026 19:09
@KaanOzkan KaanOzkan requested a review from a team as a code owner June 10, 2026 19:09
@KaanOzkan KaanOzkan force-pushed the ko-sig-param-rbs-comments branch from 29b52dd to 15ffc31 Compare June 10, 2026 20:42
@KaanOzkan KaanOzkan marked this pull request as draft June 10, 2026 20:49
@KaanOzkan KaanOzkan force-pushed the ko-sig-param-rbs-comments branch from 15ffc31 to 11d51eb Compare June 10, 2026 20:51
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