-
Notifications
You must be signed in to change notification settings - Fork 277
Closed
Description
Code fix for CC0014 TernaryOperatorAnalyzer is not compatible with comments in VB code.
Example:
Original code:
If stackFrameItem.GetMethod.DeclaringType Is Nothing Then
declaringType = "" 'MLHIDE
Else
declaringType = stackFrameItem.GetMethod.DeclaringType.ToString
End If
Fixed code:
declaringType = If(stackFrameItem.GetMethod.DeclaringType Is Nothing, "", stackFrameItem.GetMethod.DeclaringType.ToString)
'MLHIDE comment was deleted.
Regards,
Filippo Bottega