forked from qt-creator/qt-creator
		
	QmlJSEditor: Build Snapshot by looking at imports of parsed files.
Previously we just scanned every directory containing a qml file for other qml files. This makes import ".." work. Reviewed-by: Erik Verbruggen
This commit is contained in:
		| @@ -51,6 +51,8 @@ public: | ||||
|     virtual ~Bind(); | ||||
|  | ||||
|     QStringList includedScripts() const; | ||||
|     QStringList fileImports() const; | ||||
|     QStringList libraryImports() const; | ||||
|  | ||||
|     Interpreter::ObjectValue *currentObjectValue() const; | ||||
|     Interpreter::ObjectValue *idEnvironment() const; | ||||
| @@ -100,6 +102,9 @@ private: | ||||
|  | ||||
|     QHash<AST::Node *, Interpreter::ObjectValue *> _qmlObjects; | ||||
|     QStringList _includedScripts; | ||||
|  | ||||
|     QStringList _fileImports; | ||||
|     QStringList _libraryImports; | ||||
| }; | ||||
|  | ||||
| } // end of namespace Qml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user