Commit Graph

22475 Commits

Author SHA1 Message Date
Valentin Kipyatkov 67cfd9d516 KT-4909 Smart completion does not work for named arguments
KT-7668 Named argument completion does not work after vararg

 #KT-4909 Fixed
 #KT-7668 Fixed
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov 58ac497bd7 KT-5041 Smart completion for last argument lambda outside parenthesis
#KT-5041 Fixed
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov 023c5eabf4 KT-6780 Completion inserts incorrect comma in end of parameter list when lambda parameter exists
#KT-6780 Fixed
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov a036a6435b Fixed not working item in completion list for infix call 2015-05-16 17:09:51 +03:00
Valentin Kipyatkov 2adf0a3e9a KT-4908 Smart completion does not work for arguments of function with vararg
#KT-4908 Fixed
2015-05-16 17:09:50 +03:00
Valentin Kipyatkov 4c315b6219 KT-7452 Code completion does not honor smart casts for 'this'
#KT-7452 Fixed
2015-05-16 17:09:50 +03:00
Dmitry Jemerov dc9523016a report 'trait' keyword as deprecated, provide quickfix for replacing with 'interface' 2015-05-15 18:20:39 +02:00
Michael Nedzelsky 3dce96e01c JS: add tests for two libraries and js-file with two modules 2015-05-15 18:50:01 +03:00
Michael Bogdanov 5daf79d2de Tests for obsolete KT-5232: vfy error with default parameter in method of trait
#KT-5232 Obsolete
2015-05-15 18:06:52 +03:00
Michael Bogdanov f1eb68c55a Test for obsolete KT-3579: UsupportedOperationException while trying to compile recursive trait
#KT-3579 Obsolete
2015-05-15 18:06:52 +03:00
Michael Bogdanov eb8d2d695c Test for non-general case of KT-4174 2015-05-15 18:06:51 +03:00
Michael Bogdanov 576ead2afe Test for obsolete KT-3698: Static fields of primitive types and String must be compile-time constants
#KT-3698 Obsolete
2015-05-15 18:06:51 +03:00
Mikhail Glukhikh 4e1a90ee61 Diagnostics for incorrect enum members order, when enum entry follows enum member. A few diagnostic tests.
Now incorrect enum members order is treated as a warning.
2015-05-15 16:13:46 +03:00
Mikhail Glukhikh 983339e1c9 Detection of semicolon between enum entries together with the correct delimiter quick fix for this case.
Error message reported directly on semicolon.
2015-05-15 16:13:41 +03:00
Mikhail Glukhikh edd269f5ff Quick fix for enum entry delimiter syntax fix, together with a set of tests.
Possible NPE in getNextSiblingIgnoringWhitespace fixed. Some warnings also removed.
Last comma is replaced by semicolon. Comments are taken into account.
2015-05-15 16:13:39 +03:00
Mikhail Glukhikh da3d083dc0 Quick fix for enum entry super constructor syntax fix, together with a set of tests 2015-05-15 16:13:36 +03:00
Mikhail Glukhikh 147bca3d22 Enum deprecated syntax detection implemented and integrated into DeclarationsChecker.
A lot of tests was changed to refactor deprecated syntax. Six new tests were added to check deprecated syntax detection.
Diagnostic for "enum entry uses deprecated super constructor": constructor is highlighted
Diagnostic for "enum entry uses deprecated or no delimiter".
One warning removed.
2015-05-15 16:13:34 +03:00
Mikhail Glukhikh 1a312140e9 New enum syntax: Short constructor syntax introduced for entries, optional commas between entries, semicolon after entries. #KT-7605 Fixed.
Grammar changed accordingly.
Semicolons prohibited after an entry except the last one.
Only one initializer is allowed per entry.
EnumReferenceExpression AST node introduced.
Some tests fixed, a pair of new tests written. Kotlin code inside project fixed.
Formatter and intendation tests fixed accordingly.
Stub version is incremented.
2015-05-15 16:13:32 +03:00
Mikhail Glukhikh 67cce57aeb Decompiler & stub builder fixed accordingly with new enum syntax.
Companion object now directly follows enum entries to avoid having them at the middle.
Some decompiler & stub builder tests fixed accordingly.
2015-05-15 16:13:29 +03:00
Mikhail Glukhikh cf741cb868 Enum parsing changed: first entries, then members. Grammar fixed accordingly.
A set of compiler tests and some plugin tests changed accordingly.
Compiler Kotlin code changed accordingly.
2015-05-15 16:13:27 +03:00
Mikhail Glukhikh 7a4dee44b8 Final decision about enum new syntax (specification) 2015-05-15 16:13:25 +03:00
Andrey Breslav 629513e532 Options for new syntax 2015-05-15 16:13:23 +03:00
Andrey Breslav 457aa24f27 Create enums.md 2015-05-15 16:13:21 +03:00
Nikolay Krasko 6b64ae77f3 Test light classes from sources have priority over decompiled light classes 2015-05-15 15:29:31 +03:00
Nikolay Krasko 04cb2bc66f Update to 141.1010.3 2015-05-15 15:29:30 +03:00
Natalia Ukhorskaya b6e885ba84 Minor: rename 2015-05-15 13:22:50 +03:00
Natalia Ukhorskaya b9a45172c8 refactoring: do not create dialog in ChangeSignatureTests 2015-05-15 13:09:17 +03:00
Ilya Gorbunov 1fc5c39c22 Remove overload of joinToString with 5 parameters and it's usage from java code. 2015-05-15 03:02:48 +03:00
Ilya Gorbunov 7ffc1e13d9 Char.isLetter and Char.isLetterOrDigit (JVM). 2015-05-15 03:02:33 +03:00
Ilya Gorbunov 7721efad8a Restore isNotEmpty and isNotBlank methods for non-nullable String receiver.
#KT-7234 Fixed
2015-05-15 02:59:22 +03:00
Sergey Mashkov 771af78b06 JS fix gradle example 2015-05-14 23:51:46 +03:00
Evgeny Gerashchenko a93cc083d6 Don't try to find local descriptors in decompiled classes. 2015-05-14 21:51:08 +03:00
Evgeny Gerashchenko 0498bd7739 KT-7587 Overloads are not generated during partial compilation of package
#KT-7587 fixed
2015-05-14 21:51:08 +03:00
Evgeny Gerashchenko ca883d8117 Green code. 2015-05-14 21:51:08 +03:00
Evgeny Gerashchenko 533935f2c0 KT-7472 function of anonymous class is never used
#KT-7472 fixed
2015-05-14 21:51:07 +03:00
Evgeny Gerashchenko f00d96d67a Merge pull request #669 from JetBrains/rr/nik
use API class instead of impl to create Java SDK
2015-05-14 21:50:10 +04:00
Alexander Udalov 2fe05c6f11 Parse and resolve annotations on supertypes 2015-05-14 18:58:08 +03:00
Alexander Udalov 5539444aa2 Minor, fix runtime for compiler in CompilerSmokeTest 2015-05-14 18:40:50 +03:00
Alexander Udalov a267beb5aa Fix order of dependencies for module 'descriptors'
'util.runtime' exports Kotlin Runtime which has reflection classes which
override their newer copies from 'deserialization'
2015-05-14 18:40:49 +03:00
Alexander Udalov 62d0d5c77f Minor, fix error message when renaming package facade 2015-05-14 18:40:49 +03:00
Alexander Udalov b881827b74 Use descriptors instead of PSI in ImplementationBodyCodegen 2015-05-14 18:40:48 +03:00
Sergey Mashkov 13a55ae72e JS use wholeText instead of replaceWholeText() in example 2015-05-14 17:30:34 +03:00
nik cefc704af0 use API class instead of impl to create Java SDK 2015-05-14 15:51:12 +03:00
Alexey Sedunov e7748e2700 Convert Parameter to Receiver: Replace parameter references with labeled this-expressions (before shortening them). Report conflict when this-label is ambiguous
#KT-7681 Fixed
2015-05-14 15:47:56 +03:00
Alexey Sedunov 2dac70a4f7 Inline Val: Do not highlight usages if some are not located in the same file as the declaration itself
#KT-7655 Fixed
2015-05-14 15:47:55 +03:00
Alexey Sedunov 7f05b35332 Minor: Fix checkox mnemonic 2015-05-14 15:47:54 +03:00
Alexey Sedunov 3e620dbbbb Find Usages: Show class-specific dialog for all Kotlin classes (including bultins)
#KT-7048 Fixed
2015-05-14 15:47:53 +03:00
Alexey Sedunov 02006126f5 Introduce Property: Forbid extension properties with initializers and lazy
ones
2015-05-14 15:47:51 +03:00
Alexey Sedunov b69b66feab Extraction Engine: Do not extract type parameter if it's resolved in the target scope
#KT-7246 Fixed
2015-05-14 15:47:50 +03:00
Sergey Mashkov 7045140d11 JS make NodeListAsList field private 2015-05-14 14:33:37 +03:00