Commit Graph

20422 Commits

Author SHA1 Message Date
Mikhail Glukhikh 56435fa283 FIR Java: add default constructors 2019-05-28 10:20:40 +03:00
Mikhail Glukhikh d0404b2c2a FIR resolve: check number of parameters when handling Java accessors 2019-05-28 10:20:38 +03:00
Kirill Shmakov 362e056b18 Expand acronym for K/N definitions file 2019-05-27 15:58:04 +03:00
Simon Ogorodnik 50a7d3f037 Adjust performanceTest jvm args 2019-05-27 15:00:46 +03:00
Mikhail Zarechenskiy cc29ca02f8 [NI] Don't loose inference session during property resolve
#KT-31620 Fixed
2019-05-26 21:31:54 +03:00
Ilya Chernikov a4c049d26e Replace message collector with reporting lambda
to simplify usages and slightly reduce dependencies
2019-05-25 10:10:28 +02:00
Dmitry Gridin ba390202c8 Remove resolve from isEffectivelyActual && isExpectDeclaration
Relates to #KT-29731
2019-05-24 15:55:01 +07:00
Dmitry Gridin 61a740457d Suggest dialog if all members without actual modifier
Relates to #KT-31476
2019-05-24 15:55:01 +07:00
Dmitry Gridin 8dd1389979 Minor: remove redundant condition 2019-05-24 15:55:01 +07:00
Dmitry Gridin 9c4318a39c Minor: cleanup OverrideMemberChooserObject 2019-05-24 15:55:01 +07:00
Dmitry Gridin 76c2c2a5e9 Allow "Add val/var to primary constructor parameter" for inline & annotation classes
Relates to #KT-29731
2019-05-24 15:55:01 +07:00
Dmitry Gridin f2bd58c030 Expand "Create expected..." also to a members if an expect class doesn't exist
#KT-31272 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin 47e3a26749 Fix "Create expect function" for primary constructor
#KT-31518 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin b575ed390a Add a dialog to select members for export in expect class
#KT-31476 Fixed
#KT-31446 Fixed
#KT-31033 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin 9a910ef144 Fix modifiers for ACTUAL_RENDERER 2019-05-24 15:55:01 +07:00
Dmitry Gridin a9ed042199 Minor: refactoring 2019-05-24 15:55:01 +07:00
Dmitry Gridin 1097bc76af Don't suggest Add val/var to parameter at expect class constructor
#KT-29731 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin af9d9eacb1 Minor: refactoring AddValVarToConstructorParameterAction 2019-05-24 15:55:00 +07:00
Dmitry Gridin 379152303c Minor: refactoring 'refactoring' package 2019-05-24 15:55:00 +07:00
Dmitry Gridin 98a4c4588e Don't suggest might be const on actual member declaration
#KT-27822 Fixed
2019-05-24 15:55:00 +07:00
Nikolay Krasko e38ad3a513 Temporary allow resolve in write action for insert handler 2019-05-23 16:25:09 +03:00
Nikolay Krasko 78569c62c0 Additional test for multiple comments in copyright updater 2019-05-23 16:25:09 +03:00
Nikolay Krasko 136cbd195b Fix copyright updater in scripts (KT-30133)
#KT-30133 Fixed
2019-05-23 16:25:09 +03:00
Nikolay Krasko aa01328d13 Add tests for copyright updater 2019-05-23 16:25:08 +03:00
Nikolay Krasko d32d715cd1 Move copyright extension out of jvm to common idea module 2019-05-23 16:25:08 +03:00
Nikolay Krasko 314b29f223 Fix background for uneditable text panes in Kotlin update (KT-29667)
#KT-29667 Fixed
2019-05-23 16:25:08 +03:00
Toshiaki Kameyama 3bca1a50e3 Move variable declaration into when: fix comment place
#KT-31362 Fixed
2019-05-23 19:01:24 +07:00
Mikhail Glukhikh f4fdc66a34 Introduce experimental FIR compiler #KT-31265 Fixed
This commit also includes several FIR2IR fixes which helps FIR compiler
to produce normal results
2019-05-23 14:02:06 +03:00
Peter Xu a639607821 Revert obsolete code introduced in KT-12402
The classes being filtered have been renamed months ago. The change
committed in KT-12402 is no longer relevant as the underlying issue has
been fixed.
2019-05-23 19:09:28 +09:00
Vladimir Krivosheev 757b4b3910 Do not use constructor injection for app level extension KotlinClassWithDelegatedPropertyRenderer (KT-31266) 2019-05-23 19:09:27 +09:00
Dmitriy Novozhilov f54653eb2b [NI] Fix error type approximation in ILTApproximatorConfiguration
#KT-31441 Fixed
2019-05-23 12:22:42 +03:00
Mikhail Glukhikh 0cf318918c Clean & fix tests in "replace manual range with indices / iteration"
Related to KT-14344
2019-05-21 13:34:29 +03:00
Natalia Selezneva 7c46338181 Drop ScriptBinariesScopeCache from plugin.xml because it was moved to ScriptDependenciesCache
^KT-31521 Fixed
2019-05-21 12:07:11 +03:00
Igor Yakovlev f044d654f0 Fix KotlinLintTest.parcel test
Added plugin classpath of android compiler extensions to module facet
2019-05-20 19:54:46 +03:00
Igor Yakovlev 611b6f36ce Remove redundant import from QuickFixMultiFileTestGenerated 2019-05-20 12:50:09 +03:00
KilianCallebaut 3451c60f93 Suggest to replace manual range with explicit indices or iterable
#KT-14344 Fixed
2019-05-20 12:24:52 +03:00
Toshiaki Kameyama 2c424afefa Elvis -> if intention: don't produce boilerplate code for return/break/continue/throw in RHS
#KT-14369 Fixed
2019-05-20 11:15:41 +03:00
Natalia Selezneva 160de2dbe2 Do not load script dependencies if all script templates aren't loaded 2019-05-20 10:41:15 +03:00
Natalia Selezneva 58eca451c4 Sdk passed in script dependencies should be used during script resolve
PsiElementFinder doesn't find classes from sdks that aren't Project SDK, so when Script Sdk differs from it we need to additionally search classes in script sdk using KotlinScriptDependenciesClassFinder (as we do for classes from ScriptDependencies.classpath)

