csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

LeadingComment + MethodInvocation in ConditionalExpression

Open belav opened this issue 4 years ago • 0 comments

We may want to turn the leading comment into a trailing comment on : but we haven't really moved around comments yet Also the Split method breaking is weird. it should break on the . of the method calls first

        var expectedDiagnostic = outOfMemory
            ? $"ENC0089: {string.Format(Some_Thing, "1")}"
            :
                // leading Comment
                $"ENC0080: {string.Format(Some_Thing, "2", "SomeLongerThing")}".Split(
                        '\n'
                    )
                    .First();

belav avatar Apr 19 '21 17:04 belav