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

@@ -270,12 +270,6 @@ private:
class QMLJS_EXPORT Context
{
public:
enum LookupMode {
JSLookup,
QmlLookup
};
public:
Context(Engine *engine);
~Context();
@@ -284,9 +278,6 @@ public:
const ScopeChain &scopeChain() const;
ScopeChain &scopeChain();
LookupMode lookupMode() const;
void setLookupMode(LookupMode lookupMode);
const ObjectValue *typeEnvironment(const Document *doc) const;
void setTypeEnvironment(const Document *doc, const ObjectValue *typeEnvironment);
@@ -307,7 +298,6 @@ private:
typedef QHash<QString, const Value *> Properties;
Engine *_engine;
LookupMode _lookupMode;
QHash<const ObjectValue *, Properties> _properties;
QHash<QString, const ObjectValue *> _typeEnvironments;
QSet<QString> _documentsImportingPlugins;