Support absolute paths
Change-Id: Ibe087d2bad0c6c9f1619d8811103415bcb3b4906
diff --git a/src/ast_path.hpp b/src/ast_path.hpp
index 029d33f..8827a38 100644
--- a/src/ast_path.hpp
+++ b/src/ast_path.hpp
@@ -68,8 +68,15 @@
bool operator==(const node_& b) const;
};
+enum class Scope
+{
+ Absolute,
+ Relative
+};
+
struct path_ {
bool operator==(const path_& b) const;
+ Scope m_scope = Scope::Relative;
std::vector<node_> m_nodes;
};
@@ -83,4 +90,4 @@
BOOST_FUSION_ADAPT_STRUCT(listElement_, m_name, m_keys)
BOOST_FUSION_ADAPT_STRUCT(module_, m_name)
BOOST_FUSION_ADAPT_STRUCT(node_, m_prefix, m_suffix)
-BOOST_FUSION_ADAPT_STRUCT(path_, m_nodes)
+BOOST_FUSION_ADAPT_STRUCT(path_, m_scope, m_nodes)