Zen
A cross-platform functional programming language

TypeDefExpr Class Reference

Concrete class for AST Node representing a typedef instantiation. More...

#include <Ast.hpp>

Inheritance diagram for TypeDefExpr:
InstanceExpr Expr Node

List of all members.

Public Member Functions

 TypeDefExpr (const QualifiedType &type, const Ast::ExprList &list)
 Default constructor.

Private Member Functions

virtual void visit (Expr::Visitor &visitor) const
 Abstract visitor function.

Detailed Description

Concrete class for AST Node representing a typedef instantiation.

This creates an instance of a typedef'd type. For example:

        typedef X Y;
        ...
        local y = X[];

Here, Y is typedef'd as X, and y is an instance of X, which is the same as Y.


Constructor & Destructor Documentation

TypeDefExpr ( const QualifiedType type,
const Ast::ExprList list 
) [inline]

Default constructor.

Parameters:
typeExpression type
listThe initialization parameters

Member Function Documentation

void visit ( Expr::Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
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