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

Member predicate Public::CallNode::getCalleeName

Gets the name of the function, method or variable that is being called.

Note that if we are calling a variable then this gets the variable name. It does not attempt to get the name of the function or method that is assigned to the variable. To do that, use getACalleeIncludingExternals().asFunction().getName().

string getCalleeName()