Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a variable reference. More...
#include <Ast.hpp>
Public Member Functions | |
VariableRefExpr (const QualifiedType &type, const VariableRef &vref) | |
Default constructor. | |
const VariableRef & | getRef () const |
Returns the variable ref node. | |
Private Member Functions | |
virtual void | visit (Expr::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const VariableRef & | _vref |
The variable ref node. |
Concrete class for AST Node representing a variable reference.
For example:
local a = x.y.z;
Here, x is a reference to another variable, and a is assigned the value of member z.
VariableRefExpr | ( | const QualifiedType & | type, |
const VariableRef & | vref | ||
) | [inline] |
Default constructor.
type | Expression type |
vref | The AST Node holding the VariableRef |
const VariableRef& getRef | ( | ) | const [inline] |
Returns the variable ref node.
void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |