Commit Graph

13428 Commits

Author SHA1 Message Date
Pavel V. Talanov ea6b751645 Converter:
Place function type parameters before function name
2013-12-22 16:46:49 +04:00
Pavel V. Talanov f912c0bc65 Converter: Fix converting a single import statement
Untested (tests for copy paste processor needed)
2013-12-22 16:46:48 +04:00
Pavel V. Talanov df74352ea3 Converter:
Fix converting import list
Add tests for imports problem
Add 'element' test type
2013-12-22 16:46:46 +04:00
Pavel Talanov ba87779a8e Refactor converter:
Move the logic dealing with imports to Imports.kt file, refactor the code
2013-12-22 16:46:44 +04:00
Pavel V. Talanov 0f9a93ffca Refactor converter:
Move some of the code out of Converter.kt to newly created MethodUtils.kt
Simplify and clarify that code
2013-12-22 16:46:43 +04:00
Pavel V. Talanov 5ea324a320 Refactor converter:
Remove unused flags
2013-12-22 16:46:41 +04:00
Pavel V. Talanov 2b9599e987 Refactor converter:
Move some of the code out of Converter.kt to newly created MainMethodUtils.kt and ConstructorUtils.kt
Get rid of class object of Converter class
2013-12-22 15:53:23 +04:00
Pavel V. Talanov 38f5361021 Converter:
Do not generate redundant visibility modifier for overrides
2013-12-22 15:53:22 +04:00
Pavel V. Talanov d98d8cfa7f Converter:
Functions are final by default in plugin mode
2013-12-22 15:53:21 +04:00
Pavel V. Talanov bf4e27b152 Converter:
Classes are final by default in plugin mode
2013-12-22 15:53:19 +04:00
Pavel V. Talanov 354daa91bb Converter:
Remove outdated compatibility import mode
2013-12-22 15:53:18 +04:00
Pavel V. Talanov f9586581a9 Converter:
Fix assert statement
2013-12-22 15:53:15 +04:00
Pavel V. Talanov 21bc2887d2 Converter:
Omit Unit return type
Refactor handling of Unit type: extract separate object UnitType
2013-12-22 15:53:14 +04:00
Pavel V. Talanov 82b19499e3 Converter tests:
Use generated tests approach in converter tests

Introduce two seperate generated test cases of each of configurations, all tests are generated in both test cases
Test data for plugin configuration has extension "ide.kt", for basic configuration "*.kt"
Test data file is used to determine type of the test (file/class/expression/...) instead of directory, all test data is moved accordingly
Add abstract base classes for generated tests
Rename test folder "file" to "misc" (for the lack of imagination)
2013-12-22 15:53:13 +04:00
Pavel Talanov cba8d3b6db Converter:
Replace hack used to configure Converter by ConverterSettings class
Minor: remove redundant open modifiers, add override annotations
2013-12-22 15:37:09 +04:00
Pavel Talanov 3edefcf598 Converter:
Refactor handling of primitive types
Inject converter in places of use
Make Element and Node traits
2013-12-22 15:37:08 +04:00
Zalim Bashorov ca99db3c47 Update to IDEA 133.331 EAP 2013-12-20 19:05:16 +04:00
Valentin Kipyatkov 914a566094 Smart completion: anonymous object creation + rewrote some code using LookupElementDecorator 2013-12-20 18:49:11 +04:00
Valentin Kipyatkov 9627a335c2 Smart completion: no items of unresolved types 2013-12-20 18:49:10 +04:00
Andrey Breslav ac191a7dbb Introduce fall-through handling of recursion in lazy values
Fixed EA-52272 - NA: LockBasedStorageManager$LockBasedLazyValue.recursionDetected
2013-12-20 18:30:10 +04:00
Andrey Breslav 44e055e698 Explicit lock references replaced with capturing StorageManager as an outer instance 2013-12-20 17:29:32 +04:00
Svetlana Isakova c9f3f9ca1f added position strategy to NOTHING_TO_INLINE error 2013-12-19 22:28:47 +04:00
Svetlana Isakova cfb7bcb73b use smart cast info while adding constraint for receiver 2013-12-19 22:05:52 +04:00
Evgeny Gerashchenko b4dbd69d23 Using triple quotes for regexps. 2013-12-19 21:48:41 +04:00
Evgeny Gerashchenko 4f36031874 Using null instead empty string for directory. 2013-12-19 21:48:40 +04:00
Evgeny Gerashchenko 1d21ebf882 Using default renderer in LoadBuiltinsTest. 2013-12-19 21:48:39 +04:00
Evgeny Gerashchenko ec5d41a10e Added clarifying comments in toString() 2013-12-19 21:48:39 +04:00
Evgeny Gerashchenko 6a36ba99d1 KT-4302 Kotlin plugin drops unsaved document content on indexing finish
#KT-4302 fixed
2013-12-19 21:48:38 +04:00
Evgeny Gerashchenko 9134fc8586 Rewritten single class tests to DSL. 2013-12-19 21:48:38 +04:00
Evgeny Gerashchenko dd5766d878 Renamed some generated tests to follow conventions. 2013-12-19 21:48:38 +04:00
Evgeny Gerashchenko cd8f5fae54 Renamed some generated tests to follow conventions. 2013-12-19 21:48:37 +04:00
Evgeny Gerashchenko 7c4675a9c0 Removed unnecessary "recursive = false" 2013-12-19 21:48:37 +04:00
Evgeny Gerashchenko fa89d537fa Fixed generator class name. 2013-12-19 21:48:36 +04:00
Evgeny Gerashchenko 50d578e0ea Rewritten Generate Tests to Kotlin. 2013-12-19 21:48:36 +04:00
Evgeny Gerashchenko ac9d520946 Temporarily renamed GenerateTests.java -> GenerateTests.kt 2013-12-19 21:48:25 +04:00
Evgeny Gerashchenko 46ec25e066 Removed duplicate test class. 2013-12-19 21:21:22 +04:00
Natalia Ukhorskaya 9b51a77cdf Remove unused field 2013-12-19 16:43:11 +04:00
Valentin Kipyatkov 24b68e7bdf Completion: better replacement range calculation for both basic and smart completions 2013-12-19 16:07:46 +04:00
Valentin Kipyatkov d28705a5ec Smart completion to ignore context after the caret 2013-12-19 16:07:46 +04:00
Svetlana Isakova dd6940be41 added CHECK_TYPE directive to diagnostic tests 2013-12-19 13:01:05 +04:00
Natalia Ukhorskaya c9a600a405 Fix for varargs as annotation arguments #KT-4326 Fixed 2013-12-18 15:13:53 +04:00
Natalia Ukhorskaya 145c7811a8 Named vararg arguments: don't allow to use array without spread, allow to use one value of vararg type
#KT-3802 Fixed
2013-12-18 15:13:52 +04:00
Alexander Udalov 3a57694ddd Minor, NotNull annotations 2013-12-17 21:49:31 +04:00
Alexander Udalov 11f33c9399 Reorganize JVM intrinsics
Make IntrinsicMethod an abstract class, coerce the resulting value of the
intrinsic to the expected type
2013-12-17 21:49:31 +04:00
Alexander Udalov 24678f189e Make intrinsic method always generate value of expected type on stack
IntrinsicMethod.generate()'s return value is 'StackValue.onStack(returnType)'
and will be dropped
2013-12-17 21:49:30 +04:00
Valentin Kipyatkov 843a005aec Fixed KT-4318 Keyword should be selected in completion if there's exact match
#KT-4318 Fixed
2013-12-17 21:17:56 +04:00
Evgeny Gerashchenko 17cf488cc6 Removed redundant tests for loading builtins. 2013-12-17 20:29:00 +04:00
Evgeny Gerashchenko b7cfd676bf Merged LoadCompiledKotlin test int LoadJavaTest. 2013-12-17 20:28:59 +04:00
Evgeny Gerashchenko 62f44f7ed0 Minor. Reordered test methods. 2013-12-17 20:28:58 +04:00
Evgeny Gerashchenko 1c25c971e0 Corrected test error message. 2013-12-17 20:28:58 +04:00