Commit Graph

109 Commits

Author SHA1 Message Date
Andrey Breslav 42505246b8 Module descriptions in XML 2013-04-29 17:59:51 +04:00
Alexander Udalov 77ef20a51e Generate KFunction/KMemberFunction/KExtensionFunction
#KT-1183 In Progress
2013-04-22 17:59:30 +04:00
Alexander Udalov b343e94ea5 Refactor GenerateFunctions
Extract some methods && constants, inline some useless methods, replace
PrintStream with PrintWriter, make some methods non-static
2013-04-22 17:59:30 +04:00
Alexander Udalov 76fa9642f0 toString() for FunctionN classes
It's implemented as if the types were reified: getting the real type parameters
of the corresponding FunctionN class
2013-04-22 17:59:29 +04:00
Alexander Udalov 6f6cb03549 Make FunctionN interfaces
FunctionN and ExtensionFunctionN are now interfaces, with the corresponding
implementations in FunctionImplN and ExtensionFunctionImplN

Update test data
2013-04-22 17:59:29 +04:00
Alexander Udalov 34470ec89a Regenerate FunctionN and ExtensionFunctionN classes
GenerateFunctions now also generates Java classes in runtime/src/jet/
directory, and they have the matching declarations to those in
compiler/src/jet/

Delete ExtensionFunctionN's protected constructor, as it wasn't needed

Delete toString(), a more useful version will be implemented soon
2013-04-22 17:59:29 +04:00
Alexander Udalov 5c777a2f3a Refactor GenerateFunctions
Introduce FunctionKind enum to store differences between functions and
extension functions (and possible future function-like classes)

Also remove some useless checks
2013-04-22 17:59:29 +04:00
Alexander Udalov 5150eb1eea Fix newlines in FunctionN generator
Use println() instead of print('\n')
2013-04-22 17:59:29 +04:00
Wojciech Lopata cd0e1b7508 RmoveUnnecessaryParenthesesIntention 2013-04-19 08:41:31 +02:00
Andrey Breslav 4111e78ac2 ModuleDescriptor stores a PlatformToKotlinClassMap 2013-04-17 17:11:18 +04:00
Andrey Breslav f3656bcadd ModuleDescriptor stores default imports 2013-04-17 17:11:18 +04:00
Andrey Breslav a72e49d8f7 Use ModuleDescriptor instead of ModuleConfiguration 2013-04-17 17:11:17 +04:00
Andrey Breslav e29418cde5 ModuleDescriptor stores a ModuleConfiguration 2013-04-17 17:11:17 +04:00
Andrey Breslav 2e44996cd0 ModuleDescriptor interface extracted 2013-04-17 17:11:16 +04:00
Andrey Breslav 8c967e0c73 Unused parameters removed from injectors 2013-04-12 21:06:52 +04:00
Nikolay Krasko 840a728d26 Add generated suffix to tests 2013-04-11 20:00:31 +04:00
Nikolay Krasko 87c9a65667 Move all basic completion tests to common folder 2013-04-11 20:00:29 +04:00
Nikolay Krasko 7f8e0e8803 Test keywords completion with fixture tests 2013-04-11 20:00:28 +04:00
Nikolay Krasko f3e7ec81dc Do extensions test with fixtures 2013-04-11 20:00:26 +04:00
Nikolay Krasko 8ee8ddd997 Enable completion test from custom jar-libraries 2013-04-11 20:00:24 +04:00
Nikolay Krasko 1a5ccafd47 Refactor tests and activate them for working with JS 2013-04-11 20:00:22 +04:00
Alexey Sedunov af8c3792f6 Tests for code transformation: if statement with assignments <-> assignment with if expression 2013-04-04 15:52:17 +04:00
Nikolay Krasko e94843b7b3 JS checker tests 2013-04-03 18:18:03 +04:00
Leonid Shalupov 5ee5c841cb generators: don't write to files if content is not changed 2013-03-30 15:42:41 +04:00
Evgeny Gerashchenko 8f079f6d41 Added tests for ignoring Object methods when loading interface. 2013-03-27 19:19:58 +04:00
Evgeny Gerashchenko 461bfec45d Added FileFilter to mock JDK. 2013-03-27 19:19:55 +04:00
Natalia.Ukhorskaya 9091becbea Implement Class Hierarchy View
#KT-3419
2013-03-25 17:39:57 +04:00
Evgeny Gerashchenko 7dee1c1814 Removed test data and generator for test which is "temporarily" disabled. 2013-03-22 16:38:25 +04:00
Evgeny Gerashchenko e42db4bf31 Renamed generator. 2013-03-22 16:38:23 +04:00
Evgeny Gerashchenko 3f88fa4a45 Removed Tuples.jet. 2013-03-22 16:38:23 +04:00
Mikhael Bogdanov d9fd04dd43 Refactoring: code duplication removed from accessor generators 2013-03-20 20:50:05 +04:00
Evgeny Gerashchenko 82bff79c64 Adding nested classes in mock JDK automatically. 2013-03-14 20:49:44 +04:00
Evgeny Gerashchenko ddd0c07c2d Restored members which were present in mock JDK, but not in generation script. 2013-03-14 20:49:43 +04:00
Evgeny Gerashchenko 22fa239477 Removed entries which are missing in JDK 6. 2013-03-14 20:49:43 +04:00
Evgeny Gerashchenko 1e88d4ea2c Providing paths to jars via VM options, some other minor stuff. 2013-03-14 20:49:42 +04:00
Evgeny Gerashchenko d76de90931 Moved javaAgainstKotlin cases to generated test. 2013-03-12 20:40:18 +04:00
Evgeny Gerashchenko a0b780c7bb Moved sourceJava cases to generated test. 2013-03-12 20:40:18 +04:00
Evgeny Gerashchenko e943b9c9ab Moved compiledJava cases to generated test. 2013-03-12 19:31:46 +04:00
Evgeny Gerashchenko 9e1c0ea16e Updated generated tests according to moving general load Java tests to subdirectory. 2013-03-12 19:31:46 +04:00
Natalia.Ukhorskaya 3cb3f00562 IDE: folding imports 2013-03-07 12:25:47 +04:00
Natalia.Ukhorskaya 02c8989b2f Top level functions inside module should be invoked using package$src class 2013-03-06 16:22:52 +04:00
Andrey Breslav 7107288f88 Injectors regenerated 2013-03-06 12:53:14 +04:00
Andrey Breslav f7de41ea1b The rudimentary support for lazy injection removed 2013-03-06 12:52:49 +04:00
Evgeny Gerashchenko 0f83c8297e Added corner case test for int range iteration. 2013-03-05 14:58:43 +04:00
Natalia.Ukhorskaya 9bbfc788ea Generate all surround with tests to one file 2013-02-18 17:21:26 +04:00
Natalia.Ukhorskaya 7c360a0ede Add surround with function literal 2013-02-18 17:21:16 +04:00
Natalia.Ukhorskaya 7789062c7c Add try-catch, try-finally, try-catch-finally surrounders 2013-02-18 17:12:47 +04:00
Natalia.Ukhorskaya 654fa09fff Add when surrounder 2013-02-18 17:00:39 +04:00
Natalia.Ukhorskaya 814ca0385a Add string template surrounder 2013-02-18 17:00:34 +04:00
Natalia.Ukhorskaya 856bffb324 Add parentheses surrounder 2013-02-18 17:00:03 +04:00