Roman Artemev
6a05b1eee5
[JS IR BE] Add noWhenBranchMatchedException
...
* refact exception helpers
2018-10-25 15:48:42 +03:00
Roman Artemev
3bea3eca2b
[JS IR BE] Support external enum classes
...
* add lowering pass
* fix EQEQ operator
2018-10-25 15:48:42 +03:00
romanart
eed22b0485
[JS IR BE] Add isTopLevel property to IrFunction
2018-10-25 15:48:42 +03:00
Roman Artemev
fced46ffaf
[JS IR BE] Fix block decomposer
2018-10-25 15:48:42 +03:00
Mikhael Bogdanov
612ca87aa3
Support coroutines in Android box tests
2018-10-25 13:34:29 +02:00
Ilya Chernikov
ae0b2405bc
Add ide script settings for sources and accepted location
2018-10-25 13:09:34 +02:00
Ilya Chernikov
492abd08bc
Fix bridge resolver behaviour on static dependencies
2018-10-25 13:09:32 +02:00
Ilya Chernikov
0e66c64a17
Implement new minimal extension point for providing (new) script definitions to idea
...
#KT-27817 fixed
2018-10-25 13:09:01 +02:00
Mikhael Bogdanov
afc78be58e
Explicitly specify test dist dependencies
2018-10-25 11:55:22 +02:00
Alexander Podkhalyuzin
812d3d9ce6
Fixed testdata to have the same package/file structure, otherwise it
...
will not work with Java 9.
2018-10-25 11:16:37 +03:00
Mikhael Bogdanov
35fc629305
Move custom JDK tests into separate module
2018-10-25 09:15:03 +02:00
Mikhael Bogdanov
2f2d056aff
Add stdlib and reflect to Android test dependencies
2018-10-25 09:15:02 +02:00
Mikhael Bogdanov
1b2145af22
Fix test data
2018-10-25 09:12:26 +02:00
Mikhael Bogdanov
e5ef5d096e
Fix test data
2018-10-25 09:10:40 +02:00
Yan Zhulanow
7626cf6611
Minor: Update test data for kapt stub converter
2018-10-24 23:44:31 +03:00
Yan Zhulanow
ae66482715
Add missing versions.platform for the new bunches
2018-10-24 23:38:35 +03:00
Yan Zhulanow
9dd6efeb46
Fix sporadic false-positive "Receiver parameter is never used" for local functions (KT-26481)
2018-10-24 20:12:42 +03:00
Yan Zhulanow
f19c0c3fb9
Minor: Fix inspection warnings in 'kotlin-annotation-processing'
2018-10-24 20:12:41 +03:00
Yan Zhulanow
17c02a77c7
Minor: Fix inspection warnings in 'kotlin-annotation-processing-base'
2018-10-24 20:12:40 +03:00
Yan Zhulanow
2cb2141e07
Kapt: Do not treat initially empty configurations specially (KT-27404)
2018-10-24 20:12:39 +03:00
Yan Zhulanow
6e6a036f98
Kapt: Improve check for the current JDK version (KT-27188)
2018-10-24 20:12:38 +03:00
Yan Zhulanow
1f6dbc74da
Kapt: Restore constant identifiers for field annotations (KT-27334)
...
The old behavior broke after the refactoring of annotations with use-site targets.
2018-10-24 20:12:37 +03:00
Yan Zhulanow
0ae5d1c08f
Kapt: Log annotation processor initialization time
2018-10-24 20:12:36 +03:00
Yan Zhulanow
6d017f07ad
Kapt: Support androidx.annotation.RecentlyNullable annotations (KT-26725)
2018-10-24 20:12:35 +03:00
Yan Zhulanow
ac1dd59472
Kapt: Fix anonymous type transformer, do not use ClassDescriptor.defaultType as a replacement (KT-27119)
2018-10-24 20:12:34 +03:00
Yan Zhulanow
39863edd0e
Kapt: Use correct type mapping mode while mapping super types (KT-27126)
2018-10-24 20:12:32 +03:00
Yan Zhulanow
f6bf35c1f5
Kapt: Fix error type correction for super class constructor calls
2018-10-24 20:12:31 +03:00
Yan Zhulanow
ba53ba37b0
Replace bunch copies for some of build.gradle.kts files with a DSL
2018-10-24 20:12:30 +03:00
Yan Zhulanow
81cfc3e39f
Kapt: Support symlinked Java source files (KT-26817)
2018-10-24 20:12:29 +03:00
Yan Zhulanow
65a1dd9350
Minor: Add a package to JavaKaptContextTest, make it a TestCase
2018-10-24 20:12:28 +03:00
Yan Zhulanow
f36447aab8
Remove usage of deprecated ConcurrentWeakFactoryMap in debugger (KT-25667)
2018-10-24 20:12:27 +03:00
Yan Zhulanow
e3f6d183fa
Check for dumb mode before evaluation (KT-24959)
2018-10-24 20:12:26 +03:00
Yan Zhulanow
b8c756a4e8
Debugger: Remove false-positive assertion (KT-24343)
2018-10-24 20:12:25 +03:00
Yan Zhulanow
713dc589e0
Debugger: Allow to evaluate private properties from companion objects (KT-26795)
2018-10-24 20:12:24 +03:00
Yan Zhulanow
fee0cfcecb
Debugger: Add a stepping test for inline classes (KT-26798)
2018-10-24 20:12:23 +03:00
Alexander Udalov
1ee1d15b91
Support annotations on property accessors in JS/common metadata
...
#KT-14529 Fixed
2018-10-24 18:17:12 +02:00
Alexander Udalov
d1e1e274d9
Render property accessor annotations in .txt test data
...
If property accessor rendering is disabled in a test, render annotations
on accessors as use-site-targeted, as was done with
`@setparam:`-annotations. Otherwise they were lost
2018-10-24 18:17:12 +02:00
Mikhael Bogdanov
e326b8755f
Fix method inlining problems in 191 branch related to asm upgrade to 7.0
...
'visitAnnotableParameterCount' is propagating copying node state to
destination one that corrupts its state
2018-10-24 17:07:10 +02:00
Alexey Tsvetkov
bf39e1d146
Make google maven repo take precedence over jcenter in Gradle tests
...
'com.android.tools.build:aapt2-proto:0.3.1' stopped resolving from jcenter
2018-10-24 15:54:04 +03:00
Alexander Udalov
9394caf9cf
Use access to backing field on overridden property with private setter
...
#KT-27772 Fixed
2018-10-24 12:53:50 +02:00
Nikolay Krasko
8e1bff0e37
Additional diagnostic for internal state during jvm codegen
2018-10-24 13:04:49 +03:00
Nikolay Krasko
5fdb0df3fa
Fix backend for working with asm-7.0 beta (KT-27540, KT-27774)
...
Reset labels infos before moving instructions, otherwise list of
instructions is corrupted.
For more information:
https://gitlab.ow2.org/asm/asm/issues/317858
https://gitlab.ow2.org/asm/asm/commit/dc8acb48450bbb4aa461fb103916378cd226a6f6#5e3df072b61d74b2fd71d97a1d99188ccc46c1da_235_233
#KT-27540 Fixed
2018-10-24 13:04:48 +03:00
Nikolay Krasko
3b5dfba73a
191: Add com.intellij.util.ui.UIUtilities to proguard exception
2018-10-24 13:04:45 +03:00
Nikolay Krasko
77be4a9e85
Remove warnings in createByPattern.kt
2018-10-24 13:04:43 +03:00
Andrey Uskov
4024d0c484
Make JDK 9 mandatory back
...
#KT-26413 Fixed
2018-10-24 12:31:13 +03:00
Dmitry Savvinov
339c55505a
Refactor logic of reporting errors in contracts
...
Rename 'doCheckContract' into 'parseContractAndReportErrors',
emphasizing that it works with definitely call to 'contract' from
stdlib.
In particular, it means that it should either return non-null
value or report some errors.
Note that this commit doesn't change behavior of this code (modulo cases
when something in 'parseContract' throws exception), but just refactors
the code to be more clear and easy to reason about.
2018-10-24 12:03:04 +03:00
Dmitry Savvinov
3dd4e9f04f
Minor: use try-finally for setting LazyContractProvider
...
It conveys meaning of the code more celearly (because that's what we
want to do here: set LazyContractProvider no matter how code finished),
and also defends from several corner-cases (like, make sure that we
properly set LazyContractProvider even if doCheckContract has throw an
exception)
2018-10-24 12:03:04 +03:00
Mikhail Zarechenskiy
bae3ff5211
Don't try parsing contract-like function not from kotlin package
...
Returning `null` from `doCheckContract` functions means that we
have failed to parse contract function and should report an error, but
if the called function isn't true contract, we shouldn't evaluate that code
at all.
#KT-27758 Fixed
2018-10-24 12:03:04 +03:00
Mikhael Bogdanov
d82ca9ccd0
Rearrange repositories in android build script
2018-10-24 09:45:39 +02:00
Ilya Gorbunov
c8caed5b6f
Duplicate MutableList.add docs in AbstractMutableList.add
...
Because the documentation inheritance doesn't work as desired here.
2018-10-23 22:21:25 +03:00