forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user