Ilya Gorbunov
c038d3e9a3
Mark all api in kotlin.reflect.full package with SinceKotlin(1.1), since it actually appeared in that package only in 1.1. #KT-16557 Fixed.
...
It doesn't matter that some functions were since 1.0 in the old package.
2017-03-07 18:22:11 +03:00
Kirill Rakhman
646f50dd66
Extract method refactoring should order parameters by first usage
...
Fixes #KT-16198
2017-03-07 18:10:02 +03:00
Ilya Gorbunov
1296c5444b
Fix warning that failed maven plugin smoke test.
2017-03-07 13:56:11 +03:00
Ilya Gorbunov
61e8848aa2
Add samples for sequence building API.
2017-03-07 13:32:39 +03:00
Ilya Gorbunov
a04e6de047
Add groupingBy and eachCount sample.
2017-03-07 13:31:44 +03:00
Ilya Gorbunov
75ae42121b
Improve sample comments.
...
Improve sample for lastIndex property.
2017-03-07 13:31:44 +03:00
Mikhail Zarechenskiy
578dd1dc42
Update Changelog for Kotlin 1.1.1-RC
2017-03-07 12:12:04 +03:00
Dmitry Petrov
d096f1d381
'while' and 'do-while' loop generator fixes.
...
Generate 'do-while' loop body as IrComposite, because variables declared
in loop body should be visible in loop condition.
Wrap 'do-while' loop in IrBlock so that variables declared in loop body
are not visible outside of the loop.
Generate 'while' and 'do-while' loops as expressions of type Unit.
2017-03-07 11:56:52 +03:00
Dmitry Petrov
cb61c358ea
Always generate primitive boolean constants as expressions of type 'kotlin.Boolean'.
2017-03-07 11:56:52 +03:00
Dmitry Petrov
1bbbc1ca1c
KT-16684 hashCode doesn't check data class property value of generic type for null
2017-03-07 11:56:52 +03:00
Dmitry Petrov
68fab55251
Minor: cleanup unused imports
2017-03-07 11:56:52 +03:00
Dmitry Petrov
6bc6c1b6cc
KT-16671 Calls to members imported from objects should be desugared in PSI2IR
2017-03-07 11:56:52 +03:00
Dmitry Petrov
4ba8268a29
KT-16669 Exception in PSI2IR on type alias constructor in supertypes list
2017-03-07 11:56:52 +03:00
Dmitry Petrov
e4683a1e9f
KT-16666 IMPLICIT_INTEGER_COERCION expression should have non-nullable type
2017-03-07 11:56:52 +03:00
Dmitry Petrov
8c32719f3d
Render 'type' for IrTypeOperatorCall expressions, update testData.
2017-03-07 11:56:52 +03:00
Dmitry Petrov
b3aeddac85
Refactor: generalize postfix order transformation in InsertImplicitCasts
2017-03-07 11:56:52 +03:00
Dmitry Petrov
8e8f83656f
KT-16618 IMPLICIT_INTEGER_COERCION isn't generated for global properties and default parameters
2017-03-07 11:56:52 +03:00
Sergey Igushkin
ee6aae7219
Enabled incremental compilation by default in Gradle plugin.
...
#KT-16546 Fixed
(cherry picked from commit 06715c5)
2017-03-07 11:32:26 +03:00
Alexey Andreev
ef38761dc2
JS: unmute now passing tests and mute test that passed by accident.
2017-03-07 10:46:09 +03:00
Alexey Andreev
a6ca2906d8
JS: add tests for reflection against external classes
2017-03-07 10:46:08 +03:00
Alexey Andreev
723c9be5a0
JS: fix class literal expression with primitive classes. See KT-16545
2017-03-07 10:46:08 +03:00
Alexey Andreev
8567db10b5
JS: fix coroutine transformation of callable references to local functions. See KT-16164
2017-03-07 10:46:07 +03:00
Dmitry Petrov
18fb70b32f
Potential fix for KT-16673
...
See also:
http://stackoverflow.com/questions/42571812/unsupportedoperationexception-while-building-a-kotlin-project-in-idea
'original' for SamAdapterFunctionScope.MyFunctionDescriptor#doSubstitute should exactly match 'this.original',
so we can just provide it by default in SamAdapterFunctionScope.MyFunctionDescriptor#newCopyBuilder.
2017-03-06 22:00:09 +03:00
Dmitry Jemerov
268f7b715c
"Configure Kotlin plugin updates" shows 1.2 and doesn't show 1.0.x
2017-03-06 19:50:58 +01:00
Ilya Chernikov
50e7973fc0
Implement verification workaround for annotation-like class InvalidScriptResolverAnnotation
...
fixes #KT-16621
2017-03-06 16:31:52 +01:00
Sergey Mashkov
243f718193
EA-88059 - assert: CompositeElement.addChild
...
ensure parent element for anchor elements so we never try to insert at wrong place
2017-03-06 17:34:36 +03:00
Sergey Mashkov
4637dcde33
EA-86479 - ISE: PomFile.<init>
...
don't apply any inspections for inappropriate pom files
2017-03-06 17:34:35 +03:00
Mikhael Bogdanov
ff9fe85507
Fix for KT-16614: Report inability to inline 1.8 bytecode into 1.6 bytecode as an error, no as an exception
2017-03-06 15:15:22 +01:00
Vyacheslav Gerasimov
5e4459f41d
Fix broken MultiFileHighlightingTest
...
Android resource folding builder should not run in non-Android projects
2017-03-06 14:31:01 +03:00
Alexander Udalov
0111c4d581
Allow references to nested class constructors in objects in LV = 1.0
...
#KT-16598 Fixed
2017-03-06 11:03:24 +03:00
Alexander Udalov
7c22113c34
Refactor serialization of package FQ name extension
...
Instead of requiring to pass it in SerializerExtensionBase's
constructor, pass it always in serializePackage. This is more
straightforward and helps in a situation where one SerializerExtension
instance is used for the whole module, not one per-package
2017-03-06 11:03:24 +03:00
Kirill Rakhman
c952e26cbb
Fix NPE caused by Rename Refactoring of backing field when caret is after the last character
...
#KT-16605 Fixed
2017-03-06 11:01:38 +03:00
Kirill Rakhman
1bad04db50
Fix Can't rename implicit lambda parameter 'it' when caret is placed right after the last character
...
#KT-14401 Fixed
2017-03-06 11:01:38 +03:00
Ilya Chernikov
e3391175d9
Rewrite parallel daemon start test to make it tougher but more robust
2017-03-05 11:29:54 +01:00
Anton Bannykh
4c6b9b695c
JS: mute some tests with extension functions in external declarations
2017-03-03 21:39:40 +03:00
Anton Bannykh
fcffd190d0
JS: prohibited extension function arguments in external functions; removed extension receiver in jQuery declarations.
2017-03-03 20:37:59 +03:00
Sergey Igushkin
73e94ffde0
Added a test for the fix of KT-16434.
...
(cherry picked from commit 5a6d06f)
2017-03-03 18:04:23 +03:00
Sergey Igushkin
6605ba80e7
Fix for androidTest variants of Android Gradle build.
...
Added a workaround reflection call to TaskManager to create a
javac task since it is missing for androidTest variants with jack.
Added source configuration with the tested variant to make
the tested sources visible to the compiler.
#KT-16434 Fixed
(cherry picked from commit 84efd05)
2017-03-03 18:04:12 +03:00
Mikhail Glukhikh
0432e2e947
Quick-fix to add noinline to parameter with suspend function type + AddInlineModifierFix refactoring #KT-16074 Fixed
2017-03-03 17:28:37 +03:00
Mikhail Glukhikh
d9710ea4ff
#EA-97027 Fixed
2017-03-03 17:28:35 +03:00
Mikhail Glukhikh
8965bb8977
Navigation: new icons for header <---> impl #KT-15842 Fixed
2017-03-03 17:28:34 +03:00
Vyacheslav Gerasimov
1376c8f8cf
Implement quickfixes for Android Lint api issues
...
#KT-16624 Fixed
#KT-16625 Fixed
#KT-14947 Fixed
2017-03-03 16:22:36 +03:00
Vyacheslav Gerasimov
a907ec92b5
Implement Android resource reference folding
...
#KT-15451 Fixed
2017-03-03 16:18:20 +03:00
Vyacheslav Gerasimov
39010ab847
Fix broken isReferenceTo checking code for Android extensions
...
#KT-16132 Fixed
2017-03-03 16:17:52 +03:00
Alexander Udalov
25c1828288
JS: write and load pre-release flag on binaries
2017-03-03 13:33:51 +03:00
Alexander Udalov
de8dd37e44
Change DeserializedContainerSource.presentableFqName to String
...
To allow outputting something other than "Class 'XXX'" in the diagnostic
message for declarations deserialized from JS
2017-03-03 13:33:51 +03:00
Alexander Udalov
f120865350
Combine cls stub builders for built-ins and JS
2017-03-03 13:33:51 +03:00
Alexander Udalov
297eb952bc
Extract common parts of built-ins and JS decompilers
2017-03-03 13:33:51 +03:00
Alexander Udalov
b52b90c182
Extract serialization of packageFqName extension to SerializerExtensionBase
2017-03-03 13:33:51 +03:00
Alexander Udalov
4e91dadfab
Combine decompiler deserializers for built-ins and JS
2017-03-03 13:33:50 +03:00