summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/object-exp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/src/ast/object-exp.cc')
-rw-r--r--tiger-compiler/src/ast/object-exp.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/tiger-compiler/src/ast/object-exp.cc b/tiger-compiler/src/ast/object-exp.cc
new file mode 100644
index 0000000..c2d5808
--- /dev/null
+++ b/tiger-compiler/src/ast/object-exp.cc
@@ -0,0 +1,19 @@
+/**
+ ** \file ast/object-exp.cc
+ ** \brief Implementation of ast::ObjectExp.
+ */
+
+#include <ast/object-exp.hh>
+#include <ast/visitor.hh>
+
+namespace ast
+{
+ ObjectExp::ObjectExp(const Location& location, NameTy* type_name)
+ : Exp(location)
+ , type_name_(type_name)
+ {}
+
+ void ObjectExp::accept(ConstVisitor& v) const { v(*this); }
+
+ void ObjectExp::accept(Visitor& v) { v(*this); }
+} // namespace ast