/** ** \file type/nil.cc ** \brief Implementation for type/nil.hh. */ #include #include #include #include #include namespace type { /*------. | Nil. | `------*/ void Nil::accept(ConstVisitor& v) const { v(*this); } void Nil::accept(Visitor& v) { v(*this); } bool Nil::compatible_with(const Type& other) const { // FIXME DONE: Some code was deleted here return dynamic_cast(&other.actual()) != nullptr || dynamic_cast(&other.actual()) != nullptr; } const Type* Nil::record_type_get() const { return record_type_; } void Nil::record_type_set(const Type& type) const { record_type_ = &type; } } // namespace type