Commit Graph

58441 Commits

Author SHA1 Message Date
Vladimir Dolzhenko 7ecaef377f Fix readAccess in KtFileClassProviderImpl on checking isScript
#EA-214283 Fixed
2019-10-21 17:18:23 +02:00
Vladimir Dolzhenko 30229da95a Don't render pure error types in OverrideMemberChooserObject
#KT-34379 Fixed
2019-10-21 17:18:23 +02:00
Vladimir Dolzhenko 148a6bd54d Fix read action in 'searchReferences'
#EA-209421 Fixed
2019-10-21 17:18:23 +02:00
Vladimir Dolzhenko 96198a1cd3 Report no parent KtNamedDeclaration for declaration instead of NPE in BindingContextUtils.getEnclosingDescriptor
#EA-210816 Fixed
2019-10-21 17:18:23 +02:00
Vladimir Dolzhenko 46a083cd1e Fix readAccess in ResolveSession.java on checking is a local declaration
#EA-213627 Fixed
2019-10-21 17:18:23 +02:00
Vladimir Dolzhenko 78527abad9 Fix readAccess in TargetPlatformDetector.java on checking is file a script
#EA-211576 Fixed
2019-10-21 17:18:22 +02:00
Vladimir Dolzhenko 15997bf635 Save change script configuration within a transaction
#EA-214281 Fixed
2019-10-21 17:18:22 +02:00
Vladimir Dolzhenko 625dbfa699 Fix readAccess in getModuleInfo.kt on obtaining script
#EA-211576 Fixed
2019-10-21 17:18:22 +02:00
Vladimir Dolzhenko ba01678abb Fix readAccess in IDELightClassGenerationSupport on obtaining script
#EA-211576 Fixed
2019-10-21 17:18:05 +02:00
Vladimir Dolzhenko 10ea8abc2b Wrap file.declarations with runReadAction
#EA-209932 Fixed
2019-10-21 17:18:04 +02:00
Alexander Gorshenev 597e760fab Broght back a condition lost during a refactoring 2019-10-21 17:41:56 +03:00
Roman Artemev 2cde7f2402 [KLIB] Fix explicitlyExported mode
- Refactor deserialization pipeline
 - Fix K/N test
2019-10-21 17:41:56 +03:00
Roman Artemev 43e855150c [KLIB] Correctly restore top level property order during deserialization - Add test - Fix KT-34273 2019-10-21 17:41:56 +03:00
Roman Artemev aecd08e562 [Psi2Ir] Fix IrText test generation 2019-10-21 17:41:55 +03:00
Ilya Goncharov 6ddc05a5a8 [Gradle, JS] Fix for wildcard npm dependency version
#KT-34460 fixed
2019-10-21 17:37:07 +03:00
Ilya Goncharov e17b9097df [Gradle, JS] Add test on success installation of duplicated dependencies 2019-10-21 17:29:47 +03:00
Ilya Goncharov bdd6186a07 [Gradle, JS] Resolve devDependencies and dependencies modules clash 2019-10-21 17:29:46 +03:00
Ilya Goncharov fa647680d3 [Gradle, JS] Update npm dependencies
- Karma - provide possibility to check exit code
- Webpack - bug fixes
- Mocha - bug fixes
2019-10-21 17:28:49 +03:00
Ilya Goncharov 2cf79b7502 Check Karma exit code with disabled failOnFailingTestSuite
https://github.com/karma-runner/karma/pull/3116
2019-10-21 17:28:49 +03:00
Denis Zharkov d902a5f304 Temporary disable assertion in bridges generation
^KT-34431 Fixed
^KT-34507 Open
2019-10-21 17:24:15 +03:00
Kristoffer Andersen 28b6913a25 JVM IR: Support parameterless main methods
This commit:

- introduces tests explicating what is and isn't considered a
  proper main method on the JVM backends.
- implements support for parameterless main methods on the JVM IR
  backend
