mirror of
https://github.com/github/codeql.git
synced 2026-03-22 07:26:45 +01:00
15 lines
412 B
Plaintext
15 lines
412 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
|
|
|