summaryrefslogtreecommitdiff
path: root/src/include/ident.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ident.hpp')
-rw-r--r--src/include/ident.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/ident.hpp b/src/include/ident.hpp
index d702385c..b9a6dec5 100644
--- a/src/include/ident.hpp
+++ b/src/include/ident.hpp
@@ -37,6 +37,13 @@ struct Ident
rv.contexts.push_back( ++g_next_scope );
return rv;
}
+ Hygiene get_parent() const
+ {
+ //assert(this->contexts.size() > 1);
+ Hygiene rv;
+ rv.contexts.insert(rv.contexts.begin(), this->contexts.begin(), this->contexts.end()-1);
+ return rv;
+ }
Hygiene(Hygiene&& x) = default;
Hygiene(const Hygiene& x) = default;