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:
@@ -776,10 +776,10 @@ Context::~Context()
|
||||
{
|
||||
}
|
||||
|
||||
void Context::build(Node *node, QmlJS::Document::Ptr doc, const QmlJS::Snapshot &snapshot)
|
||||
void Context::build(const QList<AST::Node *> &astPath, Document::Ptr doc, const Snapshot &snapshot)
|
||||
{
|
||||
Link link(this, doc, snapshot);
|
||||
link.scopeChainAt(doc, node);
|
||||
link.scopeChainAt(doc, astPath);
|
||||
}
|
||||
|
||||
Engine *Context::engine() const
|
||||
|
Reference in New Issue
Block a user