mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
343 B
Plaintext
15 lines
343 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().hasFullyQualifiedName("Expressions", "OperatorCalls+Num")
|
|
select m, e.getAnArgument(), t
|