From 2b108c66ccb7750660611a1a9fe5eb6cf63a686b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 7 Mar 2012 05:16:34 -0600 Subject: Added an empty_scope_t utility class --- src/scope.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/scope.h') diff --git a/src/scope.h b/src/scope.h index 7a50c423..1b2566d5 100644 --- a/src/scope.h +++ b/src/scope.h @@ -136,6 +136,17 @@ private: #endif // HAVE_BOOST_SERIALIZATION }; +class empty_scope_t : public scope_t +{ +public: + virtual string description() { + return _(""); + } + virtual expr_t::ptr_op_t lookup(const symbol_t::kind_t, const string&) { + return NULL; + } +}; + class child_scope_t : public noncopyable, public scope_t { public: -- cgit v1.2.3