Dmitry Gridin
09bcfab047
KotlinNativeModuleConfigurator: fix INRE
...
#EA-219416 Fixed
2019-12-17 17:20:35 +07:00
Dmitry Gridin
86f9253fa0
KtScratchExecutionSession: fix INRE
...
#EA-218701 Fixed
2019-12-17 17:20:35 +07:00
Dmitry Gridin
78f7ed2c27
KotlinVariableInplaceIntroducer: fix PIEAE
...
#EA-209820 Fixed
2019-12-17 17:20:35 +07:00
Dmitry Gridin
580885245d
JavaToKotlinAction: fix KNPE
...
#EA-215300 Fixed
2019-12-17 17:20:35 +07:00
Dmitry Gridin
34dcc72e7f
idea: fix some ControlFlowException
...
#EA-219412 Fixed
2019-12-17 17:20:35 +07:00
Dmitry Gridin
cdabff1941
KotlinImportOptimizer: should use with isIndeterminate=false
...
#KT-34928 Fixed
2019-12-17 17:20:35 +07:00
Dmitry Gridin
7c9826b60b
PerModulePackageCacheService: fix NPE for code injection
...
#KT-35208 Fixed
2019-12-17 17:20:35 +07:00
Dmitry Gridin
ebf3bfc048
KotlinIntroduceImportAliasHandler: remove unnecessary transformations
2019-12-17 17:20:34 +07:00
Mikhail Glukhikh
9f1f743d55
FIR: fix test data after Make 'statics visible from nested classes'
2019-12-17 12:24:14 +03:00
Toshiaki Kameyama
7b1771d432
Remove braces from 'when' entry: do not suggest when statement is lambda that has no arrow
...
#KT-35288 Fixed
2019-12-17 11:20:36 +03:00
Toshiaki Kameyama
afc680d5c9
JavaMapForEachInspection: do not report when lambda parameter is destructuring declaration
...
#KT-34511 Fixed
2019-12-17 11:18:27 +03:00
Toshiaki Kameyama
8857827dce
"Add not-null asserted (!!) call": do not add this when implicit receiver is not extension receiver
...
#KT-34894 Fixed
2019-12-17 11:15:53 +03:00
Toshiaki Kameyama
f1c605d0f7
AddFunctionParametersFix: improve parameter name for 'it' argument
...
#KT-33297 Fixed
2019-12-17 11:10:15 +03:00
Toshiaki Kameyama
f8f50b2131
DeprecatedCallableAddReplaceWithInspection: add argument name if needed
...
#KT-34297 Fixed
2019-12-17 11:04:50 +03:00
Toshiaki Kameyama
23749bdde7
Add constructor parameter: add generic types correctly
...
#KT-34203 Fixed
2019-12-17 11:00:51 +03:00
tommykw
76a65af14b
Fix #KT-31967 Typo in inspection name: "+= create new list under the hood"
2019-12-17 10:56:56 +03:00
Mikhail Glukhikh
ae827bfd80
Use declaration-site session in phased FIR instead of use-site session
...
This allows us to successfully find containing file for another module declaration
2019-12-17 10:43:23 +03:00
Mikhail Glukhikh
37839a181c
Introduce FirIdeModuleDependenciesSymbolProvider #KT-35424 In Progress
...
This solves problems with inter-module dependencies, at least in small projects.
However, Kotlin project still does not see stdlib.
Also, we often have problems with untouched types during expected type checks
(FirUserTypeRef instead of FirResolvedTypeRef)
2019-12-17 10:41:24 +03:00
Mikhail Glukhikh
befcfad898
Rename: IdeFirProvider -> FirIdeProvider
2019-12-17 10:41:23 +03:00
Mikhail Glukhikh
8703da5a25
Rename: FirResolveState -> FirModuleResolveState to reflect per-module status
2019-12-17 10:41:23 +03:00
Dmitry Gridin
8dbbd64beb
idea: cleanup code
2019-12-17 13:56:48 +07:00
Natalia Selezneva
e77d8657f4
Fix configuration for AS 3.5
2019-12-16 23:17:33 +03:00
pyos
54d707b3b6
JVM_IR: make constructors of named local classes public
...
They are accessible through reflection
2019-12-16 20:54:48 +01:00
Mads Ager
82f48cdd11
JVM_IR: Backwards compatible handling of default tailrec params.
...
Before 1.4 tailrec function default arguments were evaluated
right-to-left instead of left-to-right. This is controlled
by a compile-time flag. This change adds support for the
right-to-left evaluation order when that flag is not set.
2019-12-16 20:52:52 +01:00
Simon Ogorodnik
90a1b15b77
[FIR] Make statics visible from nested companion/classes
2019-12-16 21:21:12 +03:00
Simon Ogorodnik
02cbe990c0
[FIR] Use fast firSymbolProvider access
2019-12-16 21:21:11 +03:00
Simon Ogorodnik
2e27862d38
[FIR] Cache lookupTag lookup on creation from symbol (partially)
2019-12-16 21:21:10 +03:00
Simon Ogorodnik
0fb883ef62
[FIR] Use builtinTypes instead of creating new ones
2019-12-16 21:21:09 +03:00
Simon Ogorodnik
5de69471b0
[FIR] Use yieldIfNeed instead of yield
2019-12-16 21:21:09 +03:00
Simon Ogorodnik
81759e8c55
[FIR] Use proper sourceScope for modularized tests
2019-12-16 21:21:08 +03:00
Simon Ogorodnik
0a2c457f54
[FIR] Properly check typealias fqn matching
2019-12-16 21:21:07 +03:00
Simon Ogorodnik
d0c58be4e9
[FIR] Pass proper use-site session in deserialized provider
2019-12-16 21:21:06 +03:00
Simon Ogorodnik
85ff834fdb
[FIR] Do not create Kotlin scopes for handledByJava classes
2019-12-16 21:21:06 +03:00
Simon Ogorodnik
dd803cb650
[FIR] Fix moduleInfo module names
2019-12-16 21:21:05 +03:00
Alexander Udalov
7f51be9cd3
Minor, change parameter name of FrameMap.enter/leave
...
It's not a descriptor in case of IrFrameMap
2019-12-16 17:38:11 +01:00
Alexander Udalov
f51a0048f6
Minor, rename test and avoid commented directive
...
Get rid of "_lv12" in the test name, since it's actually a test on the
modern compiler. Also, avoid the commented "IGNORE_BACKEND: JVM_IR"
directive in another test to make JVM IR test failures more greppable.
2019-12-16 17:38:11 +01:00
Alexander Udalov
561cde9d06
JVM IR: minor, add exception message to IrFrameMap.typeOf
2019-12-16 17:38:11 +01:00
Roman Artemev
0b7c11c96e
[JS IR] Fix external fields naming
2019-12-16 18:08:09 +03:00
Roman Artemev
02db5ea0eb
[JS IR] Fix state machine builder
2019-12-16 18:08:08 +03:00
Mikhail Glukhikh
ccb9a4e0a9
[FIR TEST]: add problematic test for T::class.java case
2019-12-16 15:23:46 +03:00
Natalia Selezneva
38b0de4ab6
Scripting: do not start multiple request when related file was changed
2019-12-16 14:55:50 +03:00
Natalia Selezneva
fba17d5b9a
Minor, tests: clear memory cache in tests that check scripting file attributes
2019-12-16 14:55:49 +03:00
Natalia Selezneva
780c61dc16
Fix line separators in tests
2019-12-16 14:55:47 +03:00
Natalia Selezneva
31887d2fd1
Scripting: check if affected scripts are changed using file modification stamp instead of mark them out of date in cache
...
^KT-35205 Fixed
2019-12-16 14:55:47 +03:00
Natalia Selezneva
ec04f0059c
Scripting: do not threat comments and spaces as modifications inside essential block
2019-12-16 14:55:46 +03:00
Natalia Selezneva
2f35d6d868
Scripting: save inputs stamp and diagnostics to file attributes
...
Check if they are up to date and initiate configuration update only in case they are out of date
^KT-35205
2019-12-16 14:55:45 +03:00
Natalia Selezneva
13b4e8716c
Changes inside initscript and pluginManagement blocks should invalidate script configuration
...
^KT-35129 Fixed
2019-12-16 14:55:43 +03:00
Natalia Selezneva
d68c3584f2
Scripting: add test for loading configuration for gradle scripts
2019-12-16 14:55:42 +03:00
Natalia Selezneva
424a2c72b2
Implement KotlinWordsScanner
...
This will allow to correctly calculate the file modification crc based on it. this is needed for build.gradle.kts files which show notification about necessity of importing project. Otherwise this notification is shown on every file modification (after virtualFile save)
2019-12-16 14:55:41 +03:00
Natalia Selezneva
886e9613b8
Move script related extensions to separate xml-s
2019-12-16 14:55:40 +03:00