Skip to content

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

@grayed

Description

@grayed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions