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


Public Member Functions | |
Ctor & dtor. | |
| ClassTy (const Location &location, NameTy *super, DecsList *decs) | |
| Construct a ClassTy node. | |
| virtual | ~ClassTy () |
| Destroy a ClassTy 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 NameTy & | super_get () const |
| Return super class. | |
| NameTy & | super_get () |
| Return super class. | |
| const DecsList & | decs_get () const |
| Return list of declarations. | |
| DecsList & | decs_get () |
| Return list of declarations. | |
Accessors. | |
| const Location & | location_get () const |
| Return scanner position information. | |
| void | location_set (const Location &) |
| Set scanner position information. | |
Protected Attributes | |
| NameTy * | super_ |
| Super class. | |
| DecsList * | decs_ |
| List of declarations. | |
| Location | location_ |
| Scanner position information. | |
Construct a ClassTy node.
|
overridevirtual |
Accept a const visitor v.
Implements ast::Ty.
|
overridevirtual |
Accept a non-const visitor v.
Implements ast::Ty.
|
inline |
Return list of declarations.
References decs_.
Referenced by object::Binder::operator()(), astclone::Cloner::operator()(), and object::TypeChecker::visit_dec_members().
|
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 super class.
References super_.
Referenced by object::Binder::operator()(), and astclone::Cloner::operator()().
|
protected |
List of declarations.
Referenced by decs_get(), and ~ClassTy().
|
protectedinherited |
Scanner position information.
Referenced by ast::Ast::location_get(), ast::Ast::location_set(), ast::DecsList::push_back(), and ast::DecsList::push_front().
|
protected |
Super class.
Referenced by super_get().