Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "(at)" symbols gets eaten inconsistently in syntax tree view #1354

Open
grayed opened this issue Dec 22, 2024 · 0 comments
Open

The "(at)" symbols gets eaten inconsistently in syntax tree view #1354

grayed opened this issue Dec 22, 2024 · 0 comments

Comments

@grayed
Copy link

grayed commented Dec 22, 2024

The commercial at ('@') symbol, that can be used in symbol names, sometimes gets eaten when displaying the syntax tree, and sometimes not. The difference, as far as I can see, is related to whether the Identifier value is displayed on a single line (when there is no whitespace trivia) or not (when there is some whitespace). See an example:

public class C {
    int x;
    int X {
        get => @x;
        set => @x = value;
    }
}

Here the Identifier value in getter is displayed as @x, but in setter it's just x. See also the picture below:
С собакой и без cut

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

No branches or pull requests

1 participant