Commit Graph

50245 Commits

Author SHA1 Message Date
Mikhail Glukhikh da39d45cb1 Add more "non properties" for atomic classes #KT-25953 Fixed 2018-11-13 10:15:49 +03:00
Mikhail Glukhikh 92bbf885f7 "Generate member" actions: do not show any dialogs for expect class
Related to KT-27595
2018-11-13 10:15:48 +03:00
Mikhail Glukhikh b15b993b26 Reformat: "Generate member" actions 2018-11-13 10:15:48 +03:00
Mikhail Glukhikh cb28387da4 Fix KNPE in different "Generate members" for expect class
#KT-27595 Fixed
2018-11-13 10:15:48 +03:00
Mikhail Glukhikh 38c3f13b12 Remove unnecessary main arguments from MPP wizard builders 2018-11-13 10:15:48 +03:00
Mikhail Glukhikh a04321478d Fix isEffectivelyActual to work with constructors correctly 2018-11-13 10:15:47 +03:00
Mikhail Glukhikh 589b377ef3 Minor: remove unused parameter in both buildNavigate to markers 2018-11-13 10:15:47 +03:00
Mikhail Glukhikh d7d1b0420d Do not show non-actual members in actual gutter #KT-27951 Fixed 2018-11-13 10:15:47 +03:00
Nicolay Mitropolsky 4a64edd610 KotlinStringLiteralTextEscaper: provides offsets for already decoded (KT-27380) 2018-11-13 10:01:52 +03:00
Nicolay Mitropolsky 6342bc378e KotlinLanguageInjector: removing kotlin.annotation.injection.enabled key 2018-11-13 10:01:51 +03:00
Natalia Selezneva a8b55740a1 Scratch: include all related module dependencies in ScriptModuleInfo
^KT-28094 Fixed
2018-11-13 08:47:19 +03:00
Natalia Selezneva 4661ab9961 Fix loading Kotlin Scripting options from kotlinScripting.xml
^KT-28046 Fixed
2018-11-13 08:47:19 +03:00
Natalia Selezneva da71a35187 Update highlighting in UI thread 2018-11-13 08:47:19 +03:00
Natalia Selezneva 372daa0463 Do not attach script report if they didn't changed 2018-11-13 08:47:19 +03:00
Natalia Selezneva ad43c2dc1c Simplify logic in ScriptDependenciesLoader 2018-11-13 08:47:18 +03:00
Natalia Selezneva 18c9d968f9 Pass ResolveResult to ScriptNotificationPanel 2018-11-13 08:47:18 +03:00
Mikhail Zarechenskiy ed2b9172da Support unsigned integers in kotlinx-metadata-jvm
#KT-25371 Fixed
2018-11-13 01:29:39 +03:00
Andrey Uskov dac4cb5d06 Fix source sets in all bunches except AS 33 in idea-android 2018-11-12 21:23:14 +03:00
Simon Ogorodnik 7f5f6ad76f Update QuickDoc testData due to platform changes 2018-11-12 20:56:26 +03:00
Alexander Udalov a2612c1eae Fix generic signature for KSuspendFunction types in bytecode
#KT-27560 Fixed
2018-11-12 18:53:23 +01:00
Andrey Uskov 7b0c7ec400 Get rid of bunch 191 for build scripts (Continuation of "Replace bunch copies for some of build.gradle.kts files with a DSL") 2018-11-12 17:43:20 +03:00
Sergey Igushkin 308eafe0e1 (test data) Revert removal of coroutines opt-in from a test
This test checks the coroutines opt-in, so it should stay there.

Revert the change made in a64a76d5
2018-11-12 17:26:07 +03:00
Mikhail Zarechenskiy 79159947a5 Coerce last value of delegated expression for inline classes
Note that this commit doesn't fix case when some inline class over
 `Any` is returned from a lambda, it'll be fixed further as part of the
 #KT-27586

 #KT-27737 Fixed
