ast.VariableDeclaration

VariableDeclaration is a derived class of ast.Node.

A variable declaration defines the type and scope of a variable. It is required for a variable to exist. If no declaration is found, the valid variable becomes invalid and is converted into an ast.Command node instead.

.name (str)

The name of the declared variable.

.type (tic.Type)

Returns the type of the declared variable.