Skip to content

Commit 54a6f06

Browse files
committed
Address review comment
1 parent dc2cd99 commit 54a6f06

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

csharp/extractor/Semmle.Extraction.CSharp/Entities/UserOperator.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,14 @@ public static bool OperatorSymbol(string methodName, out string operatorName)
162162
case "op_False":
163163
operatorName = "false";
164164
break;
165-
case var @checked when Regex.IsMatch(@checked, "^op_Checked.*"):
166-
operatorName = @checked;
167-
break;
168165
default:
166+
var match = Regex.Match(methodName, "^op_Checked(.*)$");
167+
if (match.Success)
168+
{
169+
OperatorSymbol("op_" + match.Groups[1], out var uncheckedName);
170+
operatorName = "checked " + uncheckedName;
171+
break;
172+
}
169173
operatorName = methodName;
170174
success = false;
171175
break;

0 commit comments

Comments
 (0)