Files
codeql/go/ql/examples/snippets/receiver.ql
2022-05-20 10:07:19 -07:00

13 lines
250 B
Plaintext

/**
* @name Receiver variable
* @description Finds receiver variables of pointer type.
* @id go/examples/pointerreceiver
* @tags receiver variable
*/
import go
from ReceiverVariable recv
where recv.getType() instanceof PointerType
select recv