A cross-platform functional programming language

VariableRefExpr Class Reference

Concrete class for AST Node representing a variable reference. More...

#include <Ast.hpp>

Inheritance diagram for VariableRefExpr:
Expr Node

List of all members.

Public Member Functions

 VariableRefExpr (const QualifiedType &type, const VariableRef &vref)
 Default constructor.
const VariableRefgetRef () 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.

Detailed Description

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.

Constructor & Destructor Documentation

VariableRefExpr ( const QualifiedType type,
const VariableRef vref 
) [inline]

Default constructor.

typeExpression type
vrefThe AST Node holding the VariableRef

Member Function Documentation

const VariableRef& getRef ( ) const [inline]

Returns the variable ref node.

The variable ref node
void visit ( Expr::Visitor visitor) const [private, virtual]

Abstract visitor function.

visitorThe visitor object.

Implements Expr.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines