Skip to content

Don't have dedented method call if there is a long chain #1154

@belav

Description

@belav
o.Property.CallMethod(
    someParameter_____________________________,
    someParameter_____________________________
)
    .CallMethod()
    .CallMethod();

// should be

o.Property.CallMethod(
        someParameter_____________________________,
        someParameter_____________________________
    )
    .CallMethod()
    .CallMethod();

But in cases like this, do keep it dedented

this.Method(
    someParameter__________________________________,
    someParameter__________________________________
);

// consistent with

CallMethod(
    someParameter__________________________________,
    someParameter__________________________________
);

It seems like changing this to Doc.Indent mostly gets us there - InvocationExpression.cs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions