SharpLab icon indicating copy to clipboard operation
SharpLab copied to clipboard

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

Open grayed opened this issue 1 year ago • 0 comments

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

grayed avatar Dec 22 '24 20:12 grayed