Denis Zharkov
a5a93d00a7
FIR: Rework delegation constructor calls resolution
...
Make it work independently of being called for inner class (as in FE 1.0)
2020-08-11 10:14:02 +03:00
Denis Zharkov
db93b9052b
FIR: Fix incorrect optimization for integer literals
2020-08-11 10:14:02 +03:00
Vyacheslav Gerasimov
ad8709b2dc
Build: Remove exclusion of kotlinx-coroutines-core in scripting-common
...
It breaks available-at feature used in MPP
2020-08-11 00:39:04 +03:00
Vladimir Dolzhenko
8540f47c15
Fixed FindUsages case on look up implementation getter/setters via property names
...
#KT-40788 Fixed
#KT-24616 Fixed
back-port from kotlin-ide commit aa5580bb5a7e96b209cdaa1c82f4e485ee001ae8
2020-08-10 22:04:06 +02:00
Mikhail Zarechenskiy
e49cdf0ca2
Prohibit using suspend functions as SAM in fun interfaces
...
#KT-40978 Fixed
2020-08-10 22:04:16 +03:00
Mikhael Bogdanov
607f99ed3c
Don't generate implicit overrides delegating to Java defaults
...
#KT-40920 Fixed
2020-08-10 20:03:23 +02:00
Sergey Igushkin
07aee8831e
Fix stdlib-by-default with non-compiled source sets (KT-40559)
...
When a `variantFilter { ... }` is used in Android projects, AGP does not
creates some variants but still creates the source sets which would be
related to those variants.
For source sets that are not included into any compilation, the stdlib
module added by default was kotlin-stdlib-common, and it was added to
the `api` scope.
But AGP checks the `androidTest*Api` configurations and
if it detects any dependencies in them, it reports deprecation warnings.
However, we have plans to prohibit unused source sets at all as they
have no reasonable use cases. So the fix is not to add the stdlib by
default to source sets that participate in no compilations.
Issue #KT-40559 Fixed
2020-08-10 20:08:22 +04:00
Roman Golyshev
6e2887e083
FIR Completion: Add insertion handling for functions with lambdas
...
- The support is not complete
2020-08-10 18:25:34 +03:00
Roman Golyshev
b3a674abee
FIR IDE: Add parameter's and type's properties required for completion
2020-08-10 18:25:34 +03:00
Roman Golyshev
67ed33367f
FIR Completion: Add function insert handler
...
- It is a specialized copy from `KotlinFunctionInsertHandler.Normal`
2020-08-10 18:25:34 +03:00
Roman Golyshev
b547feb00d
FIR Completion: Render vararg modifier in lookups
2020-08-10 18:25:33 +03:00
Roman Golyshev
582b00f5b2
FIR Completion: Add UniqueLookupElement to the lookup elements
...
- It is done to differentiate overloads of the same function
2020-08-10 18:25:33 +03:00
Roman Golyshev
b6ee478190
FIR Completion: Add psi element to the lookups
...
- May be a performance problem later
2020-08-10 18:25:33 +03:00
Roman Golyshev
53180e707e
FIR Completion: Fix invalid isAbstract condition
2020-08-10 18:25:33 +03:00
Roman Golyshev
ef461260b0
FIR Completion: Add simple insertion handler to lookup elements
...
- The `QuotedNamesAwareInsertionHandler` is just a copy of
`BaseDeclarationInsertHandler`
2020-08-10 18:25:33 +03:00
Roman Golyshev
10598ee98e
FIR Completion: Add simple lookup decorating with icon and parameters
2020-08-10 18:25:32 +03:00
Roman Golyshev
64187b40c9
FIR Completion: Prevent immediate completion in number literals
...
- This is copied from the original KotlinCompletionContributor
2020-08-10 18:25:32 +03:00
Alexey Trilis
d86c14243e
Add @SinceKotlin to kotlinx.browser and kotlinx.dom packages
...
Add @DeprecatedSinceKotlin to kotlin.browser and kotlin.dom packages
2020-08-10 18:08:19 +03:00
Dmitriy Novozhilov
0e53d11dd4
Disable AllowResultInReturnType feature
...
#KT-40843
2020-08-10 17:57:53 +03:00
Valeriy.Vyrva
30ff886754
Improve docs for createTempDir/createTempFile
...
#KT-35218
2020-08-10 17:29:25 +03:00
Vladimir Ilmov
4fe6880489
Cyrillic 'c' fix in inspectionLikeProcessings.kt
2020-08-10 14:42:46 +02:00
Nick
0a2f113a24
[FIR] Fix slow string conversions in FirEffectiveVisibilityResolver
2020-08-10 13:46:15 +03:00
Alexander Dudinsky
e67518c349
Update gradle plugin version in GradleFacetImportTest
...
Also drop legacy tests for 1_1_2
2020-08-10 13:14:01 +03:00
Pavel Kirpichenkov
f431da2a66
Reapply "Introduce @FrontendInternals annotation""
...
This reverts commit 9ca4717d11 .
^KT-39643 Fixed
2020-08-10 12:22:55 +03:00
Yan Zhulanow
5e8e60a399
Move back the 'KotlinStructureViewElement.isPublic' property used externally
...
Reasoning: Method com.gmail.blueboxware.extsee.kotlin.ExtSeeKotlinStructureViewModel.Companion.PublicElementsFilter.isVisible(com.intellij.ide.util.treeView.smartTree.TreeElement treeNode) : boolean contains an *invokevirtual* instruction referencing an unresolved method org.jetbrains.kotlin.idea.structureView.KotlinStructureViewElement.isPublic()
2020-08-10 18:18:37 +09:00
Alexander Dudinsky
aec87744f2
Run ImportAndCheckNavigation tests only vs the master version of plugin
...
Also error "Could not find org.jetbrains.kotlin:kotlin-klib-commonizer-embeddable"
was fixed by adding ":native:kotlin-klib-commonizer-embeddable:install"
in dependencies for the kotlin-plugin install
2020-08-10 12:13:21 +03:00
Alexander Dudinsky
2042db598a
Mute GradleNativeLibrariesInIDENamingTest.testLibrariesNaming in 192, 193
...
After updating version of gradle-plugin this tests started to fail on
the old version of IDE. After discussion we decided just mute it in
the old bunches
2020-08-10 12:04:51 +03:00
Sergey Igushkin
988480d649
Fix source JARs missing in Kotlin/Native targets with HMPP (KT-39051)
...
With HMPP, a separate implementation of `kotlinComponents` is used which
accidentally ignored the parent's logic for source artifacts.
As a simple fix, copy the parent's logic for source artifacts.
Issue #KT-39051 Fixed
2020-08-10 13:02:17 +04:00
Nataliya Valtman
a766369e72
KT-33908 Make Kotlin Gradle plugin compatible with configuration cache
...
#KT-33908 Fixed
2020-08-10 11:17:30 +03:00
Georgy Bronnikov
ea57b4cccb
IR: add and unmute tests
2020-08-10 10:16:24 +03:00
Georgy Bronnikov
85ba170217
JVM_IR: use IrBasedDescriptors across codegen
2020-08-10 10:16:23 +03:00
Georgy Bronnikov
0b4c43083d
IR: add IrBasedDescriptors
2020-08-10 10:16:23 +03:00
Georgy Bronnikov
dafcdc527d
IR: propagate original declaration info via attributeOwnerId
...
For IrProperty, IrSimpleFunction we need to pass information about
original declaration to JVM_IR codegen. Instead of descriptors, use
the attributeOwnerId field.
2020-08-10 10:16:23 +03:00
Georgy Bronnikov
04d93dfbce
IR: move containerSource from descriptor to IrFunction, IrProperty
2020-08-10 10:16:23 +03:00
Nick
4669e019d1
[FIR] Add diagnostic CONFLICTING_OVERLOADS & REDECLARATION
2020-08-10 10:09:37 +03:00
kvirolainen
36984009e9
Add samples for flatten, unzip functions
2020-08-10 03:40:13 +03:00
Elijah Verdoorn
41d5615608
Add samples for mapNotNull, find, getOrNull functions
2020-08-10 03:39:49 +03:00
Ilya Kirillov
62df2b3195
FIR IDE: run SUPER_TYPES & BODY_RESOLVE phases under global lock
2020-08-09 12:05:20 +03:00
Ilya Kirillov
7fb408ecd7
FIR IDE: enable new project wizard to FIR IDE
2020-08-09 12:05:13 +03:00
Ilya Kirillov
db7119f04d
FIR IDE: fix ability to create new Kotlin files
2020-08-09 12:05:11 +03:00
Ilya Kirillov
054d196ec5
FIR IDE: temporary ignore failing tests
2020-08-09 12:05:02 +03:00
Ilya Kirillov
683ec2beff
FIR IDE: make KtScopeProvider thread local
2020-08-09 12:04:53 +03:00
Ilya Kirillov
f62204fff1
FIR: move getCallableNames/getClassifierNames from scope to FirContainingNamesAwareScope
2020-08-09 12:04:52 +03:00
Ilya Kirillov
36a161080f
FIR IDE: introduce KtType rendering
2020-08-09 12:04:44 +03:00
Ilya Kirillov
9f33d0147c
FIR IDE: add info about nullability to KtType
2020-08-09 12:04:43 +03:00
Ilya Kirillov
16d22ae7e3
FIR IDE: correctly build FIR for qualified expressions
2020-08-09 12:04:43 +03:00
Ilya Kirillov
66f6fe18d6
FIR IDE: replace javax threadsafe annotations with custom ones
...
javax.annotation.concurrent may not be present for some JDKs
2020-08-09 12:04:35 +03:00
Ilya Kirillov
4595ee2cc0
FIR IDE: create read only copy of symbol builder only for completion
2020-08-09 12:04:34 +03:00
Ilya Kirillov
ccf232eaab
FIR IDE: forbid analysis session to be stored in a variable
2020-08-09 12:04:34 +03:00
Ilya Kirillov
b41a5f9f34
FIR: make TypeRegistry thread safe
2020-08-09 12:04:26 +03:00