Alexander Udalov
0fb33b82ff
Fix compilation of uast-kotlin for 182
...
Caused by 4e15b95d17
2019-05-24 17:02:28 +02:00
Alexander Udalov
5812d28b80
Update ReadMe of kotilnx-metadata-jvm
...
- remove the requirement to use Bintray repo; kotlinx-metadata-jvm is
published to Maven Central now
- remove the note about kotlin.Metadata being internal; it's public
since 1.3
2019-05-24 14:42:26 +02:00
Alexander Udalov
15bfbf59a7
Minor, unmute MetadataSmokeTest.lambdaVersionRequirement
2019-05-24 14:42:26 +02:00
Alexander Udalov
3564f4ae40
Make KmExtensionType.klass private, add KmExtensionVisitor.type
...
Since the only use case of KmExtensionType in user code is checking if
it equals some other KmExtensionType instance, we'd like to hide as much
of its implementation details as possible, in case we want to change it
in the future
2019-05-24 14:42:26 +02:00
Alexander Udalov
fd00999771
Render contracts in kotlinp, fix minor bug in kotlinx-metadata-jvm
2019-05-24 14:42:25 +02:00
Alexander Udalov
2a3786e3f8
Retain "is moved from interface companion" property flag in kotlinx-metadata-jvm
...
#KT-31338 Fixed
2019-05-24 14:42:25 +02:00
Alexander Udalov
cfa3509860
Add loadJava/compiledKotlinWithStdlib tests to KotlinpCompilerTestDataTest
2019-05-24 14:42:25 +02:00
Alexander Udalov
fe52f5fc7c
Rename "desc" parameters in kotlinx-metadata-jvm to "signature"
2019-05-24 14:42:25 +02:00
Alexander Udalov
4e15b95d17
Minor, inline JvmAbi.DEFAULT_MODULE_NAME
2019-05-24 14:42:25 +02:00
Alexander Udalov
9e2733915b
Add module name JVM extensions to class/package in kotlinx-metadata-jvm
...
#KT-31308 Fixed
2019-05-24 14:42:25 +02:00
Alexander Udalov
8ec466c2cc
Fix compilation error in FlattenStringConcatenationLowering
...
See cf13293363 and 8dc34ae7b9 , which were merged independently
2019-05-24 14:38:08 +02:00
Alexander Udalov
8dc34ae7b9
IR: rename {name,fqName}Safe -> {name,fqName}ForIrSerialization
...
These properties have a very specific detail in their behavior, in that
the constructor's name is set to be "<init>". While this is OK for the
IR serialization, this may not always be expected in other cases, and
their rather common names (`name`, `fqNameSafe`) suggested that these
properties could be used in generic contexts.
Change all usages outside IR serialization to use
`IrDeclarationWithName.name` and nullable
`IrDeclarationWithName.fqNameWhenAvailable` instead
2019-05-24 14:09:09 +02:00
Alexander Udalov
4e1effd065
Restore behavior in mapDefaultMethod for non-IR backend
...
Although the intention of the change 9894c216c1 (#2341 ) was sensible, it
unfortunately caused the type mapper to map a default method incorrectly
under certain _undiscovered_ circumstances, which leads to incorrect
bytecode being generated. Specifically, this led to an exception:
java.lang.NoSuchMethodError : org.jetbrains.kotlin.idea.debugger.evaluate.KotlinDebuggerCaches$Companion.compileCodeFragmentCacheAware$default(Lorg/jetbrains/kotlin/psi/KtCodeFragment;Lcom/intellij/debugger/SourcePosition;Lkotlin/jvm/functions/Function0;ZILjava/lang/Object;)Lkotlin/Pair;
in a developer branch where this class was refactored and moved to
another module. I was not able to determine the exact reason of this
error, so I'm workarounding it by limiting this change to the IR backend
only (where it's needed), and postponing the investigation of the
failure above for now.
2019-05-24 11:40:58 +02:00
Sergey Bogolepov
cc26fd143e
Shiny new shared version.
2019-05-24 12:39:55 +03:00
pyos
4cd4ea126b
JVM_IR: generate more accessors for use in inline functions
2019-05-24 11:27:19 +02:00
pyos
cf74b5e87b
Mark callable reference classes as synthetic
2019-05-24 11:27:19 +02:00
pyos
e7dd41743f
Prefix captured variables' names with $
2019-05-24 11:27:19 +02:00
Dmitry Gridin
ba390202c8
Remove resolve from isEffectivelyActual && isExpectDeclaration
...
Relates to #KT-29731
2019-05-24 15:55:01 +07:00
Dmitry Gridin
61a740457d
Suggest dialog if all members without actual modifier
...
Relates to #KT-31476
2019-05-24 15:55:01 +07:00
Dmitry Gridin
8dd1389979
Minor: remove redundant condition
2019-05-24 15:55:01 +07:00
Dmitry Gridin
9c4318a39c
Minor: cleanup OverrideMemberChooserObject
2019-05-24 15:55:01 +07:00
Dmitry Gridin
76c2c2a5e9
Allow "Add val/var to primary constructor parameter" for inline & annotation classes
...
Relates to #KT-29731
2019-05-24 15:55:01 +07:00
Dmitry Gridin
f2bd58c030
Expand "Create expected..." also to a members if an expect class doesn't exist
...
#KT-31272 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin
47e3a26749
Fix "Create expect function" for primary constructor
...
#KT-31518 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin
b575ed390a
Add a dialog to select members for export in expect class
...
#KT-31476 Fixed
#KT-31446 Fixed
#KT-31033 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin
9a910ef144
Fix modifiers for ACTUAL_RENDERER
2019-05-24 15:55:01 +07:00
Dmitry Gridin
a9ed042199
Minor: refactoring
2019-05-24 15:55:01 +07:00
Dmitry Gridin
1097bc76af
Don't suggest Add val/var to parameter at expect class constructor
...
#KT-29731 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin
af9d9eacb1
Minor: refactoring AddValVarToConstructorParameterAction
2019-05-24 15:55:00 +07:00
Dmitry Gridin
379152303c
Minor: refactoring 'refactoring' package
2019-05-24 15:55:00 +07:00
Dmitry Gridin
98a4c4588e
Don't suggest might be const on actual member declaration
...
#KT-27822 Fixed
2019-05-24 15:55:00 +07:00
Svyatoslav Kuzmich
142c9e2a8b
[JS RUNTIME] Workaround invalid IR in ArraySorting
2019-05-24 11:50:47 +03:00
Svyatoslav Kuzmich
a3677d6fc0
[JS IR RUNTIME] Fix types in kotlin.js.captureStack
2019-05-24 11:50:47 +03:00
Svyatoslav Kuzmich
7aed8d2f75
[JS IR BE] Fix lowering types nullability
2019-05-24 11:50:46 +03:00
Svyatoslav Kuzmich
ec34cdaae9
[JS STDLIB] Fix: Object.keys() returns list of strings
2019-05-24 11:50:46 +03:00
Svyatoslav Kuzmich
cd55e6b1e5
[JS IR BE] Use static fields instead of variables in enum lowering
2019-05-24 11:50:46 +03:00
Svyatoslav Kuzmich
30ada0ccbb
[JS] Fix type in vararg test
2019-05-24 11:50:46 +03:00
Ting-Yuan Huang
bdcd6f73b1
Move tailrecPhase before defaultArgumentStubPhase
...
So that default values can be copied to the recursive call sites.
2019-05-24 09:51:07 +02:00
Vadim Brilyantov
6addb24e4b
#KT-31574 : Keep CoreJarFileSystem in compiler jar to save clearHandlersCache
2019-05-23 21:39:05 +03:00
Vyacheslav Gerasimov
af63ef2405
Build: Actualize repository list in cacheRedirector.gradle.kts
2019-05-23 18:11:30 +03:00
Vyacheslav Gerasimov
4e229437f3
Build: Remove unnecessary repositories from idl2k
2019-05-23 18:11:29 +03:00
Vyacheslav Gerasimov
b88d9d62b8
Build: Extract cache redirector to script & add verification task
2019-05-23 18:11:29 +03:00
Vyacheslav Gerasimov
2bbf92a6c3
Build: Remove unused ktor repo from buildscript block
2019-05-23 18:11:28 +03:00
Vyacheslav Gerasimov
bda676ed26
Build: Redirect all urls starting with mirrored urls
2019-05-23 18:11:28 +03:00
Vyacheslav Gerasimov
7e61183ee1
Build: Move kotlinNativeRepo to :kotlin-gradle-plugin
...
the only one project using it
2019-05-23 18:11:28 +03:00
Dmitriy Novozhilov
ffc0276215
Fix compiler testdata broken in 95544b0
2019-05-23 17:46:16 +03:00
Nikolay Krasko
e38ad3a513
Temporary allow resolve in write action for insert handler
2019-05-23 16:25:09 +03:00
Nikolay Krasko
78569c62c0
Additional test for multiple comments in copyright updater
2019-05-23 16:25:09 +03:00
Nikolay Krasko
136cbd195b
Fix copyright updater in scripts (KT-30133)
...
#KT-30133 Fixed
2019-05-23 16:25:09 +03:00
Nikolay Krasko
aa01328d13
Add tests for copyright updater
2019-05-23 16:25:08 +03:00