Commit Graph

35630 Commits

Author SHA1 Message Date
Mikhail Glukhikh 729a3a34b8 Cleanup: remove empty primary constructor applied 2016-12-02 13:38:47 +03:00
Mikhail Glukhikh f71ea8858b Cleanup: remove empty constructor body applied 2016-12-02 13:38:42 +03:00
Mikhail Glukhikh d5638dffaa Cleanup: redundant if statement applied 2016-12-02 13:38:37 +03:00
Mikhail Glukhikh 96ae881c16 Cleanup: join declaration & assignment applied 2016-12-02 13:38:32 +03:00
Dmitry Petrov e63abff7e8 Recognize possible generic property call chain ('a.b<T>.c') on '::' LHS. 2016-12-02 10:20:05 +03:00
Mikhail Glukhikh 4af9b274a1 KT-12100 convert try / finally to use: select use parameter after application 2016-12-01 20:39:19 +03:00
Mikhail Glukhikh 9ea326870d KT-12100 convert try / finally to use: report intention only at try { 2016-12-01 20:39:14 +03:00
Mikhail Glukhikh 0cc52e2ff8 KT-12100 convert try / finally to use: safe close() is allowed in finally + correct new lines 2016-12-01 20:39:08 +03:00
Mikhail Glukhikh 0ac443066e KT-12100 convert try / finally to use: 'this' receiver is now left as is 2016-12-01 20:39:03 +03:00
Mikhail Glukhikh f513514c53 KT-12100 convert try / finally to use: 'this' cases, implementation via resolved call 2016-12-01 20:38:57 +03:00
Mikhail Glukhikh 468e975580 KT-12100 related: convert try / finally to use() call inspection introduced 2016-12-01 20:38:52 +03:00
Mikhail Glukhikh 59b2608354 "Convert try / finally to .use { } call intention introduced" #KT-12100 Fixed 2016-12-01 20:38:46 +03:00
Ilya Gorbunov 1f1403d31d Minor: run configuration for binary-compatibility-validator uses maven build instead of JPS 2016-12-01 17:46:15 +03:00
Nikolay Krasko 6ea2526af8 Fix multiplatform tests on Windows 2016-12-01 17:38:07 +03:00
Mikhail Zarechenskiy 25c3b43858 Support Infinity and NaN in constant evaluator
This allows to store infinities and NaNs inside const vals
2016-12-01 16:08:53 +03:00
Nikolay Krasko 57964845ad Check no runtime markers are misused in quick fix tests
(cherry picked from commit bab26d4)
2016-12-01 14:33:37 +03:00
Nikolay Krasko dbe32b98ef Filter also by kind to avoid getting enum descriptors from compiled code 2016-12-01 14:33:37 +03:00
Nikolay Krasko 6a9c368532 Auto-import does not suggest enum constant (KT-14100)
#KT-14100 Fixed

(cherry picked from commit 61730ee)
2016-12-01 14:33:37 +03:00
Denis Zharkov cbebb06574 Do not return star-projections during approximation
See comment in test for clarification

 #KT-14453 Fixed
2016-12-01 13:39:38 +03:00
Denis Zharkov b8e1ce7a05 Report error on non-tail suspend-calls
It only concerns calls inside another suspend function

 #KT-14924 In Progress
2016-12-01 10:11:37 +03:00
Denis Zharkov aa50f1d824 Report error when suspend call is illegal in the scope
Namely when it's not contained inside coroutine or another suspend function

 #KT-14924 In Progress
2016-12-01 10:11:37 +03:00
Mikhail Zarechenskiy 240d82d167 Move reified type parameter checker to additional checkers to able turn it off by demand 2016-12-01 10:06:38 +03:00
Ilya Gorbunov dc57d69085 Improve onEach templates.
Add new functions to reference API.
Add tests for onEach
  #KT-8220
2016-11-30 16:46:56 +03:00
Christian 5bde230d4a Add onEach template. #KT-8220 2016-11-30 16:46:26 +03:00
Ilya Gorbunov 65a7410eca Allow receiver to be generic type constrained by SELF. Receiver itself now can be referenced with RECEIVER. 2016-11-30 16:46:26 +03:00
Ilya Chernikov 5a25bd5e2d Fix script configuration manager startup, fixes #EA-86126 2016-11-30 13:09:22 +01:00
Ilya Chernikov 4e6e3a3403 Check for script file validity on cache changes, fixes #EA-90318, #EA-87672 2016-11-30 13:09:21 +01:00
Ilya Chernikov 0e7413b5b1 Generalizing error handling when working with (potentially 3rd-party) script templates, fixing #EA-91412 and alike 2016-11-30 13:09:20 +01:00
Ilya Chernikov c51da7d8c1 Refactor daemon sessions container, attempt to fix #EA-87285 and alike 2016-11-30 13:09:19 +01:00
Ilya Chernikov 014e43e50a Generalize error processing on daemon connection, attempt to fix #EA-82064 again 2016-11-30 13:09:18 +01:00
Ilya Chernikov c88b11aa27 Generalize error processing in retrieving gradle settings, fixes #EA-87096, #EA-87129, #EA-87275 and alike 2016-11-30 13:09:17 +01:00
Alexey Sedunov 313d838f1b Unused Symbol Inspection: Fix exception on deleting unused declaration in IDEA 2016.3 2016-11-30 14:35:41 +03:00
Alexey Sedunov 1bde0e12fd Rename: Fix exceptions on moving file with facade class to another package
#KT-14325 Fixed
2016-11-30 14:35:40 +03:00
Alexey Sedunov cedbac6b43 Safe Delete: Fix exception on deleting Java class used in Kotlin import directive(s)
#KT-14596 Fixed
2016-11-30 14:35:39 +03:00
Alexey Sedunov 465138cfa1 Initialize with Constructor Parameter Intention: Fix IDE freeze on properties in generic class
#KT-14459 Fixed
2016-11-30 14:35:38 +03:00
Alexey Sedunov b29c704a92 Rename: Do not report redeclaration conflict for private top-level declarations located in different files
#KT-14361 Fixed
2016-11-30 14:35:37 +03:00
Alexey Sedunov a2d3592228 Project Settings: Expose language version setting in IntelliJ IDEA plugin compiler configuration UI
#KT-12410 Fixed
2016-11-30 14:35:36 +03:00
Alexey Sedunov 21c6e97731 Project Settings: Expose JVM target setting in IntelliJ IDEA plugin compiler configuration UI
#KT-13811 Fixed
2016-11-30 14:35:35 +03:00
Alexey Sedunov 740f769487 Rename: Fix renaming of .kts file to .kt and vice versa
#KT-14814 Fixed
2016-11-30 14:35:34 +03:00
Alexey Sedunov ddb5308993 Extract Interface: Fix NPE on dialog opening
#KT-14854 Fixed
2016-11-30 14:35:34 +03:00
Alexey Sedunov 24035d2c83 Introduce Type Alias: Forbid nested/local type aliases 2016-11-30 14:35:33 +03:00
Alexey Sedunov 752ae87591 Introduce Type Alias: Support callable references/class literals
#KT-14861 Fixed
2016-11-30 14:35:32 +03:00
Alexey Sedunov 9967d4c4e2 Move: Fix EA-1266148 2016-11-30 14:35:31 +03:00
Alexey Sedunov 0f58e2eef2 Introduce Type Alias: Replace type usages in constructor calls. Do not replace usages of existing type aliases
#KT-14685 Fixed
2016-11-30 14:35:30 +03:00
Alexey Sedunov 7a38dfadba Introduce Type Alias: Fix NPE during dialog repaint
#KT-14696 Fixed
2016-11-30 14:35:29 +03:00
Alexey Sedunov 939532b6f3 Introduce Type Alias: Do not suggest type qualifiers
#KT-14693 Fixed
2016-11-30 14:35:28 +03:00
Alexey Sedunov 9a4fa3a871 Presentation: Add icons for type aliases 2016-11-30 14:35:27 +03:00
Natalia Ukhorskaya 01d4ec4187 Debugger: ability to set breakpoint to lambda in return statement (KT-14615)
#KT-14615 Fixed
2016-11-30 13:56:29 +03:00
Nikolay Krasko 730e561177 Navigation to inline functions doesn't work for thread dump captured using "Get thread dump" (KT-14916)
#KT-14916 Fixed
2016-11-30 13:53:12 +03:00
Ilya Gorbunov 21fba92c93 Annotate new number parsing functions with SinceKotlin.
#KT-8286, #KT-7930
2016-11-30 02:33:51 +03:00