We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OperatorSymbol
1 parent d7eeb1f commit 09c5212Copy full SHA for 09c5212
csharp/extractor/Semmle.Extraction.CSharp/Entities/UserOperator.cs
@@ -178,6 +178,9 @@ public static bool OperatorSymbol(string methodName, out string operatorName)
178
/// <returns>The converted name.</returns>
179
private static string OperatorSymbol(Context cx, IMethodSymbol method)
180
{
181
+ if (method.ExplicitInterfaceImplementations.Any())
182
+ return OperatorSymbol(cx, method.ExplicitInterfaceImplementations.First());
183
+
184
var methodName = method.Name;
185
if (!OperatorSymbol(methodName, out var result))
186
cx.ModelError(method, $"Unhandled operator name in OperatorSymbol(): '{methodName}'");
0 commit comments