- See KT-34338 for more tests.
2019-10-21 15:08:34 +02:00
Mads Ager 4b77db8979 Fix test to actually fail if expected exception is not thrown. 2019-10-21 15:05:32 +02:00
Mikhail Glukhikh 1a59e41224 Add JvmSymbols.String & StringBuilder for FIR mode to fix context initialization
This commit fixes in particular testFirHello
2019-10-21 16:01:35 +03:00
pyos 0c3dfca6ee JVM_IR: remove an assertion that triggers due to a frontend bug 2019-10-21 14:59:03 +02:00
Nikolay Krasko e5cc0eec9c 193: Adjust test data for HierarchyTestGenerated tests in 193 2019-10-21 15:52:33 +03:00
Nikolay Krasko 693603db68 193: Mute join lines tests in 193 (KT-34408) 2019-10-21 15:52:33 +03:00
Nikolay Krasko 9665870118 Fix AbstractSmartStepIntoTest tests in 193 2019-10-21 15:52:33 +03:00
DmiitriiJarosh 613fbf7a5d Merge else-if intention (KT-34218)
#KT-34218 Fixed
2019-10-21 15:52:32 +03:00
Jim Sproch 383239aff6 Make useIR available from Gradle KotlinJvmOptions 2019-10-21 13:20:54 +03:00
Mads Ager 8be6a1fe8a [JVM_IR] Contain 'invokeSuspend' rewriting to the suspend function.
Do not rewrite returns in methods in nested lambda implementations.
That leads to unintended non-local returns from nested non-suspend
lambdas.
2019-10-21 13:16:57 +03:00
Ilmir Usmanov 78b9c082e7 JVM_IR: Generate 'create' for suspend lambdas with one parameter 2019-10-21 13:15:45 +03:00
Ilmir Usmanov 5eeb2958f7 JVM_IR: Support is/as SuspendFunction operators 2019-10-21 13:15:43 +03:00
Ilmir Usmanov 6f47699796 JVM_IR: Calculate correct arity of callable reference to suspend
function
2019-10-21 13:15:41 +03:00
Ilmir Usmanov b0a0399dd0 JVM_IR: Support callable references to suspend functions 2019-10-21 13:15:39 +03:00
Ilmir Usmanov e736b782dd JVM_IR: Support suspend lambdas with multiple parameters 2019-10-21 13:15:37 +03:00
Ilmir Usmanov f4a7c839d3 JVM_IR: Generate as much LINENUMBER information as possible inside
suspend functions and lambdas.

Otherwise, when state-machine builder splits instructions and adds
LINENUMBER between states, the information becomes corrupted.
2019-10-21 13:15:35 +03:00
Dmitry Petrov 69a9559eac IR serialization: isExpect in proto and ser/deser 2019-10-21 13:04:59 +03:00
Dmitry Petrov 922b1e576d IR serialization: isExpect (TODO actual value in proto) 2019-10-21 13:04:59 +03:00
Dmitry Petrov 66b63c4296 JS_IR: isExpect 2019-10-21 13:04:59 +03:00
Dmitry Petrov e87517764d JVM_IR: isExpect 2019-10-21 13:04:59 +03:00
Dmitry Petrov 6bdc9ee65b IR BE common: isExpect 2019-10-21 13:04:59 +03:00
Dmitry Petrov 1d229b6dca FIR2IR: isExpect 2019-10-21 13:04:59 +03:00
Dmitry Petrov 6532f29cc6 IR: isExpect 2019-10-21 13:04:59 +03:00
Ilya Matveev 3a234d46ed Gradle, native: Support watchOS and tvOS in CocoaPods plugin
Issue #KT-34329 fixed
2019-10-21 12:43:20 +03:00
Dmitriy Novozhilov 4df4c58a05 [FIR] Resolve type of when expression to Unit if it is not exhaustive 2019-10-21 11:59:44 +03:00
Toshiaki Kameyama 131567474a "Redundant qualifier name": fix false positive with enum constant initialized with companion object field
#KT-33526 Fixed
2019-10-21 15:55:04 +07:00
Toshiaki Kameyama 27eea882fb ChangeVisibilityFix: remove redundant property setter
#KT-33796 Fixed
2019-10-21 15:55:04 +07:00
Toshiaki Kameyama 48968c0fe2 Replace deprecated symbol usage: do not include 'Companion' in import directives when importing companion object
#KT-34078 Fixed
2019-10-21 15:55:04 +07:00
Dmitriy Novozhilov 5250421002 Regenerate tests forgotten in f19a8789 2019-10-21 10:47:15 +03:00
Dmitriy Novozhilov b8bc449bc3 [FIR] Fix generating of redundant empty else branch in light tree fir generator 2019-10-21 10:44:30 +03:00