Made FindScope a member of FindUses.

This commit is contained in:
Roberto Raggi
2009-07-08 13:50:49 +02:00
parent 5b28b53943
commit eb7dfc49a0

View File

@@ -178,6 +178,8 @@ class FindUses: protected ASTVisitor
} }
}; };
FindScope findScope;
public: public:
FindUses(Control *control) FindUses(Control *control)
: ASTVisitor(control) : ASTVisitor(control)
@@ -246,8 +248,6 @@ protected:
unsigned line, column; unsigned line, column;
getTokenStartPosition(ast->firstToken(), &line, &column); getTokenStartPosition(ast->firstToken(), &line, &column);
FindScope findScope;
Scope *scope = findScope(line, column, Scope *scope = findScope(line, column,
_functionScope->owner(), _functionScope->owner(),
translationUnit()); translationUnit());
@@ -280,8 +280,6 @@ protected:
unsigned line, column; unsigned line, column;
getTokenStartPosition(ast->firstToken(), &line, &column); getTokenStartPosition(ast->firstToken(), &line, &column);
FindScope findScope;
Scope *scope = findScope(line, column, Scope *scope = findScope(line, column,
_functionScope->owner(), _functionScope->owner(),
translationUnit()); translationUnit());