swift-syntax icon indicating copy to clipboard operation
swift-syntax copied to clipboard

Backticks on identifiers should be separate tokens

Open grynspan opened this issue 1 year ago • 16 comments

Description

If I have an expression like so:

let x = y.`z`()

Then the syntax node representing z contains the surrounding backticks. I then need to strip these off manually to get at the actual symbol name so I can use it in other contexts like context.makeUniqueName() or diagnostic messages. These backticks should probably be represented by separate tokens, no?

Steps to Reproduce

No response

grynspan avatar Jul 21 '23 18:07 grynspan