Commit Graph

44192 Commits

Author SHA1 Message Date
Mikhail Zarechenskiy 8015295059 Desugar constructor call of inline class to the underlying value
Also add information about KotlinType to the constant stack values
2018-02-13 13:16:39 +03:00
Mikhail Zarechenskiy 6320368609 Add KotlinType to the Coercion stack value 2018-02-13 13:16:38 +03:00
Toshiaki Kameyama e35ec8ee08 Introduce intention 'expr.unsafeCast<Type>()' <- -> 'expr as Type'
So #KT-16382 Fixed
2018-02-13 13:05:52 +03:00
Mikhail Glukhikh 085c7d30ed Specify expl. lambda signature: derive from offset independent intention
Related to KT-22492
2018-02-13 12:28:56 +03:00
Toshiaki Kameyama 5499078fcc Make "Specify explicit lambda signature" available on whole lambda
So #KT-22492 Fixed
2018-02-13 12:28:50 +03:00
Toshiaki Kameyama 059a797e10 Don't report redundant semicolon for a call before lambda expression
So #KT-22719 Fixed
2018-02-13 11:52:04 +03:00
Toshiaki Kameyama f9555f3f64 Join with assignment: remove comment from target range #KT-22110 Fixed 2018-02-13 11:45:31 +03:00
Dmitry Petrov 36128ba66f Don't generate primary constructor body for expect classes 2018-02-13 10:09:28 +03:00
Dmitry Petrov 839ebba157 ProperNumberComparisons is disabled by default (until LDC decision) 2018-02-13 09:26:00 +03:00
Dmitry Petrov af79bbd247 Minor: reformat code 2018-02-13 09:25:40 +03:00
Dmitry Petrov a790195808 Implement "proper numeric comparisons" support in JVM BE 2018-02-13 09:25:40 +03:00
Dmitry Petrov e23a48e8d0 Minor: reformat code 2018-02-13 09:25:40 +03:00
Nikita Skvortsov b1419e2a8c fix import of expectedBy scope dependencies inside composite builds 2018-02-12 19:29:12 +03:00
Pavel V. Talanov 8ac7f0b592 Minor: remove error marker from commented out test code 2018-02-12 16:46:16 +01:00
Pavel V. Talanov fd4e262b1f Minor: modify test for KT-22819 to unmute it on teamcity
#KT-22819 Open
2018-02-12 16:35:56 +01:00
Pavel V. Talanov 9e69c73387 Minor: comment out test for KT-22594 to unmute it on teamcity
#KT-22594 Open
2018-02-12 16:35:51 +01:00
Vyacheslav Karpukhin 53946456cf Do not use hardcoded plugin ID for update checks
When Kotlin plugin is bundled into another plugin, there won't be a plugin with ID org.jetbrains.kotlin registered in PluginManager, which leads to runtime exceptions. To fix that let's determine the plugin ID dynamically instead.
2018-02-12 17:33:54 +03:00
Nikolay Krasko f5e78a89bc Collect statistics of used defaults set in formatting (KT-22252)
^KT-22252 In Progress
2018-02-12 17:33:54 +03:00
Anton Bannykh cd3a797f2a JS: fix corner case in when translation (fix crash in KT-22544) 2018-02-12 17:15:48 +03:00
Alexey Sedunov b315e0c113 Gradle: Fix dependency import when "module per sourceset" is disabled
#KT-22360 Fixed
2018-02-12 15:10:19 +03:00
Alexey Sedunov e1aec46300 Configuration: Set up Kotlin SDK (if necessary) on plugin startup
#KT-22590 Fixed
2018-02-12 15:10:16 +03:00
Ilya Gorbunov 99fd66137c Update the instruction how to run the stdlib generator
Use relative paths in urls
2018-02-12 14:32:51 +03:00
Yanis Batura 9c8c1cdc18 Fix a couple of typos in docs and ReadMe
* Fix a couple of typos
- In the main ReadMe.md
- In onEach template's doc

* Update generated source code
2018-02-12 14:22:47 +03:00
Simon Ogorodnik 470a4bb615 Fix Missing documentation inspection for primary ctor properties
#KT-20954 fixed
#KT-21005 fixed
2018-02-12 13:41:50 +03:00
Ilya Gorbunov 0f130a0a5a Add documentation for kotlin-test-testng artifact 2018-02-12 08:11:23 +03:00
Ilya Gorbunov 5e3edf4bd7 Select the asserter based on test framework presence in classpath
Simplify asserter lookup: enumerate all AsserterContributors when
the file class with lookupAsserter function is initialized.

