The formatter doesn't produce readable code from the following expression:
|
CheckValidNullableMethodOverride(overridingMethod.DeclaringCompilation, overriddenMethod, overridingMethod, diagnostics, |
|
checkReturnType ? |
|
(diagnostics, overriddenMethod, overridingMethod, location) => diagnostics.Add(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnOverride, location) : |
|
(Action<DiagnosticBag, MethodSymbol, MethodSymbol, Location>)null, |
|
checkParameters ? |
|
(diagnostics, overriddenMethod, overridingMethod, overridingParameter, location) => |
|
{ |
|
diagnostics.Add( |
|
ErrorCode.WRN_NullabilityMismatchInParameterTypeOnOverride, |
|
location, |
|
new FormattedSymbol(overridingParameter, SymbolDisplayFormat.ShortFormat)); |
|
} |
|
: |
|
(Action<DiagnosticBag, MethodSymbol, MethodSymbol, ParameterSymbol, Location>)null, |
|
overridingMemberLocation); |
However, it's not clear how this code should be formatted such that the result is readable.
Activity