Commit Graph

5350 Commits

Author SHA1 Message Date
Alexey Andreev aedf8bd232 JS: replace noImpl with definedExternally in tests 2017-01-24 20:14:31 +03:00
Mikhail Glukhikh bfb31a465f Quick-fix to add 'suspend' to the containing function #KT-15800 Fixed 2017-01-24 15:17:55 +03:00
mglukhikh 96cddb6b7b False positive in "Remove redundant let" fixed #KT-15884 Fixed 2017-01-24 15:17:48 +03:00
mglukhikh be75ef919e Change visibility modifier: now works on no-modifier type aliases #KT-15066 Fixed 2017-01-24 15:17:41 +03:00
shiraji d9ec8a92f2 KT-15553 Support compile constant for "Copy concatenation text to clipboard"
#KT-15553 Fixed
2017-01-24 14:33:52 +03:00
Kirill Rakhman 909007d984 Add inspection for private primary constructors in data classes
Fixes #KT-15709
2017-01-24 14:08:05 +03:00
mglukhikh b53ebd115b Pattern matching: work-around for smart cast target type instability #KT-14705 Fixed 2017-01-24 13:51:14 +03:00
shiraji ad9bf1626f Fix the problem with ConvertPrimaryConstructorToSecondaryIntention for enum #KT-15406 Fixed 2017-01-19 17:57:33 +03:00
Mikhael Bogdanov e1bec0df2e Proper generate interval for catch block variable; Fix for KT-15646: InconsistentDebugInfoException when stepping over throw
#KT-15646 Fixed
2017-01-19 09:33:10 +01:00
Dmitry Petrov b9f9894310 KT-15677 KT-15775
Update parser & descriptor renderer to handle parenthesized types and function types properly.
Resolve annotations in parenthesized types.

AnnotationsImpl.isEmpty() returned false for targeted annotations only
(e.g., 'fun @receiver:Ann C?.foo()').
Properly keep track of targeted annotations.
2017-01-19 09:53:17 +03:00
mglukhikh 93b2c56bb4 Fixed KNPE in convert primary constructor to secondary #KT-14745 Fixed 2017-01-16 17:35:51 +03:00
Dmitry Petrov 954204da82 KT-1560
Report warning on extensions shadowed by members.
2017-01-16 17:25:13 +03:00
Nikolay Krasko ded7d5911b Fix tests
Addition to 5d08e82aaf
2017-01-16 16:05:02 +03:00
Nikolay Krasko ea7fac07c4 Ban import member intentions from import directives (KT-13710)
#KT-13710 Fixed
2017-01-16 13:00:50 +03:00
Nikolay Krasko 5d08e82aaf Fix look up for breakpoint in crossinline lambdas in android (KT-15282)
#KT-15282 Fixed
2017-01-16 13:00:46 +03:00
Alexey Sedunov a9645e1ae9 Extract Superclass: Drop inapplicable modifiers when converting property-parameter to ordinary parameter
#KT-15674 Fixed
2017-01-13 15:17:45 +03:00
Alexey Sedunov 57d364e7d4 Extract Superclass/Interface: Fix bogus visibility warning inside a member when it's being moved as abstract
#KT-15635 Fixed
2017-01-13 15:17:43 +03:00
Alexey Sedunov 65b9049d59 Extract Interface/Pull Up: Warn about private members with usages in the original class
#KT-15606 Fixed
2017-01-13 15:17:42 +03:00
Alexey Sedunov 1c16d2af1a Extract Superclass/Interface/Pull Up: Reformat modifier lists of generated declarations (to add spaces where needed)
#KT-15639 Fixed
2017-01-13 15:17:41 +03:00
Alexey Sedunov e10b50a648 Extract Interface/Pull Up: Drop 'final' modifier when moving to an interface
#KT-15640 Fixed
2017-01-13 15:17:39 +03:00
Alexey Sedunov 52e9117e9d Extract Superclass/Interface: Allow extracting class with special name (and quotes)
#KT-15353 Fixed
2017-01-13 15:17:37 +03:00
Alexey Sedunov 5de4e9fdac Pull Up/Extract Interface: Disable "Make abstract" and assume it to be true for abstract members of an interface
#KT-15355 Fixed
2017-01-13 15:17:36 +03:00
Alexey Sedunov 8c882f0d27 Override Members: Allow overriding virtual synthetic members (e.g. equals(), hashCode(), toString(), etc.) in data classes
#KT-15563 Fixed
2017-01-13 15:17:35 +03:00
Alexey Sedunov 862966fd33 Override/Implement Members: Support all nullability annotations respected by the Kotlin compiler
#KT-12704 Fixed
 #KT-15583 Fixed
