![]() |
Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a templated list instantiation. More...
#include <Ast.hpp>
Public Member Functions | |
| ListTemplateExpr (const QualifiedType &type, const ExprList &list) | |
| Default constructor. | |
Private Member Functions | |
| virtual void | visit (Expr::Visitor &visitor) const |
| Abstract visitor function. | |
Concrete class for AST Node representing a templated list instantiation.
This creates an instance of a list. For example:
local y = list<int>[];
Here, y is an instance of a list of int's. This is usually only required when y needs to be an empty list. At other times, this:
local y = [1, 2];
is sufficient. The compiler will automatically deduce the type of the list at compile time.
| ListTemplateExpr | ( | const QualifiedType & | type, |
| const ExprList & | list | ||
| ) | [inline] |
Default constructor.
| type | Expression type |
| list | The initialization parameters |
| void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |