Commit Graph

120 Commits

Author SHA1 Message Date
Alexey Sedunov 3f2ff3eb24 Add code transformations for if/when in local property initializers 2013-06-07 17:05:05 +04:00
Svetlana Isakova 9731ff499e added generator for resolve tests 2013-06-06 18:23:11 +04:00
Alexey Sedunov b00ec82884 Implement "move expression up/down" action handler 2013-06-05 15:50:47 +04:00
Alexey Sedunov fe8891299b Implement "move class-level declaration up/down" action handler 2013-06-05 15:50:41 +04:00
Alexey Sedunov a2ee65e64c Add type tests for JetPsiMatcher 2013-06-05 15:03:19 +04:00
Alexey Sedunov 3a635c537e Move JetPsiMatcher with tests to plugin module 2013-06-05 15:03:17 +04:00
Evgeny Gerashchenko 43b9a9d434 Renamed Name.getName() and FqName.getFqName() to asString() 2013-05-21 17:56:05 +04:00
Alexey Sedunov d2f3dd1629 JetPsiMatcher: reimplement using visitor, add structural type matching 2013-05-15 18:29:14 +04:00
Alexey Sedunov 7dd5a2cfa4 Add tests for 'if-when' and 'when' transformations 2013-05-15 12:57:57 +04:00
Alexey Sedunov 64e578297c Replace fold/unfold intentions with a set of specialized ones 2013-05-15 12:57:41 +04:00
Alexey Sedunov f473224e84 Add tests for folding/unfolding operations 2013-05-15 12:57:30 +04:00
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