CodeQL library for Go
codeql/go-all 2.1.4-dev (changelog, source)
Search

Member predicate MethodDecl::getReceiverDecl

Gets the receiver declaration of this method.

For example, the receiver declaration of

func (p *Rectangle) Area() float64 { ... }

is p *Rectangle.

ReceiverDecl getReceiverDecl()