Mikhail Glukhikh
bb19d4c598
Do not create expect / actual markers for parameters & enum entries
...
Part of KT-26957
2018-10-25 18:11:45 +03:00
Alexander Udalov
17076cd05e
Support class literal values in light annotations correctly
...
Map Kotlin built-in classes (e.g. Throwable) to corresponding Java
classes, do not map Unit to void, support arrays of primitives and
arrays of wrapper types
2018-10-25 16:27:23 +02:00
Alexander Udalov
266a8dae3f
Fix KClassValue behavior for reified type parameter literals
...
#KT-27799 Open
2018-10-25 16:27:23 +02:00
Alexander Udalov
c1ab08c8ce
Refactor KClassValue to store ClassLiteralValue internally
...
Only invariant array projections and non-null element types will be
supported soon (see KT-26568), so it makes no sense to store the
complete type in KClassValue. What we need is only the ClassId of the
class, and the number of times it's wrapped into kotlin/Array, which is
exactly what ClassLiteralValue represents.
This change helps in decoupling annotation values from
descriptors/types. The only constant value that depends on descriptors
is now AnnotationValue.
#KT-26582 Fixed
2018-10-25 16:27:23 +02:00
Alexander Udalov
bad30a4b99
Add module to ExperimentalMarkerDeclarationAnnotationChecker
...
Will be used in a subsequent commit
2018-10-25 16:27:22 +02:00
Alexander Udalov
2ab33026fb
Move ClassLiteralId to 'descriptors', rename to ClassLiteralValue
2018-10-25 16:27:22 +02:00
Alexander Udalov
19c79b906f
Minor, add utility to get class name from StringTable via ClassId
2018-10-25 16:27:22 +02:00
Alexander Udalov
9183d7ca27
Add ModuleDescriptor to AnnotationCodegen
2018-10-25 16:27:22 +02:00
Roman Artemev
ffdfec4815
[JS IR BE] Minor refactoring
2018-10-25 15:49:33 +03:00
Roman Artemev
080e1ad5b5
[JS IR BE]
...
* Fix type parameters for callable references
* Visit IrCallableReference tree as well
2018-10-25 15:49:22 +03:00
Roman Artemev
fb499def59
Update tests
2018-10-25 15:49:21 +03:00
Roman Artemev
04bf93c1bc
[JS IR BE] Refact CallableReferenceLowering
...
* fix cross-module references
* make it incremental
2018-10-25 15:49:20 +03:00
Roman Artemev
43d14ed954
[JS IR BE] Put closure function declaration in container (factory function)
2018-10-25 15:49:20 +03:00
Roman Artemev
9515de0b7e
[JS IR BE] Fix name clash between top-level fields
2018-10-25 15:48:42 +03:00
Roman Artemev
91ea377622
[JS IR BE] Fix translation for float literals
2018-10-25 15:48:42 +03:00
Roman Artemev
59b1743c37
Add tests
2018-10-25 15:48:42 +03:00
Roman Artemev
7cb202934c
Update tests
2018-10-25 15:48:42 +03:00
Roman Artemev
276000a974
[JS IR BE] Fix exceptions
...
* set message property in the correct way
* set proper name for each Throwable successor
2018-10-25 15:48:42 +03:00
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