mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
16 lines
414 B
Plaintext
16 lines
414 B
Plaintext
/**
|
|
* @name Test for user-defined operator "calls"
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Method m, OperatorCall e, ImplicitConversionOperator o
|
|
where
|
|
m.hasName("MainConversionOperator") and
|
|
e.getEnclosingCallable() = m and
|
|
e.getTarget() = o and
|
|
e.getArgument(0).getType().(Struct).hasName("Digit") and
|
|
e.getArgument(0).(LocalVariableAccess).getTarget().hasName("d") and
|
|
e.getNumberOfArguments() = 1
|
|
select m, e, o
|