Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a typecast. More...
#include <Ast.hpp>
Public Member Functions | |
CastExpr (const QualifiedType &type, const Expr &expr) | |
Default constructor. | |
const Expr & | getExpr () const |
Returns the value expression. | |
Private Member Functions | |
virtual void | visit (Expr::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const Expr & | _expr |
The value expression. |
Concrete class for AST Node representing a typecast.
This is an internally used node and does not have a syntactic representation in the Zen language.
CastExpr | ( | const QualifiedType & | type, |
const Expr & | expr | ||
) | [inline] |
Default constructor.
type | Expression type |
expr | The value to cast. |
const Expr& getExpr | ( | ) | const [inline] |
Returns the value expression.
virtual void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |