Skip to content

ParenthesizedExpression breaking inconsistently #921

@belav

Description

@belav

Having a single invocation on a ParenthesizedExpression that is too long causes it to break like below. It would look better if it stayed consistent with the second example.

(
    someObject as SomeLongType__________________________________________
).CallMethod();

(someObject as SomeLongType__________________________________________)
    .CallMethod()
    .CallMethod();

A potential solution is "never break ParenthesizedExpression unless its contents break"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions