Separate bind into bind, link imports and building the scope chain.

This commit is contained in:
Christian Kamm
2010-01-28 14:53:53 +01:00
parent 2ab90078f4
commit 1d39377fb1
7 changed files with 261 additions and 97 deletions

View File

@@ -190,8 +190,7 @@ void QmlHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in
}
Interpreter::Engine interp;
Bind bind(qmlDocument, snapshot, &interp);
Interpreter::ObjectValue *scope = bind(declaringMember);
Interpreter::ObjectValue *scope = Bind::scopeChainAt(qmlDocument, snapshot, &interp, declaringMember);
Check check(&interp);
const Interpreter::Value *value = check(expression, scope);
QStringList baseClasses;