Zen
A cross-platform functional programming language
|
AST Node representing a statement that defines a local variable. More...
#include <Ast.hpp>
Public Member Functions | |
DefineVarStatement (const InitVariableDef &vdef) | |
Default constructor. | |
const InitVariableDef & | getDef () const |
Returns the variable definition for this statement. | |
Private Member Functions | |
virtual void | visit (Statement::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const InitVariableDef & | _vdef |
The statement's variable definition. |
AST Node representing a statement that defines a local variable.
For example:
local a = 10;
Here, a is a local variable being defined.
DefineVarStatement | ( | const InitVariableDef & | vdef | ) | [inline] |
Default constructor.
vdef | The variable being defined in this statement |
const InitVariableDef& getDef | ( | ) | const [inline] |
Returns the variable definition for this statement.
void visit | ( | Statement::Visitor & | visitor | ) | const [private, virtual] |