Introduced QML/JS references.

Done with ckamm
This commit is contained in:
Roberto Raggi
2010-02-03 10:24:25 +01:00
parent 95849cb0bd
commit ba18e70034
8 changed files with 119 additions and 4 deletions

View File

@@ -670,7 +670,7 @@ int QmlCodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
//qDebug() << "expression:" << expression;
if (expression != 0) {
Check evaluate(&interp);
Check evaluate(&interp, link.context());
// Evaluate the expression under cursor.
const Interpreter::Value *value = interp.convertToObject(evaluate(expression , scope));

View File

@@ -175,7 +175,7 @@ void QmlHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in
Link link(qmlDocument, snapshot, &interp);
const Interpreter::ObjectValue *scope = link.scopeChainAt(qmlDocument, declaringMember);
Check check(&interp);
Check check(&interp, link.context());
const Interpreter::Value *value = check(node, scope);
QStringList baseClasses;