Improved completion of JavaScript expressions.

This commit is contained in:
Roberto Raggi
2010-02-08 21:37:59 +01:00
parent 967ed09c29
commit 3d44c5621d
5 changed files with 50 additions and 51 deletions

View File

@@ -654,6 +654,7 @@ int QmlCodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
// Set up the current scope chain.
AST::Node *declaringMember = semanticInfo.declaringMember(editor->position());
qDebug() << "*** declaring member:" << declaringMember;
context.build(declaringMember, document, snapshot);
// Search for the operator that triggered the completion.