From 19dd2b814fcd37b106048d202339d63d6232728e Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Wed, 3 Jun 2009 14:15:49 +0200 Subject: Added Symbol::enclosingNamespaceScope(), Symbol::enclosingClassScope(), and so on... --- src/shared/cplusplus/Symbol.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/shared/cplusplus/Symbol.h') diff --git a/src/shared/cplusplus/Symbol.h b/src/shared/cplusplus/Symbol.h index c5cc484f10..12c4822241 100644 --- a/src/shared/cplusplus/Symbol.h +++ b/src/shared/cplusplus/Symbol.h @@ -248,6 +248,21 @@ public: bool isGenerated() const; + /// Returns the eclosing namespace scope. + Scope *enclosingNamespaceScope() const; + + /// Returns the enclosing class scope. + Scope *enclosingClassScope() const; + + /// Returns the enclosing enum scope. + Scope *enclosingEnumScope() const; + + /// Returns the enclosing function scope. + Scope *enclosingFunctionScope() const; + + /// Returns the enclosing Block scope. + Scope *enclosingBlockScope() const; + void setScope(Scope *scope); // ### make me private void setSourceLocation(unsigned sourceLocation); // ### make me private -- cgit v1.2.1