LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
field-init.hh
Go to the documentation of this file.
1 
6 #ifndef AST_FIELD_INIT_HH
7 # define AST_FIELD_INIT_HH
8 
9 # include <ast/exp.hh>
10 # include <ast/ast.hh>
11 # include <misc/symbol.hh>
12 
13 namespace ast
14 {
15 
17  class FieldInit : public Ast
18  {
21  public:
23  FieldInit(const Location& location, const misc::symbol& name,
24  Exp* init);
26  virtual ~FieldInit();
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 Exp& init_get() const;
48  Exp& init_get();
51  protected:
56  };
57 
58 } // namespace ast
59 
60 # include <ast/field-init.hxx>
61 
62 #endif // !AST_FIELD_INIT_HH