Dmitry Savvinov
dbd352e2ba
Minor: simplify condition in KotlinFacetSettings
2019-10-02 16:52:39 +03:00
Georgy Bronnikov
e38ff8753e
JVM_IR: support type parameters in @JvmOverload functions
2019-10-02 16:19:06 +03:00
Nikolay Krasko
7467c80970
Fix bunch rule
2019-10-02 15:58:44 +03:00
Nikolay Krasko
343502125b
Rename ResolveInWriteActionManager -> ResolveInDispatchThreadManager
2019-10-02 15:58:44 +03:00
pyos
ea56a5e8b1
Unmute some JVM_IR inlining tests
2019-10-02 14:48:05 +02:00
pyos
6163a8cf56
IR: keep source container when making functions static
2019-10-02 14:48:05 +02:00
pyos
35a0fc40a6
Don't create redundant copies in DefaultArgumentStubGenerator
2019-10-02 14:48:05 +02:00
pyos
8bf5afbba2
JVM_IR: lift pre-super() computations out of anonymous objects
2019-10-02 14:48:05 +02:00
pyos
fa54b2cb81
JVM_IR: improve scope detection in accessor generation.
...
* Sometimes, there's a class after the last function in the scope
stack: that's the local type's (non-inline) primary constructor.
* In an inline (but not crossinline) lambda, accessors are needed
if and only if they would be needed in the function that the
lambda is defined in.
2019-10-02 14:48:05 +02:00
Toshiaki Kameyama
d86e87d35e
Add quickfix to change object to class
...
#KT-33586 Fixed
2019-10-02 19:42:30 +07:00
Toshiaki Kameyama
6a329210cb
Convert to anonymous object: fix wrong replacement when SAM is nested interface
...
#KT-33660 Fixed
2019-10-02 19:09:55 +07:00
Georgy Bronnikov
2e3428bbe7
JVM_IR: incorporate validation into jvmPhases
2019-10-02 14:56:54 +03:00
Mark Punzalan
05527fbc9a
Fix all IR element duplication warnings/errors in JVM IR.
2019-10-02 14:56:54 +03:00
Toshiaki Kameyama
ac7e955d3e
Change parameter type quick fix: don't use qualified name
...
#KT-32012 Fixed
2019-10-02 18:41:54 +07:00
Roman Golyshev
c463fad3b7
KT-34000: Allow autoimport to suggest fixes in qualified expressions
...
- it is required to be able to autoimport extensions from objects,
not only from the top level
- use `substituteExtensionIfCallable` to handle generics for extension methods
- move finding expression receivers to the separate method, add `Receivers` value class to hold found receivers
- change `CallableDescriptor.isValidByReceiversFor` to return false
if explicit receiver is not required for the descriptor
- ^KT-34000 Fixed
2019-10-02 13:46:47 +03:00
Toshiaki Kameyama
b2d2165342
Add "Remove redundant label" quick fix for REDUNDANT_LABEL_WARNING
...
#KT-26431 Fixed
2019-10-02 16:40:13 +07:00
Denis Zharkov
18df5d9db0
Support mixed positioned/named arguments in AddNameToArgumentIntention
...
^KT-7745 Fixed
2019-10-02 11:13:15 +03:00
Denis Zharkov
e54d2c7c32
Support named arguments in their own position
...
^KT-7745 In Proggress
2019-10-02 11:13:15 +03:00
Natalia Selezneva
bd6481b9e8
Add support for settings.gradle.kts configuring kotlin in project (KT-34114)
...
^KT-34114 Fixed
2019-10-02 10:30:42 +03:00
Natalia Selezneva
fac49df177
Invoke in CompilerSettingsListeners in invokeLater
...
script templates that are loaded from compiler settings are subscribed on this topic.
When ScriptTemplatesFromCompilerSettingsProvider invokes KotlinCompilerSettings.getInstance, deadlock may happen if those settings aren't initialized yet.
^KT-25373
2019-10-02 10:25:18 +03:00
Steven Schäfer
217f681b6e
JVM IR: Use WrappedClassDescriptor in class builder.
2019-10-02 08:29:22 +02:00
Georgy Bronnikov
be002fc417
JVM_IR: do not copy bodies when creating static functions
2019-10-01 20:52:57 +03:00
Georgy Bronnikov
4920d71d70
JVM_IR: set dispatchReceiverParameter of imported JvmStatic object methods to null
2019-10-01 20:52:56 +03:00
Mikhail Glukhikh
c7904b273f
FIR: fix FirArraySetCall.acceptChildren thus fixing visitConsistencyTest
2019-10-01 18:23:06 +03:00
Ilya Goncharov
7e47be9765
Add kotlin js test runner as required dependency for Karma
...
#KT-34123 fixed
2019-10-01 17:49:09 +03:00
Alexander Gorshenev
e53260e27c
Bumped klib ABI version
2019-10-01 17:38:57 +03:00
Alexander Gorshenev
147681f335
Fixed native PackageAccessTracker
2019-10-01 17:38:57 +03:00
Dmitriy Dolovov
df6dcd646f
Fix ClassCastException in KLIB reader
2019-10-01 17:38:57 +03:00
Dmitriy Dolovov
5985c0c02b
KLIB API constants clean-up
2019-10-01 17:38:57 +03:00
Dmitriy Dolovov
781c73335d
Use cache everywhere where K/N KLIBs are read in IDE
2019-10-01 17:38:57 +03:00
Dmitriy Dolovov
185b10fa06
Rename module capability: "KotlinLibrary" -> "KotlinNativeLibrary"
2019-10-01 17:38:57 +03:00
Dmitriy Dolovov
0196ce7c2f
IDE plugin: Add missed dependency 'util-klib-metadata'
2019-10-01 17:38:57 +03:00
Alexander Gorshenev
c227c13799
Commonizing klib metadata between native and js
2019-10-01 17:38:57 +03:00
Vyacheslav Gerasimov
f38123e78c
193: Update to 193.3793.14-EAP-SNAPSHOT
2019-10-01 17:23:47 +03:00
Georgy Bronnikov
7e9cfbc91a
IR: use toLowerCaseAsciiOnly
2019-10-01 16:43:23 +03:00
Igor Yakovlev
a68090db5a
Fix 191 branch build
2019-10-01 16:27:16 +03:00
Mark Punzalan
a01c53fb74
Use getPropertyGetter() in ForLoopsLowering to retrieve property
...
getters instead of directly retrieving the property first.
When the IR backend is used to compile the standard library, the
progression classes (in sources) are lowered, and therefore do not have
properties anymore (only fields and functions).
2019-10-01 13:34:59 +02:00
Igor Yakovlev
a19c5f944e
Mute tests with new tickets to resolve it later
...
Muted test with next tickets:
https://youtrack.jetbrains.com/issue/KT-34105
https://youtrack.jetbrains.com/issue/KT-34106
https://youtrack.jetbrains.com/issue/KT-34107
2019-10-01 13:53:21 +03:00
Igor Yakovlev
8def1f07aa
Fix testClassObjectCopiedFieldObject test
...
Fix of the test
PsiCheckerTestGenerated$DuplicateJvmSignature$Fields.testClassObjectCopiedFieldObject
additionally fixed the bug with blinking this test example in IDEA with UL classes enabled.
The story:
Extra diagnostics could be requested for any KtClassOrObject but for _nested_ classes result may depend on outer class members signature collecting. So the the order of outer/nested diagnostic reporting takes matter.
So for nested classes/objects we have to gen members of outer classes.
2019-10-01 13:53:21 +03:00
Igor Yakovlev
de5fb347e7
Fix SyntheticPropertyUsages tests
...
testJavaGetterToOrdinaryMethod_JavaGetterToOrdinaryMethod
testSyntheticPropertyUsages1_RenameGetMethod
from 192 disabled to call findReferences(elem), so overload does not worked
2019-10-01 13:53:21 +03:00
Igor Yakovlev
ca9e760379
Remove redundant analyzeWithAllCompilerChecks from NoArg plugin test
2019-10-01 13:53:20 +03:00
Igor Yakovlev
cef6b71897
Fix ultraLightClass method argument types erasure
...
Fix IdeRegression.testImplementingMap test
2019-10-01 13:53:20 +03:00
Igor Yakovlev
c5fc55b84c
Fix exception when Enum.valueOf got an invalid argument value
...
#Fixed KT-30515
2019-10-01 13:53:20 +03:00
Mark Punzalan
9daea89221
Avoid duplicate IR elements in ForLoopsLowering (accidentally introduced
...
in #2620 ).
2019-10-01 12:40:50 +02:00
Vladimir Dolzhenko
3b563eaca1
Use test path relative to testDataPath in fixture.configureByFile to be complaint with 193, part 2
2019-10-01 11:39:17 +02:00
Andrey Uskov
d7a2de59ac
Import: support mixing of TaskProviders and Tasks in task executors
...
#KT-34101 Fixed
2019-10-01 08:30:12 +03:00
Andrey Uskov
6d9be0ab5d
Fix MPP import tests
2019-10-01 08:30:09 +03:00
Andrey Uskov
c0f2be478f
Fix calculation of target platform for common test modules for NMPP
...
#KT-34070 Fixed
2019-10-01 08:30:07 +03:00
Anton Yalyshev
9af6efcb24
Return old-style DSL for Gradle versions < 5.0
2019-10-01 07:18:00 +02:00
Ilya Gorbunov
2106274fa3
Minor: fix Charset type reference in kdoc
...
#KT-34086 Fixed
2019-10-01 03:01:11 +03:00