Skip to content

Make trivia first class member of token - #219

Merged
ChayimFriedman2 merged 9 commits into
rust-analyzer:masterfrom
bit-aloo:2026-08-14-trivia-first-class
Sep 7, 2026
Merged

Make trivia first class member of token#219
ChayimFriedman2 merged 9 commits into
rust-analyzer:masterfrom
bit-aloo:2026-08-14-trivia-first-class

Conversation

@bit-aloo

@bit-aloo bit-aloo commented Aug 14, 2026

Copy link
Copy Markdown
Member

Still making changes to RA

@ChayimFriedman2 ChayimFriedman2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know you opened this as draft by I've still reviewed it so you don't waste time changing r-a to match an API we'll throw away.

Comment thread src/trivia.rs Outdated
Comment thread src/api.rs Outdated
Comment thread src/green/token.rs Outdated
Comment thread src/green/trivia.rs Outdated
Comment thread src/api.rs Outdated
Comment thread src/cursor.rs Outdated
@bit-aloo
bit-aloo force-pushed the 2026-08-14-trivia-first-class branch 4 times, most recently from 9f6a8a3 to fd291b6 Compare August 31, 2026 01:48
@bit-aloo
bit-aloo marked this pull request as ready for review August 31, 2026 01:54

@ChayimFriedman2 ChayimFriedman2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hope it won't be too hard for you to change r-a 🫢️

Comment thread src/green/node.rs
Comment thread src/api.rs Outdated
Comment thread src/cursor.rs Outdated
Comment thread src/cursor.rs Outdated
Comment thread src/cursor.rs Outdated
Comment thread src/cursor.rs Outdated
Comment thread src/green/node.rs
Comment thread src/cursor.rs Outdated
Comment thread src/cursor.rs Outdated
@bit-aloo
bit-aloo force-pushed the 2026-08-14-trivia-first-class branch 2 times, most recently from edf8934 to 38a85fd Compare September 1, 2026 19:25
Comment thread src/cursor.rs
Comment thread src/green/element.rs
Comment thread src/green/node.rs Outdated
Comment thread src/green/token.rs
Comment thread src/cursor.rs
Comment thread src/cursor.rs Outdated
@bit-aloo
bit-aloo force-pushed the 2026-08-14-trivia-first-class branch from 8991744 to 8240204 Compare September 4, 2026 10:18

@ChayimFriedman2 ChayimFriedman2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

I'm merging this but not releasing yet because we might want to make more adjustments to shrink the diff of the r-a PR, for example not printing trivia when empty like I said.

@ChayimFriedman2
ChayimFriedman2 merged commit a99f96d into rust-analyzer:master Sep 7, 2026
1 check passed
@bit-aloo
bit-aloo deleted the 2026-08-14-trivia-first-class branch September 7, 2026 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants