Commit Graph

23 Commits

Author SHA1 Message Date
Christian Kamm
9531e75188 Revert "QmlJS: Use the canonical paths for the Documents."
Using canonical paths breaks with symlinked components. Also the editor
filename isn't canonical, so comparing them breaks.

This reverts commit efcdadd2bb.
2010-04-01 12:43:15 +02:00
Christian Kamm
49416fe888 QmlJS: Add a path->document list hash to Snapshot.
Also change the filename->document map to a hash.

Reviewed-by: Roberto Raggi
2010-04-01 11:28:56 +02:00
Christian Kamm
efcdadd2bb QmlJS: Use the canonical paths for the Documents.
Otherwise the paths may end up with ../ or /./ in them and confuse the
Qml import resolving.

Reviewed-by: Thomas Hartmann
2010-04-01 10:59:20 +02:00
Christian Kamm
811da6e31a Remove debug output that slipped into 5ed718a002 2010-03-31 15:58:23 +02:00
Kai Koehne
5ed718a002 Fix imported qml component names under Windows
Reviewed-by: ckamm
2010-03-31 15:50:02 +02:00
Christian Kamm
3191cfe832 QmlJS: Fix invalid errors inside qmlproject files.
The Document thought it was a JS file as it doesn't have the .qml
extension.
2010-03-31 13:43:40 +02:00
Roberto Raggi
4ee8a199af Introduced Document::isQmlDocument() and Document::isJSDocument(). 2010-03-29 12:56:25 +02:00
Christian Kamm
6eadfa3ac0 Read qmldir files in a thread and cache them in Snapshot.
Reviewed-by: Erik Verbruggen
2010-03-18 16:47:21 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Christian Kamm
da3679066e Add QmlJS semantic checker.
* Add SemanticHighlighter to QmlJSTextEditor to update the semantic info
  in a background thread.
* Add QmlJS::Check to run semantic checks on qml and js documents.
* Add a check for incorrect property names.
* Fix hoverhandler to show tool tips from extra selections over help
  tooltips.
2010-02-16 10:38:56 +01:00
Roberto Raggi
7a65191306 Moved the code in the source file. 2010-02-11 10:19:41 +01:00
Roberto Raggi
3d44c5621d Improved completion of JavaScript expressions. 2010-02-09 11:37:58 +01:00
Roberto Raggi
fcf81b22ed Get rid of BindPtr.
There is no reason to store the Bind object in a QSharedPointer because the `binder' has the same
lifetime of its document.
2010-02-03 15:59:15 +01:00
Christian Kamm
03fa188b41 Bind each QML document after parsing. Link them before use.
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2010-02-02 16:03:43 +01:00
Roberto Raggi
39c2575ab3 Removed obsolete code
Done with: Erik
2010-01-27 14:37:24 +01:00
Roberto Raggi
a05f2cb318 Check the file extension before computing the component's name. 2010-01-27 09:24:49 +01:00
Roberto Raggi
9cdca3a92b Some initial support for relative imports. 2010-01-26 17:23:18 +01:00
Erik Verbruggen
cf35a0249b Implemented the binding phase for QML.
Done-with: Christian Kamm
2010-01-26 15:20:18 +01:00
Roberto Raggi
ab8c19f2f8 Some initial work on the type checker for QML/JS. 2010-01-26 14:55:33 +01:00
Roberto Raggi
c9efafcb98 Introduced ranges and versioning of QML/JS documents. 2010-01-25 14:18:53 +01:00
Roberto Raggi
ba3e68fcbb Try to get the type of the qualified name id under cursor 2010-01-22 10:26:52 +01:00
Christian Kamm
419bc3005e Add QmlJS::Document::ast() for when the type of the AST doesn't matter.
Ideally most of our visitors won't need to make the QML vs JS
distinction. For these cases it'll be handy to be able to access the AST
no matter whether it's a Program or UiProgram.
2010-01-19 10:16:57 +01:00
Roberto Raggi
c943d8e4f1 Renamed classes and files to use the QmlJS prefix. 2010-01-18 16:59:20 +01:00