NormalizeWhitespace should put *
next to the type rather than the identifier
#49733
Milestone
*
next to the type rather than the identifier
#49733
Version Used: Microsoft.CodeAnalysis.CSharp 3.8.0
Steps to Reproduce:
Use
NormalizeWhitespace
on aVariableDeclarationSyntax
containing aPointerTypeSyntax
Expected Behavior:
The output should put the asterisk on the type, for example:
Actual Behavior:
The output puts the asterisk on the first identifier:
Besides just the nit that the asterisk applies to the type, it honestly makes
p1
look like a pointer wherep2
does not look like a pointer. But when the asterisk is on the type itself, it's much more apparent how the compiler will always interpret it.The text was updated successfully, but these errors were encountered: