LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
field.hh
Go to the documentation of this file.
1 
6 #ifndef AST_FIELD_HH
7 # define AST_FIELD_HH
8 
9 # include <ast/name-ty.hh>
10 # include <ast/ast.hh>
11 # include <misc/symbol.hh>
12 
13 namespace ast
14 {
15 
17  class Field : public Ast
18  {
21  public:
23  Field(const Location& location, const misc::symbol& name,
24  NameTy* type_name);
26  virtual ~Field();
29 
30 
31  public:
33  virtual void accept(ConstVisitor& v) const override;
35  virtual void accept(Visitor& v) override;
37 
40  public:
42  const misc::symbol& name_get() const;
44  void name_set(const misc::symbol&);
46  const NameTy& type_name_get() const;
51  protected:
56  };
57 
58 } // namespace ast
59 
60 # include <ast/field.hxx>
61 
62 #endif // !AST_FIELD_HH