Skip to content

Strange output for NormalizeWhitespace for 1 is var i #70135

@svick

Description

@svick

Version Used: 4.7.0

Steps to Reproduce:

Run the following code:

SyntaxFactory.ParseExpression("1 is var i").NormalizeWhitespace().ToString()

Expected Behavior:

The code returns the string "1 is var i", i.e. it returns the code unchanged.

Actual Behavior:

The code returns "1is var i", i.e. there is no space between 1 and is. This is technically correct C#, but I find this formatting quite odd and not consistent with how is is formatted in other cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-CompilersBughelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions