Commit Graph

47376 Commits

Author SHA1 Message Date
Simon Ogorodnik c608395c7c KT-22815: Update testData 2018-07-20 18:41:11 +03:00
Simon Ogorodnik 9ec0ce6ec8 KT-22815: Show documentation for function value/type params 2018-07-20 18:41:08 +03:00
Simon Ogorodnik e4d76382b8 KT-22815: Update testData for quick documentation 2018-07-20 18:41:04 +03:00
Simon Ogorodnik 0b9d4a93dd KT-22815: Use 'Params' instead of 'Parameters' to save h-space 2018-07-20 18:41:01 +03:00
Simon Ogorodnik 6e95ae7393 KT-22815: Put colon after section names 2018-07-20 18:40:56 +03:00
Simon Ogorodnik b237298c20 KT-22815: Position deprecated section between definition and description 2018-07-20 18:40:49 +03:00
Simon Ogorodnik 1918836340 KT-22815: Use gray color for filename 2018-07-20 18:40:38 +03:00
Simon Ogorodnik 84b299d7dc KT-22815: Use bold for root identifier, and not for keywords 2018-07-20 18:40:30 +03:00
Simon Ogorodnik 33a6721270 KT-22815: Update quick-doc testData 2018-07-20 18:40:21 +03:00
Simon Ogorodnik 48d0493edb Fix enum special function quick navigation behaviour 2018-07-20 18:40:15 +03:00
Simon Ogorodnik 9a34e91dec KT-22815: Render annotations on separate lines 2018-07-20 18:40:10 +03:00
Simon Ogorodnik 831e7fdc06 KT-22815: Render definition file for top-level declarations
Do not show defined in for local declarations
2018-07-20 18:40:05 +03:00
Simon Ogorodnik 6255743148 KT-22815: Cleanup quick doc rendering 2018-07-20 18:40:00 +03:00
Simon Ogorodnik 1d0fc0e736 Copy template engine from ktor 2018-07-20 18:39:57 +03:00
Simon Ogorodnik 9283089397 Reformat 2018-07-20 18:39:54 +03:00
Simon Ogorodnik bfa5afa564 KT-22815: Cut Java signatures off properly 2018-07-20 18:39:52 +03:00
Simon Ogorodnik 263ed47aac KT-22815: Render sections properly 2018-07-20 18:39:48 +03:00
Simon Ogorodnik 39e72f4041 Reformat 2018-07-20 18:39:45 +03:00
Simon Ogorodnik 99f0a0368a KT-22815: Wrap parameters and try new DocumentationMarkup 2018-07-20 18:39:42 +03:00
Dmitry Petrov 86e863951e Compare FP numbers properly when determining if field initializer needed 2018-07-20 17:53:25 +03:00
Roman Elizarov 819ffe7117 Remove suspending function migration adapters for 1.3-M1 2018-07-20 16:57:42 +03:00
Dmitry Petrov ae0704af9c Generate singleton references as GET_OBJECT in nested classes 2018-07-20 16:46:18 +03:00
Dmitry Petrov 779cae7db5 Adjust receivers for possibly synthetic properties access
Synthetic property accessors are treated as extension functions on Java
classes by the front-end. However, underlying Java accessor methods are
proper members.
2018-07-20 16:46:18 +03:00
Denis Zharkov 73acc86785 Store computed library kind for jar in a file attribute
It should help to avoid visiting children of each jar in java projects
LibraryEffectiveKindProviderImpl has it's own in-memory cache
but it doesn't help when project is reopened

 #KT-25129 Fixed
 #KT-25034 Fixed
