mirror of
https://github.com/github/codeql.git
synced 2026-03-22 07:26:45 +01:00
13 lines
288 B
Plaintext
13 lines
288 B
Plaintext
/**
|
|
* @name Test for user-defined operator "calls"
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, OperatorCall e, ExplicitConversionOperator o
|
|
where m.hasName("MainConversionOperator")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getTarget() = o
|
|
and e.getArgument(0).getValue() = "8"
|
|
select m, e, o
|
|
|