API reference
python:astx:astx.callables.FunctionPrototype.__init__
method __init__
__init__(name: str, args: Arguments, return_type: AnyType, scope: ScopeKind = ScopeKind.global_, visibility: VisibilityKind = VisibilityKind.public, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/callables.py:311
Initialize the FunctionPrototype instance.
Parameters
-
name — Name identifying the declaration or operation.; Type: str
-
args — Arguments supplied to the operation.; Type: Arguments
-
return_type — Declared result type.; Type: AnyType
-
scope — Scope used to resolve names.; Type: ScopeKind
-
visibility — Visibility.; Type: VisibilityKind
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None