Added an empty_scope_t utility class
This commit is contained in:
parent
c19b7099b2
commit
2b108c66cc
1 changed files with 11 additions and 0 deletions
11
src/scope.h
11
src/scope.h
|
|
@ -136,6 +136,17 @@ private:
|
|||
#endif // HAVE_BOOST_SERIALIZATION
|
||||
};
|
||||
|
||||
class empty_scope_t : public scope_t
|
||||
{
|
||||
public:
|
||||
virtual string description() {
|
||||
return _("<empty>");
|
||||
}
|
||||
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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue