Commit Graph

14412 Commits

Author SHA1 Message Date
Mikhail Glukhikh 767db68daf Cleanup: when possible, do analyzeFully -> analyze 2017-04-07 15:36:02 +03:00
Mikhail Glukhikh ba04dac4b7 Cleanup: when possible, do analyzeFullyAndGetResult -> analyzeFully
Also, when possible, do analyzeAndGetResult -> analyze
2017-04-07 15:36:00 +03:00
Mikhail Glukhikh ceff19ee74 Cleanup: leaking this inspection 2017-04-07 15:35:59 +03:00
Mikhail Glukhikh aed98a745e Do not use KtClassInitializer as analyzable parent
Fixes analyzeFully() semantics making it closer to compiler
Fixes two flaky tests for "leaking this" quick-fixes
2017-04-07 15:35:58 +03:00
Vyacheslav Gerasimov 6b9242075a Fix MovePropertyToConstructorIntention applicability and type rendering
#KT-17238 Fixed

(cherry picked from commit 7f9d88a)
2017-04-07 14:32:06 +03:00
Nikolay Krasko d65b7a5b4b Better indent in else-if editing (KT-14601)
#KT-14601 Fixed

(cherry picked from commit 25d6d61)
2017-04-07 14:21:45 +03:00
Dmitry Jemerov da9af682d9 Don't show Kotlin in "Add framework support" for Maven/Gradle modules
#KT-16392 Fixed
2017-04-07 13:09:58 +02:00
Dmitry Jemerov f1e96709a8 JSFrameworkSupportProvider: J2K 2017-04-07 13:09:58 +02:00
Dmitry Jemerov ee5ebb8ab7 JSFrameworkSupportProvider: rename to .kt 2017-04-07 13:09:58 +02:00
Dmitry Jemerov 372ab57b65 JavaFrameworkSupportProvider: J2K 2017-04-07 13:09:58 +02:00
Dmitry Jemerov 25830be3a2 JavaFrameworkSupportProvider: rename to .kt 2017-04-07 13:09:58 +02:00
Dmitry Jemerov 5ef2b39804 Don't create multiple copies of KotlinJavaRuntime for multiple modules
#KT-17259 Fixed
2017-04-07 13:09:58 +02:00
Dmitry Jemerov 1488b21143 More consistent configurator names
#KT-17138 Fixed
2017-04-07 13:09:58 +02:00
Dmitry Jemerov 7159550a8f Show selected configurator in title of "Configure Kotlin" dialog
#KT-17251 Fixed
2017-04-07 13:09:58 +02:00
Dmitry Jemerov 2e33850981 Hide "Configure Kotlin" notification after Kotlin has been configured
#KT-17289 Fixed
2017-04-07 13:09:58 +02:00
Dmitry Jemerov 29eafcbc97 Don't show "Choose Configurator" popup for one available configurator
#KT-17287 Fixed
2017-04-07 13:09:58 +02:00
Dmitry Jemerov 02af278766 Hide "Configure Kotlin (JavaScript)" in Android Studio
#KT-17288 Fixed
2017-04-07 13:09:58 +02:00
Alexander Udalov 2be8a4f184 Minor, delete obsolete test data 2017-04-07 13:44:02 +03:00
Ilya Gorbunov 3db1613167 Setup dist task to assemble libs for compiler distribution.
Produce special stdlib artifact with annotations for dist.
Put js outputs to dist, they're required for JS backend tests.

Use kotlin-compiler for maven, which has all required dependencies bundled.
Clean local directory repository on clean.