2017-01-13 15:17:34 +03:00
Dmitry Petrov 8756f00849 Fix testData for debugger test. 2017-01-13 13:54:07 +03:00
Dmitry Petrov ba933fa887 KT-15112, KT-15631
Revert changes for "tolerant to uninitialized values" in OptimizationBasicInterpreter:
this approach doesn't converge for some specific cases where local variable is reused
(e.g., in several inlined functions - see https://youtrack.jetbrains.com/issue/KT-15112).

Instead, treat fake always-false conditional jump in the beginning of the post-condition loop as a "reference point" for stack on loop break / continue.
This requires an extra abstraction layer in FixStackAnalyzer, since we can't perform fine-grain manipulations on Frames
(such as "combine frame C from local variables of frame A and stack of frame B").

NB additional NOPs will be generated for post-condition loops.
Should make a separate bytecode postprocessing pass to get rid of unnecessary NOPs
(several YT issues for perceived quality of the generated bytecode are about such NOPs).
2017-01-13 10:31:07 +03:00
Mikhail Glukhikh aeb6bff145 Create header implementation fix: check import directive, change / add it if needed 2017-01-12 18:58:07 +03:00
Simon Ogorodnik 4b3cf432dc KT-5629 Quickfix to import extension method when arguments of non-extension method do not match
#KT-5629 fixed
2017-01-12 18:06:31 +03:00
Simon Ogorodnik 0cf02dcb7b KT-15092 Suppress inspection "use property access syntax" for some getters and fix completion for them
#KT-15092 fixed
2017-01-12 14:53:38 +03:00
Nikolay Krasko c1538aea43 Get annotation for injection from reference descriptor (KT-15548)
#KT-15548 Fixed
2017-01-12 14:21:47 +03:00
Nikolay Krasko 0cbe19b930 Remove unused files 2017-01-12 13:49:31 +03:00
Simon Ogorodnik db8edb01c3 KT-14815 alt + enter -> "import" over a constructor reference is not working
#KT-14815 fixed
2017-01-11 22:41:09 +03:00
Mikhail Glukhikh 7c6d5c825c Join declaration & assignment is no more suggested in case of potential smart cast available #KT-15412 Fixed 2017-01-11 19:10:09 +03:00
Mikhail Glukhikh 31a8689999 Do not count 'impl' or 'header' with implementations as unused #KT-15305 Fixed 2017-01-11 18:37:55 +03:00
Mikhail Glukhikh b0a333456e Platform header IDE annotation: do not report suppressed error #KT-15601 Fixed 2017-01-11 18:37:44 +03:00
Mikhail Glukhikh 76ee6d7712 Minor: multi-platform highlighting tests rename 2017-01-11 18:37:38 +03:00
Mikhail Glukhikh 43a4035390 Clearer diagnostic message for platform type inspection #KT-14630 Fixed 2017-01-11 16:24:10 +03:00
Ilya Gorbunov dcd7f3eb57 Fix test data after introducing overloads #KT-15630 2017-01-11 14:33:17 +03:00
Alexey Sedunov 23ec8f0813 Quick Fixes: Implement "Create label" quick fix
#KT-8855 Fixed
2017-01-10 21:16:13 +03:00
Alexey Sedunov 534a773816 Intentions: Implement intention which converts object literal to class
#KT-15056 Fixed
2017-01-10 21:16:12 +03:00
Alexey Sedunov 612dffb893 Highlighting: Add line markers for suspend function calls in coroutines
#KT-14689 Fixed
2017-01-10 21:16:10 +03:00
Alexey Sedunov 6b57a3e338 Intentions: Implement intention which rename file according to the top-level class name
#KT-15068 Fixed
2017-01-10 21:16:08 +03:00
Simon Ogorodnik d0cf1b0c5f Fix for KT-14819 Quick documentation for special Enum functions doesn't work
#KT-14819 fixed
2017-01-10 16:04:18 +03:00
Simon Ogorodnik fa01a4efad Fix for KT-12872 Don't show "defined in <very long qualifier here>" in quick doc for local variables
#KT-12872 fixed
2017-01-10 16:03:30 +03:00
Kirill Rakhman a0491d5258 Add quickfix for changing primitive cast to primitive conversion method
Fixes #KT-15564
2017-01-09 16:36:56 +03:00
Kirill Rakhman 2b54f1ac72 "Add names to call arguments" shouldn't appear when the only argument is a trailing lambda
Fixes #KT-15501
2017-01-09 16:34:13 +03:00
shiraji 44e69d8adc Quick fix for applying spread operator where vararg is expected #KT-6824 Fixed 2017-01-09 16:32:23 +03:00
Ilya Zorin c5677f0428 Format spaces around :: 2017-01-09 12:19:29 +01:00
Kirill Rakhman 406bac684c Fix Quickfix for missing operator adds infix modifier to created function (#1012)
Fixes #KT-14907
2017-01-09 12:03:22 +01:00
Ilya Zorin ffe80dd549 Format spaces around by keyword (#1016) 2017-01-09 11:19:44 +01:00