API reference
python:astx:astx.callables.FunctionCall
class FunctionCall
FunctionCall(fn: FunctionDef | str, args: Iterable[DataType], type_: DataType = AnyType(), loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None, *, keywords: tuple[KeywordArgument, ...] = ())
Source: packages/astx/src/astx/callables.py:201
AST class for function call.
Attributes
-
kind — Kind of value or operation.; Type: ASTKind
-
keywords — Keywords.; Type: tuple[KeywordArgument, ...]
-
fn — Function to process.; Type: str
-
args — Declared or supplied call arguments.; Type: Iterable[DataType]
-
type_ — Type associated with this expression.; Type: DataType
-
loc — Type: SourceLocation
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
name — Type: str
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize the Call instance.
-
__str__ — Return a string representation of the object.
-
get_struct — Return the AST structure of the object.