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


Public Member Functions | |
Ctor & dtor. | |
| NameTy (const Location &location, const misc::symbol &name) | |
| Construct a NameTy node. | |
| virtual | ~NameTy () |
| Destroy a NameTy 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 misc::symbol & | name_get () const |
| Return the name of the type. | |
| void | name_set (const misc::symbol &) |
| Set the name of the type. | |
| const TypeDec * | def_get () const |
| Return definition site. | |
| TypeDec * | def_get () |
| Return definition site. | |
| void | def_set (TypeDec *) |
| Set definition site. | |
Accessors. | |
| const Location & | location_get () const |
| Return scanner position information. | |
| void | location_set (const Location &) |
| Set scanner position information. | |
Protected Attributes | |
| misc::symbol | name_ |
| The name of the type. | |
| TypeDec * | def_ = nullptr |
| Definition site. | |
| Location | location_ |
| Scanner position information. | |
| ast::NameTy::NameTy | ( | const Location & | location, |
| const misc::symbol & | name | ||
| ) |
Construct a NameTy node.
|
virtual |
Destroy a NameTy node.
|
overridevirtual |
|
overridevirtual |
Accept a non-const visitor v.
Implements ast::Ty.
|
inline |
Return definition site.
References def_.
Referenced by object::TypeChecker::operator()(), and type::TypeChecker::operator()().
|
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_.
|
inline |
Return the name of the type.
References name_.
Referenced by object::TypeChecker::operator()(), astclone::Cloner::operator()(), and type::TypeChecker::operator()().
|
inline |
Set the name of the type.
References name_.
|
protected |
|
protectedinherited |
Scanner position information.
Referenced by ast::Ast::location_get(), ast::Ast::location_set(), ast::DecsList::push_back(), and ast::DecsList::push_front().
|
protected |
The name of the type.
Referenced by name_get(), and name_set().