csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

CoalesceExpression in InvocationExpression isn't very readable

Open belav opened this issue 3 years ago • 0 comments

        Diagnostic.Create(
            _descriptor,
            symbolForDiagnostic.DeclaringSyntaxReferences.FirstOrDefault()?
                .GetSyntax()
                .GetLocation() ?? Location.None,
            symbol.ToDisplayString(SymbolDisplayFormat.CSharpShortErrorMessageFormat)
        );
// should maybe be
        Diagnostic.Create(
            _descriptor,
            symbolForDiagnostic.DeclaringSyntaxReferences.FirstOrDefault()?
                .GetSyntax()
                .GetLocation()
                ?? Location.None,
            symbol.ToDisplayString(SymbolDisplayFormat.CSharpShortErrorMessageFormat)
        );

belav avatar Oct 11 '21 14:10 belav