Skip to content

PrettyPrint: last comment is removed for user definitions #2997

@CarlosFigueiraMSFT

Description

@CarlosFigueiraMSFT

If we try to pretty print those user definitions:

MyNF=Pi()/2; // Half PI

The last comment will be deleted.

Test file: FormatterTests.cs; test method: TestUserDefinitionsPrettyPrint

[InlineData("MyNF=Pi()/2; // Half PI", "MyNF = Pi() / 2; // Half PI")]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions