You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Fix-it moves a group of consecutive nodes, the intra-group trivia won't be preserved,
func test()-> throws(any /**/ Error) Int
// after Fix-it
func test()throws(anyError)->Int
It's because the nodes aren't actually "moved" when applying a Fix-it. Rather the misplaced nodes carrying the trivia are removed, and the missing nodes created by the parser (without the trivia) are presented at the designated site.
Currently trivia at the sides of a node group to move are transferred to its adjacent tokens, we should create facilities to transfer intra-group trivia from the misplaced nodes to the missing nodes.
Steps to Reproduce
No response
The text was updated successfully, but these errors were encountered:
Description
When a Fix-it moves a group of consecutive nodes, the intra-group trivia won't be preserved,
It's because the nodes aren't actually "moved" when applying a Fix-it. Rather the misplaced nodes carrying the trivia are removed, and the missing nodes created by the parser (without the trivia) are presented at the designated site.
Currently trivia at the sides of a node group to move are transferred to its adjacent tokens, we should create facilities to transfer intra-group trivia from the misplaced nodes to the missing nodes.
Steps to Reproduce
No response
The text was updated successfully, but these errors were encountered: