aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/cplusplus/Symbol.h
diff options
context:
space:
mode:
authorRoberto Raggi <[email protected]>2009-06-03 14:15:49 +0200
committerRoberto Raggi <[email protected]>2009-06-03 14:15:49 +0200
commit19dd2b814fcd37b106048d202339d63d6232728e (patch)
tree7bb2e741a3a23c9b81b885caedb2b79075272d10 /src/shared/cplusplus/Symbol.h
parent7b44f1749a11928346b07511ae7a1470bcb93673 (diff)
Added Symbol::enclosingNamespaceScope(), Symbol::enclosingClassScope(), and so on...
Diffstat (limited to 'src/shared/cplusplus/Symbol.h')
-rw-r--r--src/shared/cplusplus/Symbol.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Symbol.h b/src/shared/cplusplus/Symbol.h
index c5cc484f108..12c48222416 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