^KT-31152 Fixed
2019-05-20 10:41:15 +03:00
Natalia Selezneva 5bc7b61497 Refactoring: move ScriptBinariesScopeCache to ScriptDependenciesCache 2019-05-20 10:41:14 +03:00
Natalia Selezneva c2717b3006 Filter out all non JavaSdk from script sdks 2019-05-20 10:41:14 +03:00
Natalia Selezneva 144ff8ae91 Refactoring: move method that find sdk for script to ScriptDependenciesManager 2019-05-20 10:41:14 +03:00
Natalia Selezneva 2f5deefd0a Scripts refactoring: move all scripts caches to ScriptDependenciesCache
Introduce base class for caches based on SLRUMap (with write lock) to avoid exceptions with concurrent map modifications
2019-05-20 10:41:13 +03:00
Natalia Selezneva 1ef4d987d1 Add debug log for script dependencies loading process 2019-05-20 10:41:13 +03:00
Toshiaki Kameyama 6ff776ba65 Convert property to function: fix incorrectly conversion when property has explicit generic type
#KT-29192 Fixed
2019-05-19 14:57:25 +07:00
Toshiaki Kameyama 354f8f0bf1 Redundant 'suspend' modifier inspection: don't report when function has suspend operator invoke
#KT-25465 Fixed
2019-05-18 11:54:57 +03:00
Nikolay Krasko ef70e9db19 Don't use light classes for navigation element (KT-10215)
Place KotlinNavBarModelExtension before Java extension because it
substitutes non-java elements to files.

 #KT-10215 Fixed
2019-05-17 21:43:58 +03:00
Toshiaki Kameyama 0a4d21c51f Sort by class name in navigation bar (KT-10215)
#KT-10215 Fixed
2019-05-17 18:15:58 +03:00
Vadim Brilyantov 01a05a5495 Move daemon jar from compiler 2019-05-17 15:51:52 +03:00
Vadim Brilyantov ced973b707 Introduce new Kotlin Daemon without RMI abstraction 2019-05-17 15:51:51 +03:00