summaryrefslogtreecommitdiff
path: root/src/ast/path.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-22 18:37:20 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-22 18:37:20 +0800
commit5c61e0955197adb58fdf7911ccf7e05c13f2263d (patch)
treeec216818778c9351f850bb4044a58c0cc6e691a4 /src/ast/path.hpp
parentfc9a04403eb5b694d37f77baa0de2f8e363f46f1 (diff)
downloadmrust-5c61e0955197adb58fdf7911ccf7e05c13f2263d.tar.gz
Clean up local path resolution, add internal 'str' type
Diffstat (limited to 'src/ast/path.hpp')
-rw-r--r--src/ast/path.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ast/path.hpp b/src/ast/path.hpp
index 4701b03a..fdf788a5 100644
--- a/src/ast/path.hpp
+++ b/src/ast/path.hpp
@@ -146,6 +146,10 @@ public:
DEBUG("crate set to " << m_crate);
}
}
+ void set_local() {
+ assert(m_class == RELATIVE);
+ m_class = LOCAL;
+ }
/// Add the all nodes except the first from 'b' to 'a' and return
static Path add_tailing(const Path& a, const Path& b) {