QmlJS: Make variables in imported JS documents show up in completion.

Filtering them out has long since become unnecessary. It was used back
when JS files were sourced from Script elements - there they'd only
make the functions available. Now functions and variables are imported.

Task-number: QTCREATORBUG-1735
Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-06-25 13:01:55 +02:00
parent 11a08a250a
commit 123607ad70
4 changed files with 2 additions and 29 deletions

View File

@@ -208,9 +208,7 @@ public:
private:
void insertProperty(const QString &name, const Interpreter::Value *value)
{
if (_context->lookupMode() == Interpreter::Context::JSLookup ||
! dynamic_cast<const Interpreter::ASTVariableReference *>(value))
_properties.insert(name, value);
_properties.insert(name, value);
}
virtual bool processProperty(const QString &name, const Interpreter::Value *value)