Roberto Raggi
6db71d185b
Try to get the item under cursor.
2010-01-25 09:31:36 +01:00
Roberto Raggi
24f5a9c0e4
Set up the scope chain.
2010-01-25 09:31:36 +01:00
Roberto Raggi
feab07de81
Refactored the QML/JS completer
2010-01-25 09:31:35 +01:00
Roberto Raggi
659b2a7ee3
Complete QML properties.
2010-01-25 09:31:35 +01:00
Roberto Raggi
3c37eaa577
Simulate the call stack.
2010-01-25 09:31:34 +01:00
Roberto Raggi
2d2ec2b785
Cleanup
2010-01-25 09:31:34 +01:00
Tobias Hunger
b832bc3d6e
Replace "sth */* text */" with "sth * /* text */"
...
* Fixes a warning in windows.
2010-01-22 14:54:26 +01:00
Roberto Raggi
099f2072a2
Added a simple scanner to get the expression under cursor.
2010-01-22 14:42:59 +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
Erik Verbruggen
2395ec51a6
Incorporated commit 38c0ed9870fc6bd8ba759c283eaf2bffb61c2e3f from kinetic-declarativeui.
...
Fixed possible array index-out-of-bounds crash in error reporting.
2010-01-21 16:47:46 +01:00
Roberto Raggi
60af1681c2
Initial work on the QML/JS expression evaluator.
2010-01-21 15:54:36 +01:00
Roberto Raggi
e87cd6d1a8
Fixed indentation of QML/JS for-statements.
2010-01-19 13:57:59 +01:00
Roberto Raggi
6b6b827d9b
Added helper method QmlJSIndenter::tokenText().
2010-01-19 12:59:31 +01:00
Roberto Raggi
60ad6c478c
Moved QmlJSScanner::Token in the QmlJS namespace.
2010-01-19 12:54:17 +01:00
Roberto Raggi
1bc838fd2b
Handle comments at the end of braceless control statements.
2010-01-19 12:50:48 +01:00
ck
4fb2a9fd5f
QmlJS: Fix compile for namespaced Qt.
...
Reviewed-by: Roberto Raggi
2010-01-19 11:31:24 +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
669c2de681
Implemented token-based version of QmlJSIndenter::matchBracelessControlStatement().
2010-01-18 18:31:17 +01:00
Roberto Raggi
c943d8e4f1
Renamed classes and files to use the QmlJS prefix.
2010-01-18 16:59:20 +01:00
Erik Verbruggen
ed4118628d
Changed the QScriptHighlighter & QScriptIndenter namespaces.
2010-01-18 14:12:45 +01:00
Erik Verbruggen
bedb5d936b
Moved the QScriptHighlighter & friends into the QmlJS library.
2010-01-18 14:12:44 +01:00
Erik Verbruggen
205c9b3f9a
Moved the qmljs shared folder into the shared library.
2010-01-18 14:12:44 +01:00
Erik Verbruggen
0f8126f62d
Changed the QML/JS editor to treat .qs/.js files as JavaScript, and invoke the appropriate parser for it.
...
Reviewed-by: Christian Kamm
2010-01-18 13:40:47 +01:00
Erik Verbruggen
8e11f81d96
Gotten rid of dulplicate files, and fixed includes.
2010-01-15 13:39:54 +01:00