2018-11-12 14:21:24 +03:00
Mikhail Zarechenskiy a97867ccb8 Add test for obsolete issue
#KT-23531 Obsolete
2018-11-12 14:12:59 +03:00
Nikolay Krasko 9dab32f67d Re-implement getBodyBlockExpression() in stubbed elements
Avoid delegation to getBodyExpression() to monitor AST loading abuses.
2018-11-12 13:38:29 +03:00
Nikolay Krasko 2284028bbe Add bodyBlockExpression() helper function to KtDeclarationWithBody 2018-11-12 13:38:28 +03:00
Nikolay Krasko 2b8a81c5a8 Don't force getting body psi if null is predicted by stubs but allow it for resolve
We can't avoid loading AST in general, because there're no stubs for
expression bodies.
2018-11-12 13:38:27 +03:00
Nikolay Krasko e2269e13af Move AstLoadingFilter to incompatible API and update usages 2018-11-12 13:38:26 +03:00
Nikolay Krasko 02d7e701d0 Allow getting initializer from psi during resolve as there're no stubs 2018-11-12 13:38:25 +03:00
Nikolay Krasko d1e7229b7a Allow getting operation node in annotation qualified expressions for now 2018-11-12 13:38:24 +03:00
Nikolay Krasko ff9477554f Do not check and load psi for modifier list with stub 2018-11-12 13:38:22 +03:00
Nikolay Krasko 04559800f1 Ignore reporting "literal prefixes and suffixes" for stubbed elements 2018-11-12 13:38:21 +03:00
Nikolay Krasko 710f3e8551 Make an excuse for contracts for loading psi for now 2018-11-12 13:38:20 +03:00
Nikolay Krasko 349f1e2e6a Update to AS 3.3 14 2018-11-12 13:38:19 +03:00
Nikolay Krasko 11bcd84f57 Disable internal mode in AS 3.3 and AS 3.4 to avoid using core class loader
Core class loader doesn't include Kotlin plugin dependencies and Kotlin
plugin becomes unusable (for example Gradle sync always fail).

https://issuetracker.google.com/issues/119250571
2018-11-12 13:38:18 +03:00
Nikolay Krasko 01bea14f09 Allow to fetch name for mock virtual machine to fix tests in 183 2018-11-12 13:38:17 +03:00
Mikhail Zarechenskiy 021732f74a [NI] Consider type non-nullable only if it has non-null supertype
Fixes #KT-12684 for NI
2018-11-12 12:42:03 +03:00
Mikhail Zarechenskiy 20ff74a726 Fix mapping for inline classes when JvmSuppressWildcards mode is using
#KT-28097 Fixed
2018-11-12 09:36:05 +03:00
Pavel V. Talanov 24f1db811a Fix running JUnit test method in abstract class
Previously led to running all methods in an inheritor class
Untested because behaviour is rare and we don't have test covering JUnit run configuration

 #KT-28080 Fixed
2018-11-09 15:51:36 +01:00
Pavel V. Talanov aae023909d Minor: refactor KotlinJUnitRunConfigurationProducer
Clarify 'getTestMethod' and 'onFirstRun' functions
2018-11-09 15:51:35 +01:00
Pavel V. Talanov 47935c19e6 Show line markers for JUnit test methods in abstract class
#KT-27977 Fixed
2018-11-09 15:51:34 +01:00
Ilya Chernikov 9c51f521a9 Add embeddable version of the jvm scripting host
#KT-27382 fixed
2018-11-09 15:57:09 +03:00
Toshiaki Kameyama d64ca8a8f9 Insert paird brackets: enable on before colon #KT-9840 Fixed 2018-11-09 15:15:59 +03:00
Ilya Gorbunov 5f4e8bf4fb Correct abstract mutable collections declarations in kotlin-stdlib-common
Add SinceKotlin(1.3) to the new and substantially changed common declarations

#KT-28091
2018-11-09 13:39:44 +03:00
Ilya Gorbunov 4f2ec3533a Remove inline modifier from expect functions without lambda or reified types
This gives more flexibility when providing actuals for them.
2018-11-09 13:39:07 +03:00
Mikhael Bogdanov 3e26f17e9d Update proguard config for AS 34 2018-11-09 10:30:00 +01:00
Denis Zharkov fadd2c12c2 Update idea to 2018.2.6 RC (182.5107.16) 2018-11-09 11:59:25 +03:00
Toshiaki Kameyama 2683b25728 "Change type" quick fix: fix false negative in 'when' branch #KT-8820 Fixed 2018-11-09 11:09:02 +03:00
Dmitry Petrov 6d0a403ead KT-26765: Support 'call' for constructors with inline class parameters 2018-11-09 10:21:46 +03:00
Ilya Gorbunov 23ead5e430 Remove extensive testing of the discontinued jre7/8 artifacts 2018-11-09 04:00:26 +03:00