It's assumed that AsserterContributor initialization should be fast.

#KT-21154 Fixed
2018-02-12 07:59:54 +03:00
Ilya Gorbunov 9dfa54eb62 Include kotlin-test-testng into dist, setup JDK 7 required to run tests 2018-02-12 07:58:29 +03:00
Ilya Gorbunov d1f00a95e0 Minor: kotlin-test reformat sources, fix test package names 2018-02-12 07:58:28 +03:00
Valeriy Zhirnov ad7701922c TestNG support in kotlin.test #KT-22620 2018-02-12 07:58:21 +03:00
Nikolay Krasko 1e567438a2 Store selected set of defaults in code style settings (KT-22252)
#KT-22252 In Progress
2018-02-11 16:50:20 +03:00
Nikolay Krasko 5d25b8b476 Control serialize/deserialize of CommonCodeStyleSettings 2018-02-11 16:50:19 +03:00
Mikhail Zarechenskiy 9e22761262 Fix type parameters indexes of MockClassDescriptor
Exception was thrown during mapping of arguments to parameters in `computeSupertypeProjections`

 #KT-18522 Fixed
2018-02-11 16:21:23 +03:00
Yan Zhulanow 310ee67c35 REPL, minor: Ignore empty lines (#KT-21611) 2018-02-09 19:24:57 +03:00
Yan Zhulanow edcf0aef53 Kapt: Allow Kotlin @Repeatable annotations (KT-22451)
We don't generate a wrapper for repeatable annotations, and Javac complains to it.
2018-02-09 19:11:03 +03:00
Vyacheslav Gerasimov a3a46fe259 Fix test runtime and set idea.home.path for sam with receiver plugin 2018-02-09 15:04:30 +03:00
Dmitry Petrov 5a85bf36a5 Check for type parameter supertypes in primitive numeric comparisons 2018-02-09 14:41:54 +03:00
Alexey Sedunov e5e583e3e5 Configuration: Show Koltin plugin path as "home path" of Kotlin SDK
#KT-22640 Fixed
2018-02-09 14:17:40 +03:00
Alexey Sedunov 84fed8071c Create from Usage: Support target directory selection for "Create class"
#KT-22152 Fixed
2018-02-09 14:17:40 +03:00
Alexey Sedunov 695a2a4098 Rename: Support retargeting/shadowing conflict checking for functions
#KT-22564 Fixed
2018-02-09 14:17:40 +03:00
Alexey Sedunov 5c6bba9f14 Rename: Fix qualified expression replacement for the case 'invoke' <-> 'get'
#KT-22705 Fixed
2018-02-09 14:17:39 +03:00
Alexey Sedunov fffd74f002 Refactor: Move canMoveLambdaOutsideParentheses() function to idea-core module 2018-02-09 14:17:39 +03:00
Alexey Sedunov 48705865bd J2K: KtArrayAccessReference 2018-02-09 14:17:38 +03:00
Alexey Sedunov 9150322bed J2K: KtArrayAccessReference (rename to .kt) 2018-02-09 14:17:38 +03:00
Alexey Sedunov e88f1467eb Rename: Add quotes to declaration name if necessary
#KT-22708 Fixed
2018-02-09 14:17:38 +03:00
Alexey Sedunov 428b086458 Refactor: Move 'isIdentifier' and 'quoteIfNeeded' functions to frontend 2018-02-09 14:17:37 +03:00
Alexey Sedunov fddfbf225f Change Signature: Support implicit calls of 'invoke' and 'get'
Also drop 'operator' keyword when necessary

 #KT-22718 Fixed
2018-02-09 14:17:37 +03:00
Ilya Chernikov e38d5395df Pass previous dependencies to the legacy script dependency resolvers
fixes #KT-22753
2018-02-09 11:03:43 +01:00
Dmitry Jemerov 3aaad0c21d Indent default parameter values
#KT-22508 Fixed
2018-02-09 10:49:02 +01:00
Dmitry Jemerov 5bb195df9b No space between label and lambda in labeled expressions
#KT-22301 Fixed
2018-02-09 10:49:01 +01:00
Dmitry Jemerov 8f9b818e43 Do not indent closing bracket of array access expression
#KT-22641 Fixed
2018-02-09 10:49:00 +01:00