diff options
Diffstat (limited to 'src/types.hpp')
-rw-r--r-- | src/types.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/types.hpp b/src/types.hpp index 500e03f7..d963a058 100644 --- a/src/types.hpp +++ b/src/types.hpp @@ -179,6 +179,7 @@ public: bool is_path() const { return m_class == PATH; }
bool is_type_param() const { return m_class == GENERIC; }
bool is_reference() const { return m_class == REFERENCE; }
+ bool is_pointer() const { return m_class == POINTER; }
bool is_tuple() const { return m_class == TUPLE; }
const ::std::string& type_param() const { assert(is_type_param()); return m_path[0].name(); }
AST::Path& path() { assert(is_path()); return m_path; }
|