Initial work on the `new' GenTemplateInstance.

This commit is contained in:
Roberto Raggi
2009-10-26 17:54:32 +01:00
parent b4744214c6
commit 82ecb2c7b3
6 changed files with 359 additions and 165 deletions

View File

@@ -347,8 +347,10 @@ QList<Scope *> LookupContext::buildVisibleScopes()
}
QList<Scope *> LookupContext::visibleScopes(const QPair<FullySpecifiedType, Symbol *> &result) const
{ return visibleScopes(result.second); }
QList<Scope *> LookupContext::visibleScopes(Symbol *symbol) const
{
Symbol *symbol = result.second;
QList<Scope *> scopes;
for (Scope *scope = symbol->scope(); scope; scope = scope->enclosingScope())
scopes.append(scope);