mirror of
https://github.com/github/codeql.git
synced 2026-03-22 07:26:45 +01:00
14 lines
336 B
Plaintext
14 lines
336 B
Plaintext
/**
|
|
* @name Test for user-defined operator "calls"
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, OperatorCall e, Callable t
|
|
where m.hasName("addition")
|
|
and e.getEnclosingCallable() = m
|
|
and t = e.getTarget()
|
|
and t.getName() = "+"
|
|
and t.getDeclaringType().hasQualifiedName("Expressions.OperatorCalls", "Num")
|
|
select m, e.getAnArgument(), t
|
|
|