![]() |
Zen
A cross-platform functional programming language
|
The indexable type visitor for init variable definitions. More...
#include <ParseContext.hpp>
Public Member Functions | |
| InitVariableDefCreator (const Ast::VariableDef::DefType &defType, const z::string &name, const Ast::Expr &expr) | |
| Default constructor. | |
| Ast::InitVariableDef & | create (ParseContext &pctx, const Ast::TypeSpec &typeSpec) |
| Create the Init variable. | |
Private Member Functions | |
| virtual void | visitList (ParseContext &pctx, const Ast::ListTemplate &type) |
| Abstract visitor function. | |
| virtual void | visitDict (ParseContext &pctx, const Ast::DictTemplate &type) |
| Abstract visitor function. | |
| virtual void | visitTree (ParseContext &pctx, const Ast::TypeDecl &type) |
| Abstract visitor function. | |
| virtual void | visitBuffer (ParseContext &pctx, const Ast::TypeDecl &type) |
| Abstract visitor function. | |
| virtual void | visitView (ParseContext &pctx, const Ast::TypeDecl &type) |
| Abstract visitor function. | |
| virtual void | visitWidget (ParseContext &pctx, const Ast::TypeDecl &type) |
| Abstract visitor function. | |
Private Attributes | |
| const Ast::VariableDef::DefType & | _defType |
| The definition type for variable. | |
| const z::string & | _name |
| Variable name. | |
| const Ast::Expr & | _expr |
| Init expression for type. | |
| Ast::InitVariableDef * | _rv |
| Variable definition, to be returned. | |
The indexable type visitor for init variable definitions.
| InitVariableDefCreator | ( | const Ast::VariableDef::DefType & | defType, |
| const z::string & | name, | ||
| const Ast::Expr & | expr | ||
| ) | [inline] |
Default constructor.
| defType | The variable definition type |
| name | Name of variable |
| expr | The init expression |
| Ast::InitVariableDef& create | ( | ParseContext & | pctx, |
| const Ast::TypeSpec & | typeSpec | ||
| ) | [inline] |
Create the Init variable.
| pctx | The ParseContext |
| typeSpec | The type to check. |
| virtual void visitBuffer | ( | ParseContext & | pctx, |
| const Ast::TypeDecl & | type | ||
| ) | [inline, private, virtual] |
Abstract visitor function.
| pctx | The ParseContext |
| type | The type to check. |
Implements ParseContext::IndexableTypeCaster.
| virtual void visitDict | ( | ParseContext & | pctx, |
| const Ast::DictTemplate & | type | ||
| ) | [inline, private, virtual] |
Abstract visitor function.
| pctx | The ParseContext |
| type | The type to check. |
Implements ParseContext::IndexableTypeCaster.
| virtual void visitList | ( | ParseContext & | pctx, |
| const Ast::ListTemplate & | type | ||
| ) | [inline, private, virtual] |
Abstract visitor function.
| pctx | The ParseContext |
| type | The type to check. |
Implements ParseContext::IndexableTypeCaster.
| virtual void visitTree | ( | ParseContext & | pctx, |
| const Ast::TypeDecl & | type | ||
| ) | [inline, private, virtual] |
Abstract visitor function.
| pctx | The ParseContext |
| type | The type to check. |
Implements ParseContext::IndexableTypeCaster.
| virtual void visitView | ( | ParseContext & | pctx, |
| const Ast::TypeDecl & | type | ||
| ) | [inline, private, virtual] |
Abstract visitor function.
| pctx | The ParseContext |
| type | The type to check. |
Implements ParseContext::IndexableTypeCaster.
| virtual void visitWidget | ( | ParseContext & | pctx, |
| const Ast::TypeDecl & | type | ||
| ) | [inline, private, virtual] |
Abstract visitor function.
| pctx | The ParseContext |
| type | The type to check. |
Implements ParseContext::IndexableTypeCaster.