Zen
A cross-platform functional programming language

FunctionCallExpr Class Reference

Concrete class for AST Node representing a call to an function. More...

#include <Ast.hpp>

Inheritance diagram for FunctionCallExpr:
Expr Node

List of all members.

Public Member Functions

 FunctionCallExpr (const QualifiedType &type, const Ast::ContinuationImplItem &continuation)
 Default constructor.
const Ast::ContinuationImplItemgetContinuation () const
 Returns the continuation to be called.

Private Member Functions

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

Private Attributes

const Ast::ContinuationImplItem_continuation
 The continuation.

Detailed Description

Concrete class for AST Node representing a call to an function.

For example:

        local x = MyFunction(1, 'a');

Here, MyFunction is a function and MyFunction() is a function call.

Todo:
Check if FunctionCallExpr can be merged with InvokerCallExpr.

Constructor & Destructor Documentation

FunctionCallExpr ( const QualifiedType type,
const Ast::ContinuationImplItem continuation 
) [inline]

Default constructor.

Parameters:
typeExpression type
continuationA continuation that contains the callee function as a closure.

Member Function Documentation

const Ast::ContinuationImplItem& getContinuation ( ) const [inline]

Returns the continuation to be called.

Returns:
The continuation
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