csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

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

Open belav opened this issue 1 year ago • 0 comments

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

belav avatar Jan 27 '24 17:01 belav