Skip to content

Commit 4163078

Browse files
committed
C#: The qualified name of the operator should use the function name instead of the displayed name.
1 parent 70c4473 commit 4163078

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

csharp/ql/lib/semmle/code/csharp/Callable.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,11 @@ class Operator extends Callable, Member, Attributable, @operator {
460460
override string toString() { result = Callable.super.toString() }
461461

462462
override Parameter getRawParameter(int i) { result = this.getParameter(i) }
463+
464+
override predicate hasQualifiedName(string qualifier, string name) {
465+
super.hasQualifiedName(qualifier, _) and
466+
name = this.getFunctionName()
467+
}
463468
}
464469

465470
/** A clone method on a record. */

0 commit comments

Comments
 (0)