summaryrefslogtreecommitdiff
path: root/src/ast/path.hpp
diff options
context:
space:
mode:
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) {