ast.Function

Function is a derived class of ast.Scope.

Represents a function with its parameters, return type, its name and contents. A function can be colled from other locations using an ast.FunctionCall node.

.parameters (ast.List)

Returns a list containing all function parameters of this function.

.returnType (tic.Type)

Returns a type, which represents the return type of the function.

.name (str)

Returns the name of this function as a string.