QmlJS: Don't produce Qml type errors if plugins are imported.

Task-number: QTCREATORBUG-1021
Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-04-07 10:43:09 +02:00
parent eae88f02ba
commit db2f91ef8f
5 changed files with 22 additions and 1 deletions

View File

@@ -308,6 +308,9 @@ public:
const Value *property(const ObjectValue *object, const QString &name) const;
void setProperty(const ObjectValue *object, const QString &name, const Value *value);
bool documentImportsPlugins(const Document *doc) const;
void setDocumentImportsPlugins(const Document *doc);
private:
typedef QHash<QString, const Value *> Properties;
@@ -315,6 +318,7 @@ private:
LookupMode _lookupMode;
QHash<const ObjectValue *, Properties> _properties;
QHash<QString, const ObjectValue *> _typeEnvironments;
QSet<QString> _documentsImportingPlugins;
ScopeChain _scopeChain;
int _qmlScopeObjectIndex;
bool _qmlScopeObjectSet;