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

Class Function_

INTERNAL: See the class Function for further information.

Import path

import python

Direct supertypes

Known direct subtypes

Predicates

getAKwonlyarg

Gets a keyword-only parameter of this function.

getAStmt

Gets a statement of this function.

getATypeParameter

Gets a type parameter of this function.

getAnArg

Gets a positional parameter of this function.

getArg

Gets the nth positional parameter of this function.

getArgs

Gets the positional parameter list of this function.

getBody

Gets the body of this function.

getKwarg

Gets the dictionary (**) parameter of this function.

getKwonlyarg

Gets the nth keyword-only parameter of this function.

getKwonlyargs

Gets the keyword-only parameter list of this function.

getName

Gets the name of this function.

getParent

Gets a parent of this function

getStmt

Gets the nth statement of this function.

getTypeParameter

Gets the nth type parameter of this function.

getTypeParameters

Gets the type parameters of this function.

getVararg

Gets the tuple (*) parameter of this function.

isAsync

Whether the async property of this function is true.

toString

Gets a textual representation of this element.