diff options
author | Christian Kamm <[email protected]> | 2010-02-19 12:25:26 +0100 |
---|---|---|
committer | Christian Kamm <[email protected]> | 2010-02-22 10:22:23 +0100 |
commit | 08cfc8f28c1aaae1670fa96fc15e4abe00d72e18 (patch) | |
tree | 03c0c1c8b7e54130e823d4415da4978a9cfa06e9 /src/libs/qmljs/qmljsinterpreter.cpp | |
parent | 8274197366a227fcc69833d3645e535f888594f6 (diff) |
Pass in the whole AST path for scope creation.
Just the declaring member isn't enough.
Diffstat (limited to 'src/libs/qmljs/qmljsinterpreter.cpp')
-rw-r--r-- | src/libs/qmljs/qmljsinterpreter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp index f7dc0c5393d..2ea8eb71b62 100644 --- a/src/libs/qmljs/qmljsinterpreter.cpp +++ b/src/libs/qmljs/qmljsinterpreter.cpp @@ -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 |