Commit Graph

789 Commits

Author SHA1 Message Date
Roberto Raggi
6dcc675eb2 Guess the type of a global variable by looking at its initializer. 2010-02-01 17:31:28 +01:00
Roberto Raggi
a8bc5a4bb0 Create bindings for the javascript soure elements. 2010-02-01 17:20:46 +01:00
Roberto Raggi
15ae1001f4 Process QML Script elements. 2010-02-01 17:05:07 +01:00
Roberto Raggi
4d34ee7385 Removed obsolete code. 2010-02-01 17:05:06 +01:00
Roberto Raggi
85ea5c29a0 Made the Bind constructor protected. 2010-02-01 17:05:06 +01:00
Roberto Raggi
0f6551c43f Introduced ASTObjectValue. 2010-02-01 13:54:59 +01:00
Roberto Raggi
0cf48cb45d Introduced ASTFunctionValue. 2010-02-01 13:54:59 +01:00
Roberto Raggi
450ad48fe7 Clean up QmlJS::Bind. 2010-02-01 13:54:59 +01:00
Roberto Raggi
0f031609b1 Cleanup. 2010-02-01 13:54:59 +01:00
Oswald Buddenhagen
75b42f18d8 Merge remote branch 'origin/1.3'
Trailing whitespace removal re-applied manually.
2010-01-29 22:50:23 +01:00
Roberto Raggi
80b5a6b50a Removed useless code. 2010-01-29 15:29:45 +01:00
Roberto Raggi
04161a4ced Introduced QmlJSScanner::scanComments/setScanComments(onoff). 2010-01-29 15:05:22 +01:00
Roberto Raggi
fbbc27be32 Get rid off unused regexp QmlJSIndenter::label. 2010-01-29 15:01:49 +01:00
Roberto Raggi
206dafcd94 Removed unused code. 2010-01-29 14:58:41 +01:00
Christian Kamm
1ec6cbd913 Fix for renamed directory imports in the QML code model. 2010-01-29 13:36:41 +01:00
Christian Kamm
a49f313c0c Drop implicit directory imports, implement renamed directory imports. 2010-01-29 13:22:57 +01:00
Roberto Raggi
922c607b4f Highlight QML context types. 2010-01-29 11:53:41 +01:00
Roberto Raggi
913e248366 Fixed the indentation of if-else statements. 2010-01-29 11:31:41 +01:00
Roberto Raggi
c5f4983b0c Highlight `import' keyword. 2010-01-29 11:23:06 +01:00
Roberto Raggi
14207aa856 Fixed highlihing of QML context keywords. 2010-01-29 11:20:42 +01:00
Roberto Raggi
272014a5d0 Mark the trailing whitespaces. 2010-01-29 10:50:16 +01:00
Roberto Raggi
020e7f5739 Mark also the whitespaces inside comments and string literals. 2010-01-29 10:32:00 +01:00
Roberto Raggi
4c2c5c02bb Mark the white spaces using the VisualWhitespace format. 2010-01-29 10:26:33 +01:00
Roberto Raggi
d78e64dbf7 Fixed the highlihting of bindings and types. 2010-01-29 10:22:18 +01:00
Roberto Raggi
2dd5bebd12 Skip white spaces. 2010-01-29 09:48:21 +01:00
Roberto Raggi
6fe1f5b96c Made the error recovering more robust. 2010-01-28 16:29:45 +01:00
Roberto Raggi
da81d59e24 Look at the enumerators when populating the completion box. 2010-01-28 15:51:16 +01:00
Roberto Raggi
b4ccdab483 Removed obsolete code. 2010-01-28 15:51:16 +01:00
Christian Kamm
6134f2880a Always return a valid scope from Link. 2010-01-28 15:03:50 +01:00
Christian Kamm
1d39377fb1 Separate bind into bind, link imports and building the scope chain. 2010-01-28 14:53:53 +01:00
Roberto Raggi
d52842326f Removed obsolete code. 2010-01-28 14:34:51 +01:00
Roberto Raggi
98474002ad Store all the object-based values in the QML/JS interpreter. 2010-01-28 14:20:57 +01:00
Roberto Raggi
280a99b6dc Invoke onBlockEnd() after the block highlighter is done. 2010-01-28 14:18:52 +01:00
Roberto Raggi
fa925ccd5a Say hello to the new incremental scanner for QML/JS. 2010-01-28 13:13:23 +01:00
Roberto Raggi
a658ee55f2 Ask the HelpEngine for documentation about builtin QML components.
Done with: Erik
2010-01-27 15:13:30 +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
72172ea7d4 Use the Interpreter::Engine::defaultValueForBuiltinType(ty) when processing property definitions. 2010-01-27 11:01:07 +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
cac1973a27 Import the types in the declaring namespace object. 2010-01-27 09:23:06 +01:00
Christian Kamm
4f31f0f51f Qml editor: add function declarations to objects or the Script scope.
Enables completion for function declarations inside qml files.
2010-01-26 18:09:30 +01:00
Roberto Raggi
9cdca3a92b Some initial support for relative imports. 2010-01-26 17:23:18 +01:00
Roberto Raggi
5107ba57c2 There's no need to create a namespace object when the importId is invalid. 2010-01-26 16:31:07 +01:00
Roberto Raggi
c1b3f0b120 Coding style. 2010-01-26 16:21:03 +01:00
Roberto Raggi
02ee76b82a Initalize the members of the binder. 2010-01-26 15:51:31 +01:00
Erik Verbruggen
138221ac24 Add missing qmljsmetatypesystem.*
Done-with: ckamm
2010-01-26 15:29:35 +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
aa92c84e08 Group the members of ConvertToString and ConvertToNumber. 2010-01-26 15:12:47 +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
f995022af7 Insert the semicolon at the end of the trimmed line only when it is stricly necessary. 2010-01-26 12:56:05 +01:00