Change paths in tests to compiled artifacts.
2017-04-06 20:32:37 +03:00
Alexey Sedunov 3552b94cdc Kotlin Facet: Avoid excessive validation
#KT-17293 Fixed
2017-04-06 18:54:07 +03:00
Alexey Sedunov c1066b98f0 Move: Fix warning on companion used as implicit dispatch receiver
Do not report conflict if target class is a sublcass of
companion object's containing class
2017-04-06 18:54:02 +03:00
Alexey Sedunov 5c35061afa Move: Make minor improvements and refactorings 2017-04-06 18:52:45 +03:00
Alexey Sedunov 97789d4a32 Move: Show progress indicator when updating usages 2017-04-06 18:18:34 +03:00
Alexey Sedunov 4a168ff780 Move: Process internal usages after all declarations are moved 2017-04-06 18:18:33 +03:00
Alexey Sedunov a9e7d3d5cf Move: Support test data with multiple carets 2017-04-06 18:18:32 +03:00
Alexey Sedunov 18632c3200 Kotlin Facet: Fix facet creation with non-default JVM target 2017-04-06 18:18:31 +03:00
Nikolay Krasko fc55b532d4 Store only string in closure instead of full type 2017-04-06 16:58:31 +03:00
Nikolay Krasko 76fae363ee Stop fail tests because of JNI bugs 2017-04-06 16:53:16 +03:00
Ilya Chernikov 88652154c9 Port compiler to the script-runtime with script base classes 2017-04-06 10:02:45 +02:00
Mikhail Zarechenskiy f518e8ebb8 Prefer stable types to diagnose useless cast
#KT-11622 Fixed
2017-04-05 21:35:05 +03:00
mglukhikh 9fa16364e1 Find enclosing element for object literal in delegate #KT-8187 Fixed 2017-04-05 16:38:04 +03:00
mglukhikh 6277476573 Do not add a new label to labeled loop
Relevant situation: break / continue in when #KT-16128 Fixed
2017-04-05 15:40:08 +03:00
mglukhikh d9e1e82948 Destructure is available even without usages #KT-14435 Fixed 2017-04-05 15:07:15 +03:00
mglukhikh feb9dd4d83 Don't suggest destructuring if at least half components not used
So #KT-16828 Fixed
2017-04-05 14:45:48 +03:00
Mikhail Glukhikh 318314f1a4 Fix "must not be null" in KotlinInlineFunctionDialog #KT-17233 Fixed 2017-04-04 19:22:46 +03:00
mglukhikh 8fb818fc74 Don't report 'protected in final' for implicitly protected
So #KT-16339 Fixed
2017-04-04 19:22:39 +03:00
mglukhikh f13997750f Make destructure intention work on library data classes
So #KT-16468 Fixed
So #KT-14402 Fixed
2017-04-04 19:22:31 +03:00
mglukhikh 8a02ce3dc2 KT-16828: use _ when appropriate in destructure intention 2017-04-04 19:22:24 +03:00
mglukhikh 1b2edf6a0c KT-15870: run getTargetDirectory() in write action 2017-04-04 15:55:57 +03:00
mglukhikh ee239d59aa Set startInWrite... in intention-based quick fix as in intention
So #KT-15870 Fixed
2017-04-04 15:55:55 +03:00
Simon Ogorodnik 86137e1f65 Fix deadlock in J2K
#KT-17230 fixed
2017-04-04 14:38:25 +03:00
Alexey Sedunov 6bf23d5e02 Kotlin Facet: Convert paths to OS-independent form
#KT-17223 Fixed
2017-04-04 14:35:12 +03:00
Alexey Sedunov 7e0bb089e2 Kotlin Facet: Suppress selection on plugin options tab
#KT-17046 Fixed
2017-04-04 14:35:11 +03:00
Alexey Sedunov 746ec48176 Move: Fix internal reference processing on moving multiple files
#KT-17211 Fixed
2017-04-04 14:35:10 +03:00
Alexey Sedunov a8a9c3bbf4 Kotlin Facet: Fix platform detection in android-gradle projects
Sort candidate library names by descending length.
Suppress common library if platform-specific one is also present

 #KT-16827 Fixed
2017-04-04 14:35:08 +03:00
Mikhail Glukhikh 7a53b2f4c8 Introduce UNUSED_ANONYMOUS_PARAMETER for anonymous functions
It is not reported for 1.0 language version because
renaming to _ is not possible. It has weak warning severity

So #KT-8813 Fixed
So #KT-16875 Fixed
2017-04-04 14:23:30 +03:00
Dmitry Jemerov fe8e02f4cf Use LibraryJarDescriptor for refreshing jars on plugin update 2017-04-04 11:21:06 +02:00
Dmitry Jemerov 78844dd4aa Use new path for stdlib sources jar 2017-04-04 11:21:06 +02:00
Dmitry Jemerov 38abc0ca8e Get rid of RuntimeLibraryFiles and its remaining uses 2017-04-04 11:21:06 +02:00
Dmitry Jemerov 09fbbb369a Use LibraryJarDescriptor in CustomLibraryDescriptorWithDeferredConfig 2017-04-04 11:21:06 +02:00