2018-07-20 15:35:58 +03:00
Alexander Udalov ad326f7875 Fix assert on parameter type length for functions with big arity
In case of a bridge for a vararg invoke with big arity, the bridge only
has one parameter (array of parameters), and the delegate method has at
least 23 parameters. This assert was added in 77959247d2 and it didn't
cause any tests in master to fail because tests on functions with big
arity are disabled there
2018-07-20 14:01:09 +02:00
Dmitry Savvinov 6dacd1011f Do not report warning if -XXLanguage turns on bugfix
KT-25554 Fixed
2018-07-20 14:24:42 +03:00
Alexander Udalov e42017a468 Fix ISE in ReflectJavaMember.getValueParameters on Java 6
The exception was incorrectly introduced in 0f0602230a. We should not
fail when `names` is null, only when there's no element at the
corresponding index. On Java 6, `names` is always null. On Java 8,
`names` is never null (it's an empty list if the class was compiled
without "-parameters")
2018-07-20 13:11:11 +02:00
Mikhail Zarechenskiy f8d19718c8 Fix exception on trying to evaluate red code with inline classes
#KT-25600 Fixed
2018-07-20 13:58:35 +03:00
Mikhail Zarechenskiy 17243c08c1 Forbid lateinit variables of inline class types
Proper support of lateinit inline class values will be added later,
 see #KT-23814

 #KT-25603 Fixed
2018-07-20 13:58:33 +03:00
Mikhail Zarechenskiy 045058c29a Support inline class values inside string templates through boxing
#KT-25626 Fixed
 #KT-25613 Open
2018-07-20 13:58:31 +03:00
Mikhail Zarechenskiy 9aa4247065 Do not box primitives in a single-entry string template expression 2018-07-20 13:46:11 +03:00
Mikhail Zarechenskiy 045e3f53b0 Propagate KotlinType into codegen methods where it's possible 2018-07-20 13:46:09 +03:00
Mikhail Zarechenskiy ec9d8e580e Leave boxing for compareTo/areEqual methods for inline classes
Inline classes can override methods and thus introduce side effects
2018-07-20 11:51:34 +03:00
Denis Zharkov 4e7718bfff Minor. Extract many properties to ImportResolutionComponents 2018-07-20 11:27:08 +03:00
Denis Zharkov 0b2fde3886 State on types level that forcing imports works only for non-default 2018-07-20 11:27:08 +03:00
Denis Zharkov 79e776e9d7 Drop KtImportsFactory as it became unused after previous commit 2018-07-20 11:27:08 +03:00
Denis Zharkov ec23695f77 Avoid creating fake PSI for default imports
#KT-13860 Fixed
2018-07-20 11:27:08 +03:00
Dmitry Petrov acf0bb349c Update testData for restricted expression annotations retention 2018-07-20 10:39:51 +03:00
Dmitry Petrov 92a8448042 DiagnosticsTestWithJsStdLib should use proper language version settings 2018-07-20 10:39:51 +03:00
Yan Zhulanow 63d37ec93b as33: Remove AndroidGradleOrderEnumerationHandler (should be moved to the Android plugin) 2018-07-19 19:09:40 +03:00
Yan Zhulanow 314cc5c2f5 Add support for Android Studio 3.3 Canary 1 2018-07-19 19:09:40 +03:00
Yan Zhulanow 315de660ca Minor: Make plugin.xml and build files more consistent with the main bunch 2018-07-19 19:09:40 +03:00
Yan Zhulanow 88422fb7ce Make source set empty for Android modules of deleting the resulting JAR files in 'ideaPlugin' task 2018-07-19 19:09:40 +03:00
Raluca Sauciuc 0e8a04c4ba as33: Android dependency reversal
(cherry picked from commit be781f4f462f74ca0efcc91b5c07a5b3756ba5b2)
2018-07-19 19:09:39 +03:00
Georgy Bronnikov db19a6e150 Make @JvmOverloads work with JVM_IR 2018-07-19 18:36:37 +03:00
Yan Zhulanow 1eb69a6960 Kapt: Do not add JDK jars if the 'no-jdk' option is set (KT-25258) 2018-07-19 17:31:25 +03:00
Nikolay Krasko bdbe6d617c Remove setting kotlin internal mode in pill configurations 2018-07-19 16:37:28 +03:00
Denis Zharkov f72aa78eec Fix libraries analysis for case of isReleaseCoroutines feature enabled
#KT-25466 In Progress
2018-07-19 16:19:04 +03:00
Nikolay Krasko f1463b4a2e Add version replace fix for kotlinx coroutines in Maven (KT-25251) 2018-07-19 16:09:57 +03:00
Nikolay Krasko 481c428881 Add version replace fix for kotlinx coroutines in Gradle (KT-25251)
#KT-25251 In Progress
2018-07-19 16:09:57 +03:00