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

Class ComprehensionCall

A call to the generated function inside a comprhension

Import path

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

Direct supertypes

Indirect supertypes

Fields

Predicates

getArgument

Gets the argument at position apos, if any.

getCallable

Get the callable to which this call goes.

getComprehension
getLocation

Gets the location of this dataflow call.

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
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