Christian Kamm
ced28c7090
Use the fully qualified name when registering the SemanticInfos.
...
Both for CppEditor::Internal::SemanticInfo and QmlJSEditor::Internal::
SemanticInfo.
2010-02-16 15:29:21 +01:00
Christian Kamm
45efd5b5b1
Don't show 'invalid property name' errors if we can't resolve the type.
...
The idea is that it may be a plugin-provided type. We don't want user
code to be riddled with error markers in that case.
Reviewed-by: Roberto Raggi
2010-02-16 13:30:40 +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
2a63387085
Renamed qmlmodelmanager.
2010-02-15 13:49:00 +01:00
Roberto Raggi
fd26a8c8ec
Get rid of the QmlJS prefix.
2010-02-15 12:56:03 +01:00
Roberto Raggi
8fb82ef792
Merge qmljshighlighter.* with qmlhighlighter.*.
2010-02-15 12:39:30 +01:00
Christian Kamm
b23fc0c572
Rename QmlJS::Check -> QmlJS::Evaluate.
...
It is used to evaluate expressions to values.
Done to make room for a real 'check' pass.
2010-02-15 11:52:39 +01:00
Roberto Raggi
4d7444e6cd
Fixed the insertion of matching braces when the token at the left of the cursor is a string literal.
2010-02-10 16:24:23 +01:00
Roberto Raggi
3d44c5621d
Improved completion of JavaScript expressions.
2010-02-09 11:37:58 +01:00
Roberto Raggi
967ed09c29
Initial support of `Follow symbol under cursor' for QML/JS.
2010-02-09 11:37:58 +01:00
Roberto Raggi
14ffb1e465
Some refactoring needed to create ranges for JavaScript functions.
2010-02-02 16:36:14 +01:00
Roberto Raggi
fac977a5bd
Try to get the type from a qualified-id.
2010-02-02 15:02:21 +01:00
Roberto Raggi
d22de18fae
Introduced SemanticInfo::nodeUnderCursor().
2010-02-02 13:19:27 +01:00
Roberto Raggi
f8ed5c58f0
Check the document's revision when creating links.
2010-02-02 13:19:26 +01:00
Roberto Raggi
0bb575b1f2
Create a link for the QML/JS expression under cursor.
2010-02-01 16:18:27 +01:00
Roberto Raggi
460c47f5c6
Introduced SemanticInfo::declaringMember(pos).
2010-02-01 16:18:26 +01:00
Roberto Raggi
6fe1f5b96c
Made the error recovering more robust.
2010-01-28 16:29:45 +01:00
Roberto Raggi
a72230feee
Reduced the interval UPDATE_DOCUMENT_DEFAULT_INTERVAL.
2010-01-28 15:07:15 +01:00
Roberto Raggi
39c2575ab3
Removed obsolete code
...
Done with: Erik
2010-01-27 14:37:24 +01:00
Erik Verbruggen
8ecc80ec4c
Generalized ExpressionUnderCursor and got rid of duplicate code.
...
Done-with: Roberto Raggi
2010-01-27 12:41:01 +01:00
Roberto Raggi
1e6a0523a1
Moved QmlJSTextEditor::m_declarations.
2010-01-26 14:26:26 +01:00
Roberto Raggi
5cff896fa8
Get rid off QmlJSEditor::m_idRevisions & co.
2010-01-26 14:14:01 +01:00
Roberto Raggi
e622d70617
There's no need to store the diagnostic messages in the editor.
...
Store the error message in the QTextCharFormat of the extra selection.
2010-01-26 14:03:37 +01:00
Roberto Raggi
fbd624d170
Update the ranges also for recovered ASTs.
2010-01-26 12:09:28 +01:00
Roberto Raggi
c9efafcb98
Introduced ranges and versioning of QML/JS documents.
2010-01-25 14:18:53 +01:00
Roberto Raggi
60ad6c478c
Moved QmlJSScanner::Token in the QmlJS namespace.
2010-01-19 12:54:17 +01:00
Christian Kamm
f812b5bf8c
Fix the drop-down symbol list for javascript.
...
It lists the top level function and variable declarations again.
2010-01-19 10:31:42 +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
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
Roberto Raggi
e790363fda
Check the lookahead character before inserting the matching quote or brace.
2010-01-18 11:24:38 +01:00
Erik Verbruggen
062fa8e783
Added mime-type for JS files to the QMLJS text editor.
2010-01-15 17:41:39 +01:00
Erik Verbruggen
96e31c2a0f
Started merging the JS and QML editor plug-ins.
2010-01-15 17:20:19 +01:00