API reference
python:astx:astx.callables.FunctionReturn
class FunctionReturn
FunctionReturn(value: DataType, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/callables.py:406
AST class for function return statement.
Attributes
-
kind — Type: ASTKind
-
value — Type: DataType
Methods
-
__init__ — Initialize the Return instance.
-
__str__ — Return a string representation of the object.
-
get_struct — Return the AST structure of the object.