mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
15 lines
338 B
Plaintext
15 lines
338 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
|