Anton Bannykh
0bcde9dffc
IR API: Make IrEnumEntry.initializerExpression IrExpressionBody
...
All non-declarations should be inside IrBody's now
2020-02-06 21:03:32 +03:00
Igor Yakovlev
3ec671d727
Fix getMirror for kotlin decompiled file
...
Possibly fixed EA142049
2020-02-06 20:24:20 +03:00
Ilya Gorbunov
ab32f2efac
Use legacy configuration names to make jps import happy
2020-02-06 19:56:25 +03:00
Dmitry Gridin
f428bbb782
TrailingComma: Join Lines should remove trailing comma
...
#KT-34744
#KT-36084 Fixed
2020-02-06 23:55:59 +07:00
Dmitry Gridin
cb66625688
TrailingComma: fix case of when without expression or property
...
#KT-34744
#KT-36393 Fixed
2020-02-06 23:55:59 +07:00
Dmitry Gridin
6739d03823
TrailingCommaPostFormatProcessor: change recursive checker
...
#KT-34744
2020-02-06 23:55:58 +07:00
Dmitry Gridin
5054bc65a5
Introduce TrailingCommaHelper
...
#KT-34744
2020-02-06 23:55:58 +07:00
Alexander Udalov
c08c3d4d9b
Update JVM metadata version to 1.4.0
2020-02-06 17:22:02 +01:00
Vladimir Dolzhenko
4d93b3d5ab
Dropped unused UsageDescriptor
...
#KT-35918 Comment
2020-02-06 16:42:26 +01:00
Vladimir Dolzhenko
a0c9b275aa
Removed deprecated usage of treeBuilder from currentProjectViewPane
...
It is outdated behaviour as all nested members have to appear as
children of file rather children of its package
#KT-35918 Comment
2020-02-06 16:28:56 +01:00
Vladimir Dolzhenko
617807beea
Removed deprecated usage of ScratchFileService.isInScratchRoot
...
#KT-35918 Comment
2020-02-06 16:28:46 +01:00
Vladimir Dolzhenko
7c8f3b2b3b
Use LightJavaModule.getModule instead of deprecated getModule
...
#KT-35918 Comment
2020-02-06 16:28:36 +01:00
Vladimir Dolzhenko
dd8a120d45
Use JList#getSelectedValuesList() instead of deprecated getSelectedValues()
...
#KT-35918 Comment
2020-02-06 16:28:26 +01:00
Vladimir Dolzhenko
670e016d34
PluginStartupComponent reworked into startup activity and service
...
As BaseComponent is deprecated in a platform
#KT-35918 Comment
2020-02-06 16:28:18 +01:00
Vladimir Dolzhenko
df23274aa5
Use Application.addListener(listener, disposable)
...
#KT-35918 Comment
2020-02-06 16:27:51 +01:00
Vladimir Dolzhenko
45e288be49
Drop deprecated file from @Storage
...
#KT-35918 Comment
2020-02-06 16:27:42 +01:00
Vladimir Dolzhenko
ff7221e1c4
Cleaned up from deprecated CallerMethodsTreeStructure(PsiMethod)
...
#KT-35918 Comment
2020-02-06 16:27:31 +01:00
Alexander Podkhalyuzin
13d8603c4b
Fixed incompatibility with 192
...
#KT-35918 Comment
2020-02-06 16:27:19 +01:00
Alexander Podkhalyuzin
2408977a68
Fixed bunch file
...
#KT-35918 Comment
2020-02-06 16:27:04 +01:00
Alexander Podkhalyuzin
46526ab53c
Removed deprecated icons usages
...
#KT-35918 Comment
2020-02-06 16:26:54 +01:00
Alexander Podkhalyuzin
d880a507dd
Removed deprecated usage
...
#KT-35918 Comment
2020-02-06 16:26:45 +01:00
Alexander Podkhalyuzin
35fa812a19
Removed MethodNodeBase usage
...
#KT-35918 Comment
2020-02-06 16:26:36 +01:00
Alexander Podkhalyuzin
dd73629db1
Obsolete API usages removed from 193 branch
...
#KT-35918 Comment
2020-02-06 16:26:28 +01:00
Alexander Podkhalyuzin
312c7bc9bf
Proper override in move
...
#KT-35918 Comment
2020-02-06 16:26:13 +01:00
Alexander Podkhalyuzin
e26dcdf10b
Removed unnecessary deprecated method overrides
...
#KT-35918 Comment
2020-02-06 16:26:04 +01:00
Alexander Podkhalyuzin
4db89f073f
Remove outdated icon creation API usage
...
#KT-35918 Comment
2020-02-06 16:25:56 +01:00
Alexander Podkhalyuzin
0890e6837b
Proper check if plugin is disabled
...
#KT-35918 Comment
2020-02-06 16:25:47 +01:00
Alexander Podkhalyuzin
f3d66dcce8
proper way to distinguish JetBrains annotations
...
#KT-35918 Comment
2020-02-06 16:25:37 +01:00
Alexander Podkhalyuzin
aee3887604
removed deprecated usage for isAnnotated
...
#KT-35918 Comment
2020-02-06 16:25:29 +01:00
Alexander Podkhalyuzin
08d5471f51
isSearchForTextOccurencesAvailable usage replaced
...
#KT-35918 Comment
2020-02-06 16:25:17 +01:00
Alexander Podkhalyuzin
23fa21d37e
getUsages -> getMetrics in FUSCollectors
...
#KT-35918 Comment
2020-02-06 16:25:06 +01:00
Ilmir Usmanov
8bb59e31e0
Minor. Remove textifyMethodNode, since it duplicates nodeText
2020-02-06 13:10:24 +01:00
Ilmir Usmanov
7dfd7b6081
Spill stack before analyzing it when looking for non-inline suspend lambda
...
parameters of inline function. Otherwise, it leads to AnalyzerException,
when inlined lambda contains try-catch block. The reason is simple:
in try block, we leave some variables on stack, while on catch block the
stack is empty. Spilling the variables before try block does the trick.
#KT-34708 Fixed
2020-02-06 13:10:21 +01:00
Pavel Kirpichenkov
b7a6fc271c
minor: remove unused import
2020-02-06 13:42:44 +03:00
Mikhail Glukhikh
e2a99f84a5
[FIR] Fix test data
2020-02-06 13:40:11 +03:00
Denis Zharkov
286622009d
FIR: Cleanup PostponedArguments.kt
2020-02-06 13:00:29 +03:00
Denis Zharkov
6f6281a3f3
FIR: Support type aliases to function types in resolution
2020-02-06 13:00:29 +03:00
Juan Chen
7249d2f889
[FIR] Fix translation of invokes & add return expressions for lambdas
...
* fixed NoSuchMethod caused by mismatched signatures of the "invoke" method generated for lambda arguments
* added test cases in invoke.kt for KFunction and anonymous functions
* added a transformer to wrap the last expression in the bodies of lambdas with return
2020-02-06 12:44:14 +03:00
Svyatoslav Scherbina
5eedba3903
Add Native-specific frontend checker for @Throws
2020-02-06 11:00:31 +03:00
Svyatoslav Scherbina
2a4d995fd1
Add infrastructure for Native-specific frontend diagnostic tests
2020-02-06 11:00:28 +03:00
Svyatoslav Scherbina
99ba6b5ae1
Make :compiler:tests-common depend on :native:frontend.native
2020-02-06 11:00:25 +03:00
Svyatoslav Scherbina
e699965ed6
Add infrastructure for Native-specific frontend diagnostics
2020-02-06 11:00:22 +03:00
Svyatoslav Scherbina
1f97ae1084
Make :compiler:cli depend on :native:frontend.native
2020-02-06 11:00:19 +03:00
Svyatoslav Scherbina
cd92d3e9b4
Make :native:frontend.native depend on intellij-core
2020-02-06 11:00:16 +03:00
Dmitriy Dolovov
6d21e0c5e2
Fix: Kotlin/Native compiler tool name in Gradle IT
2020-02-06 14:13:18 +07:00
Dmitriy Dolovov
b8e49cb784
Fix: Kotlin/Native compiler tool name in Gradle root runner
2020-02-06 10:10:22 +07:00
Alexander Udalov
a4cc5ea1da
Remove unneeded dependency of backend-common on ir.tree
2020-02-05 22:45:12 +01:00
pyos
18dcbb3c94
JVM_IR: copy annotations to nullary bridges for default constructors
2020-02-05 22:02:05 +01:00
Alexander Udalov
5d766eace4
JVM IR: process type arguments for function references in DefaultImpls
...
Local functions for lambdas declared in DefaultImpls are now also
getting additional type parameters from the containing class (see
4dd794c2d2 ), so function references to them should be adapted similarly
to normal calls.
This change fixes
`box/coroutines/featureIntersection/interfaceMethodWithBodyGeneric.kt`.
2020-02-05 21:56:01 +01:00
Alexander Udalov
763cb6dd6f
JVM IR: keep original KotlinType in eraseTypeParameters
...
Otherwise EnhancedNullability annotation instance is lost (for some
reason it's not translated to IR elements), and in the newly added test,
the wrapper type in Java is confused with primitive, and this causes
a platform declaration clash error.
Also make IrTypeArgument.eraseTypeParameters private, since it's not
used outside.
2020-02-05 21:51:33 +01:00