|
LRDE Tiger Compiler
1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
|
#include <type-dec.hh>


Public Member Functions | |
Ctor & dtor. | |
| TypeDec (const Location &location, const misc::symbol &name, Ty *ty) | |
| Construct a TypeDec node. | |
| virtual | ~TypeDec () |
| Destroy a TypeDec node. | |
Visitors entry point. | |
| virtual void | accept (ConstVisitor &v) const override |
| Accept a const visitor v. | |
| virtual void | accept (Visitor &v) override |
| Accept a non-const visitor v. | |
Accessors. | |
| const Ty & | ty_get () const |
| Return type definition. | |
| Ty & | ty_get () |
| Return type definition. | |
Accessors. | |
| const misc::symbol & | name_get () const |
| Return name of the defined entity. | |
| void | name_set (const misc::symbol &) |
| Set name of the defined entity. | |
Accessors. | |
| const Location & | location_get () const |
| Return scanner position information. | |
| void | location_set (const Location &) |
| Set scanner position information. | |
Protected Attributes | |
| Ty * | ty_ |
| Type definition. | |
| misc::symbol | name_ |
| Name of the defined entity. | |
| Location | location_ |
| Scanner position information. | |
| ast::TypeDec::TypeDec | ( | const Location & | location, |
| const misc::symbol & | name, | ||
| Ty * | ty | ||
| ) |
Construct a TypeDec node.
|
overridevirtual |
Accept a const visitor v.
Implements ast::Dec.
|
overridevirtual |
Accept a non-const visitor v.
Implements ast::Dec.
|
inlineinherited |
Return scanner position information.
References ast::Ast::location_.
Referenced by type::TypeChecker::error(), object::DesugarVisitor::operator()(), astclone::Cloner::operator()(), ast::DecsList::push_back(), ast::DecsList::push_front(), and type::TypeChecker::type_mismatch().
|
inlineinherited |
Set scanner position information.
References ast::Ast::location_.
|
inlineinherited |
Return name of the defined entity.
References ast::Dec::name_.
Referenced by type::Attribute::name_get(), object::DesugarVisitor::operator()(), astclone::Cloner::operator()(), object::TypeChecker::operator()(), overload::Binder::visit_dec_header(), object::TypeChecker::visit_dec_header(), and translate::Translator::visit_function_dec_header().
|
inlineinherited |
Set name of the defined entity.
References ast::Dec::name_.
|
inline |
|
protectedinherited |
Scanner position information.
Referenced by ast::Ast::location_get(), ast::Ast::location_set(), ast::DecsList::push_back(), and ast::DecsList::push_front().
|
protectedinherited |
Name of the defined entity.
Referenced by ast::Dec::name_get(), and ast::Dec::name_set().
|
protected |
Type definition.
Referenced by ty_get(), and ~TypeDec().