diff options
Diffstat (limited to 'src/shared/cplusplus/Scope.cpp')
-rw-r--r-- | src/shared/cplusplus/Scope.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Scope.cpp b/src/shared/cplusplus/Scope.cpp index 6c910c072c..fcb5a68027 100644 --- a/src/shared/cplusplus/Scope.cpp +++ b/src/shared/cplusplus/Scope.cpp @@ -208,6 +208,21 @@ void Scope::enterSymbol(Symbol *symbol) } } +Symbol *Scope::lookat(Name *name) const +{ + if (! name) + return 0; + + else if (OperatorNameId *opId = name->asOperatorNameId()) + return lookat(opId->kind()); + + else if (Identifier *id = name->identifier()) + return lookat(id); + + else + return 0; +} + Symbol *Scope::lookat(Identifier *id) const { if (! _hash || ! id) |