diff options
author | John Hodge <tpg@mutabah.net> | 2015-11-03 12:25:42 +1100 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-11-03 12:25:42 +1100 |
commit | 20ee7442f280ced9e5258876f9fd2212797f868b (patch) | |
tree | 2bb4fd40727ad0402d6d17a6501d5bab05fb5e48 /src/ast/path.hpp | |
parent | 01ec57f596f89d4b52b378975f941e2ed8d2e563 (diff) | |
download | mrust-20ee7442f280ced9e5258876f9fd2212797f868b.tar.gz |
Remove embedded spans (will move to wrapping spans)
Diffstat (limited to 'src/ast/path.hpp')
-rw-r--r-- | src/ast/path.hpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ast/path.hpp b/src/ast/path.hpp index fd1cf5dc..743934fe 100644 --- a/src/ast/path.hpp +++ b/src/ast/path.hpp @@ -131,7 +131,6 @@ private: public: Class m_class; - Span m_span; private: PathBinding m_binding; @@ -144,7 +143,6 @@ public: Path& operator=(AST::Path&& x) { m_crate = mv$(x.m_crate); m_class = mv$(x.m_class); - //m_span = mv$(x.m_span); m_binding = mv$(x.m_binding); //DEBUG("Path, " << x); return *this; @@ -193,12 +191,6 @@ public: DEBUG("crate set to " << m_crate); } } - void set_span(Span sp) { - this->m_span = sp; - } - const Span& span() const { - return this->m_span; - } Class::Tag class_tag() const { @@ -330,6 +322,9 @@ public: void bind_function(const Function& ent, const ::std::vector<TypeRef>& args={}) { m_binding = PathBinding::make_Function({&ent}); } + void bind_type_alias(const TypeAlias& ent, const ::std::vector<TypeRef>& args={}) { + m_binding = PathBinding::make_TypeAlias({&ent}); + } }; } // namespace AST |