aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljsinterpreter.cpp
diff options
context:
space:
mode:
authorChristian Kamm <[email protected]>2010-02-19 12:25:26 +0100
committerChristian Kamm <[email protected]>2010-02-22 10:22:23 +0100
commit08cfc8f28c1aaae1670fa96fc15e4abe00d72e18 (patch)
tree03c0c1c8b7e54130e823d4415da4978a9cfa06e9 /src/libs/qmljs/qmljsinterpreter.cpp
parent8274197366a227fcc69833d3645e535f888594f6 (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.cpp4
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