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


Public Member Functions | |
Ctor & dtor. | |
| Field (const Location &location, const misc::symbol &name, NameTy *type_name) | |
| Construct a Field node. | |
| virtual | ~Field () |
| Destroy a Field 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 field name. | |
| void | name_set (const misc::symbol &) |
| Set the field name. | |
| const NameTy & | type_name_get () const |
| Return the field type name. | |
| NameTy & | type_name_get () |
| Return the field type name. | |
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 field name. | |
| NameTy * | type_name_ |
| The field type name. | |
| Location | location_ |
| Scanner position information. | |
| ast::Field::Field | ( | const Location & | location, |
| const misc::symbol & | name, | ||
| NameTy * | type_name | ||
| ) |
Construct a Field node.
|
virtual |
Destroy a Field node.
References type_name_.
|
overridevirtual |
Accept a const visitor v.
Implements ast::Ast.
|
overridevirtual |
Accept a non-const visitor v.
Implements ast::Ast.
|
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 |
|
inline |
Set the field name.
References name_.
|
inline |
|
inline |
Return the field type name.
References type_name_.
|
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 field name.
Referenced by name_get(), and name_set().
|
protected |
The field type name.
Referenced by type_name_get(), and ~Field().