forked from qt-creator/qt-creator
Pass in the whole AST path for scope creation.
Just the declaring member isn't enough.
This commit is contained in:
@@ -76,11 +76,10 @@ QList<DiagnosticMessage> Check::operator()()
|
||||
return _messages;
|
||||
}
|
||||
|
||||
bool Check::visit(UiProgram *ast)
|
||||
bool Check::visit(UiProgram *)
|
||||
{
|
||||
// build the initial scope chain
|
||||
if (ast->members && ast->members->member)
|
||||
_link.scopeChainAt(_doc, ast->members->member);
|
||||
_link.scopeChainAt(_doc);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user