CodeQL library for Python
codeql/python-all 2.1.2-dev (changelog, source)
Search

Class NormalCall

A resolved call in source code with an underlying CallNode.

This is considered normal, compared with special calls such as obj[0] calling the __getitem__ method on the object. However, this also includes calls that go to the __call__ special method.

Import path

import semmle.python.dataflow.new.internal.DataFlowDispatch

Direct supertypes

Indirect supertypes

Fields

Predicates

getArgument

Gets the argument at position apos, if any.

getCallType

Gets the CallType of this call.

getCallable

Get the callable to which this call goes.

getNode

Get the control flow node representing this call, if any.

getScope

Gets the scope of this node, if any.

toString

Gets a textual representation of this element.

Inherited predicates

getEnclosingCallable

Gets the enclosing callable of this call.

from DataFlowCall
getLocation

Gets the location of this dataflow call.

from ExtractedDataFlowCall
hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

from DataFlowCall

Charpred