![]() |
Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a struct instantiation. More...
#include <Ast.hpp>
Public Member Functions | |
| StructExpr (const QualifiedType &type, const Ast::ExprList &list) | |
| Default constructor. | |
Private Member Functions | |
| virtual void | visit (Expr::Visitor &visitor) const |
| Abstract visitor function. | |
Concrete class for AST Node representing a struct instantiation.
This creates an instance of a struct. For example:
struct X {...};
...
local y = X[];
Here, y is an instance of X, which is a struct.
| StructExpr | ( | const QualifiedType & | type, |
| const Ast::ExprList & | list | ||
| ) | [inline] |
Default constructor.
| type | Expression type |
| list | The initialization parameters |
| void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |