Commit Graph

33347 Commits

Author SHA1 Message Date
Yan Zhulanow 23b343bb03 Kapt: annotation-processing is not dependent on 'cli' module anymore
(cherry picked from commit 4591f13)
2016-08-29 16:31:16 +03:00
Yan Zhulanow f61367df28 Kapt: Fixes on review
(cherry picked from commit be31262)
2016-08-29 16:31:16 +03:00
Yan Zhulanow 5b8e6abdeb Kapt: Support Java source root processing.
Support resource file writing.
(cherry picked from commit 7a06a91)
2016-08-29 16:31:16 +03:00
Yan Zhulanow 9d2144f221 Kapt: Support "*" in supported annotation qualified names (all annotations)
(cherry picked from commit 27ec053)
2016-08-29 16:31:16 +03:00
Yan Zhulanow a73cf65840 Kapt: Check DEFAULT modifier only in Java 8
(cherry picked from commit 71c8dfb)
2016-08-29 16:31:16 +03:00
Yan Zhulanow 53921c3f74 Kapt: Drop custom annotation stub factory, implement it with AnnotationParser in sun.reflect as done in Javac
(cherry picked from commit 82dcbf3)
2016-08-29 16:31:16 +03:00
Yan Zhulanow 6eb3d7e002 Kapt: Refactor kapt type wrappers. Now every ordinary (not NoType) type has a backed PsiType so it's easy to call utility functions from IntelliJ.
(cherry picked from commit 0a684aa)
2016-08-29 16:31:16 +03:00
Yan Zhulanow 84d62f37eb Kapt: Analyze sources again if the received analysis result is 'RetryWithAdditionalJavaRoots'. ->
Add additional Java roots to Java source roots and clear diagnostic messages before the next analysis round.
(cherry picked from commit 17ad807)
2016-08-29 16:31:16 +03:00
Yan Zhulanow 884e653490 Kapt: Add ability to get constant value from KtLightAnnotation
(cherry picked from commit 7180961)
2016-08-29 16:31:16 +03:00
Yan Zhulanow 0181dd000d Kapt: Implement Annotation Processing plugin in Kotlin (KT-13499)
(cherry picked from commit 32c461a)
2016-08-29 16:31:16 +03:00
Yan Zhulanow cc12a6c228 Kapt: Add APT wrappers for PSI elements
(cherry picked from commit 1214513)
2016-08-29 16:31:16 +03:00
Alexey Sedunov 89c39b9762 Misc: Use TODO() consistently in implementation stubs
#KT-13589 Fixed
2016-08-29 16:20:55 +03:00
Alexey Sedunov 639186ddae Convert Receiver to Parameter: Use template instead of the dialog
#KT-9490 Fixed
2016-08-29 16:20:52 +03:00
Alexey Sedunov 63092f6985 Create from Usage: Implement "Create type parameter" quickfix
#KT-11525 Fixed
2016-08-29 16:20:32 +03:00
Alexey Sedunov 6a2edabbd4 Create from Usage: Implement "Create type alias" quickfix
#KT-12904 Fixed
2016-08-29 14:13:56 +03:00
Valentin Kipyatkov 17edbac72b Fixed test data 2016-08-29 13:38:18 +03:00
Simon Ogorodnik 67c916a7d1 MultiFile tests now support java + kotlin testing. // FILE directive now accepts path in source root instead of just name 2016-08-29 13:38:18 +03:00
Valentin Kipyatkov 5f24b68368 Minor changes on code review 2016-08-29 13:38:17 +03:00
Valentin Kipyatkov 9cddd0d1a4 Renamed classes 2016-08-29 13:38:17 +03:00
Valentin Kipyatkov cbae3d77df Don't use term "Static import" + refer quickfix by class name in negative tests 2016-08-29 13:38:17 +03:00
Valentin Kipyatkov 0072bf079d Changes on review of pull request 2016-08-29 13:38:17 +03:00
Simon Ogorodnik 939b4768f5 Added tests, and fixed some bugs using it 2016-08-29 13:38:16 +03:00
Simon Ogorodnik 251d87fd22 Added ability to test quickfix with java dependencies 2016-08-29 13:38:16 +03:00
Simon Ogorodnik f40bb57d79 Refactored to use exiting impl of AutoImportBase 2016-08-29 13:38:16 +03:00
Simon Ogorodnik 9d56716897 #KT-9009 fixed 2016-08-29 13:38:16 +03:00
Kevin Greene ce1844a6c9 Updates link to JavaScript issues on YouTrack (#939) 2016-08-27 21:18:20 +03:00
Alexander Udalov 26156b137f Micro optimizations to type rendering in DescriptorRendererImpl
Do not create StringBuilder instances when the resulting String will be
appended to some other StringBuilder anyway. This, and a couple of micro
FqNameUnsafe-related optimizations, helps reduce memory traffic in Kotlin
reflection when rendering is involved (toString() is called on reflective
objects)
2016-08-26 15:17:02 +03:00
Alexander Udalov 3298649bd7 Support "-no-reflect" in "kotlin" command
#KT-13491 Fixed
2016-08-26 15:17:00 +03:00
Mikhail Glukhikh 902232c8ad CFG refactoring: extractVariableDescriptorFrom
(cherry picked from commit 95add79)
2016-08-26 14:15:08 +03:00
Ilya Gorbunov 25d8af3112 JS: Implement Long.hashCode function.
#KT-13756 Fixed
2016-08-26 05:28:48 +03:00
Ilya Gorbunov 813bee62e5 JS: Remove intrinsic for Long.equals, because it's applied incorrectly for nullable longs.
#KT-7500 Fixed
2016-08-26 05:28:20 +03:00
Ilya Gorbunov 9c4221cda8 Return EMPTY range [0, -1] when MIN_VALUE is specified as exclusive upper bound.
#KT-12762 Fixed
2016-08-26 05:19:51 +03:00
Ilya Gorbunov ca8b284805 Use 1.8 JVM target bytecode version for kotlin-stdlib-jre8 module to prevent loading on previous JRE versions. 2016-08-26 05:19:06 +03:00
Alexey Tsvetkov 522520b722 Update link to jarjar 2016-08-26 05:07:53 +03:00
Nikolay Krasko d9b116c6d6 Remove net/sf/cglib/ classes from Kotlin compiler (KT-13565)
(cherry picked from commit eb160a2)

 #KT-13565 Fixed
2016-08-25 15:35:10 +03:00
Nikolay Krasko 8b84b7158a Debugger doesn't step into 'for' body if there's inline function call in range expression (KT-13534)
#KT-13534 Fixed
2016-08-25 15:35:08 +03:00
Nikolay Krasko ef602be98e More emulate debugging after dexing - dex removes several lines mapped to one instruction
(cherry picked from commit 1b7d4ef)
2016-08-25 15:35:07 +03:00
Dmitry Jemerov 9264c876f8 show primary constructor properties in project view when "Show members" is enabled
#KT-11776 Fixed
2016-08-25 14:19:59 +02:00
Dmitry Jemerov 1cf79d9495 KtClassOrObjectTreeNode: cleanup after J2K 2016-08-25 14:19:59 +02:00
Dmitry Jemerov fceb626cf8 KotlinProjectViewUtil, KtClassOrObjectTreeNode: J2K 2016-08-25 14:19:59 +02:00
Dmitry Jemerov a7d5b7c4f8 KtClassOrObjectTreeNode: rename to .kt 2016-08-25 14:19:59 +02:00
Dmitry Jemerov 49c957364c KotlinProjectViewUtil: rename to .kt 2016-08-25 14:19:59 +02:00
Dmitry Jemerov 3ec583bb16 show icon of class initializer
#KT-11775 Fixed
2016-08-25 14:19:59 +02:00
Dmitry Jemerov 8ff0814221 show local functions in structure view
#KT-13473 Fixed
2016-08-25 14:19:59 +02:00
Dmitry Jemerov 509142089c KotlinStructureViewElement: cleanup after J2K 2016-08-25 14:19:59 +02:00
Dmitry Jemerov 50b1951746 KotlinStructureViewElement: J2K 2016-08-25 14:19:59 +02:00
Dmitry Jemerov 2ebacb6969 KotlinStructureViewElement: rename to .kt 2016-08-25 14:19:59 +02:00
Mikhail Glukhikh 8e5b833cca Has platform type inspection: do not suggest !! for not-null types #KT-12820 Fixed
(cherry picked from commit 8830ff7)
2016-08-25 10:32:50 +03:00
Mikhail Glukhikh 0ee1102e24 KT-13536 related: correct handling of objects
(cherry picked from commit 7ae9b6b)
2016-08-25 10:32:40 +03:00
Mikhail Glukhikh 6ac4bf3f17 No more SOE in UnusedSymbolInspection #KT-13536 Fixed
(cherry picked from commit 23961ee)
2016-08-25 10:32:31 +03:00