diff options
Diffstat (limited to 'src/ast/path.hpp')
-rw-r--r-- | src/ast/path.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ast/path.hpp b/src/ast/path.hpp index 9887d192..182802f2 100644 --- a/src/ast/path.hpp +++ b/src/ast/path.hpp @@ -73,6 +73,11 @@ public: ret.m_nodes.push_back(ent); return ret; } + Path operator+(const ::std::string& s) const { + Path tmp; + tmp.append(PathNode(s, {})); + return Path(*this) += tmp; + } Path operator+(const Path& x) const { return Path(*this) += x; } |