Mikhail Glukhikh
0d64ab4846
Fix corner cases (override/script/null/etc.) in "might be const"
...
Related to KT-20644
2017-12-18 17:23:41 +03:00
Alexey Tsvetkov
3f082346ae
Do not set api version to language version when language version is null
...
#KT-21852 fixed
#KT-21574 fixed
2017-12-18 16:22:07 +03:00
Dmitry Petrov
17b4d4a973
Differentiate accessors by FieldAccessorKind
...
Otherwise accessors for backing fields (as in '{ field }') clash with
accessors for properties (as in '{ prop }').
#KT-21258 Fixed Target versions 1.2.30
2017-12-18 16:15:52 +03:00
Ilya Gorbunov
d8cd926a8c
Do not leak primitiveness of an array wrapped with asList
...
A primitive array wrapped in a List with asList had incorrect implementation of toArray method:
while it declares that an object array is returned, it returned a primitive array.
Therefore the methods such as `Collection.toTypedArray()` and its dependents
`ArrayList(collection)`, `Collection + Iterable` might behave incorrectly
having relied on `toTypedArray` returned an object array.
#KT-21828 Fixed
2017-12-18 15:50:15 +03:00
Sergey Igushkin
c55f08a166
Optimize embeddable JARs
...
Exclude the compiler dummy JAR from the resulting shadow JAR
2017-12-18 15:46:23 +03:00
Alexander Udalov
3a807cb39b
Support Void.TYPE as underlying Class object for KClass
...
#KT-20875 Fixed
2017-12-18 11:57:05 +01:00
Anton Bannykh
46a631a654
Ignore license in the downloaded node_modules and nodejs
2017-12-18 13:46:25 +03:00
Yan Zhulanow
1692d1a087
Kapt: Add missing 'flush()', otherwise the serialized data can be empty
2017-12-18 18:57:38 +09:00
Nikolay Krasko
f67eb90dfb
Don't show file root if it's same as the only declaration (KT-21200)
...
#KT-21200 Fixed
2017-12-18 11:50:50 +03:00
Nikolay Krasko
a3028beca9
Fix smart step into to Kotlin SAM adapter (KT-21538)
...
#KT-21538 Fixed
2017-12-18 11:50:49 +03:00
Denis Zharkov
adfee2086a
Update bootstrap to 1.2.20-dev-814
2017-12-16 18:56:26 +03:00
Yan Zhulanow
d4be55df0e
Kapt, Minor: Fix empty option parsing
2017-12-16 02:17:24 +09:00
Simon Ogorodnik
7c5897c1ab
Skip deprecated for org.junit package in kotlin.test
2017-12-15 20:09:51 +03:00
Simon Ogorodnik
c2e706db6c
Enable generation of docs for deprecated declarations
2017-12-15 20:09:49 +03:00
Simon Ogorodnik
c5c52dbda5
Fix annotations docs for kotlin.test
2017-12-15 20:09:48 +03:00
Simon Ogorodnik
430aad3651
Set LV = 1.2 in Dokka for generating stdlib docs
2017-12-15 20:09:47 +03:00
Simon Ogorodnik
3c78156f0f
Suppress kotlin.reflect.jvm.internal
2017-12-15 20:09:46 +03:00
Simon Ogorodnik
fb3cf212ce
Suppress docs for org.junit.Test header in kotlin.test
2017-12-15 20:09:45 +03:00
Simon Ogorodnik
99951db7e3
Add module docs for kotlin.test
2017-12-15 20:09:44 +03:00
Simon Ogorodnik
978a7fdfaa
Add stdlib to kotlin.test docs classpath
2017-12-15 20:09:43 +03:00
Simon Ogorodnik
773fca5245
Use correct task to build builtins.jar
2017-12-15 20:09:42 +03:00
Simon Ogorodnik
640ce213cf
Compile stdlib builtins ant pass it to Dokka
...
We need builtins to allow linking to type-aliased classes
such as Exception
2017-12-15 20:09:41 +03:00
Simon Ogorodnik
697b358293
Make local dokka run easier
2017-12-15 20:09:40 +03:00
Simon Ogorodnik
9ab48d8374
Suppress whole org.w3c
2017-12-15 20:09:38 +03:00
Simon Ogorodnik
99af2372c3
Suppress undocumented warnings for third-party js packages
2017-12-15 20:09:37 +03:00
Simon Ogorodnik
17106d6546
Use makeurl to create package-list URL in ant
2017-12-15 20:09:36 +03:00
Ilya Gorbunov
cc139856c8
List all source folders instead of project folder
2017-12-15 20:09:34 +03:00
Ilya Gorbunov
9b1867ce64
Docs: run gradle project and wrapper from the root dir
...
Build docs for kotlin-stdlib-jdk7/8 instead of jre7/8.
2017-12-15 20:09:33 +03:00
Simon Ogorodnik
a19e229a72
Minor: prepare for documentation generation
2017-12-15 20:09:32 +03:00
Ilya Chernikov
775eeb75c9
Treat daemon startup timeout/error exceptions the same way as RMI errors
...
will result on regular retry cycle on them, hopefully eliminating or
reducing appropriate exception reports
2017-12-15 15:24:38 +01:00
Mikhail Glukhikh
ea5a52f918
Restrict search scope in some inspections to avoid testData search
...
Affected inspections: can be private, can be parameter, unused symbol.
Related to KT-21756. May fix EA-113712.
2017-12-15 17:07:37 +03:00
Mikhail Glukhikh
2b5bbf0fdd
Fix tests for "may be constant" inspection
2017-12-15 17:07:35 +03:00
Sergey Igushkin
3b4f82c9b9
Advance Gradle version -> 4.4
...
(cherry picked from commit 2fc7628)
2017-12-15 16:59:37 +03:00
Nikolay Krasko
6456f4ed98
Test step into for Java constructor with SAM conversion
...
Additional test for KT-21538
#KT-21538 Fixed
2017-12-15 16:14:50 +03:00
Nikolay Krasko
d6cface66f
Make isFromJava check work for SAM adapter extension descriptors (KT-21538)
...
Consider all callable descriptor in JavaClassDescriptor to be from Java.
This is used to check if smart step into should be intercepted by Kotlin
handler or delegated to Java.
#KT-21538 Fixed
2017-12-15 16:14:50 +03:00
Nikolay Krasko
26413acf33
Refactoring: introduce method for reuse file for single class logic
2017-12-15 16:14:50 +03:00
Nikolay Krasko
5c33e4a32d
Minor: remove warnings in KotlinStructureViewFactory
2017-12-15 16:14:49 +03:00
Nikolay Krasko
c79386594d
Don't show useless fold icon in structure view (KT-17254, KT-21200)
...
#KT-21200 In Progress
#KT-17254 Fixed
2017-12-15 16:14:49 +03:00
Nikolay Krasko
1688f6fdbd
Minor: inline method in KotlinStructureViewElement and rewrite with when
2017-12-15 16:14:49 +03:00
Nikolay Krasko
7bf071b69f
Precount 'isPublic' property if descriptor available
2017-12-15 16:14:49 +03:00
Nikolay Krasko
c28a7d8f6d
Fix structure view auto-update (KT-21733, KT-19519)
...
- Fixed by subclassing PsiTreeElementBase instead of StructureViewTreeElement
- Warnings cleanup
#KT-19519 Fixed
#KT-21733 Fixed
2017-12-15 16:14:48 +03:00
Nikolay Krasko
b133189309
Rename: MyFunctionDescriptor -> SamAdapterExtensionFunctionDescriptorImpl
2017-12-15 16:14:48 +03:00
Toshiaki Kameyama
d719d06020
Don't suggest "convert to array literal" for *arrayOf #KT-21726 Fixed
2017-12-15 15:01:22 +03:00
Anton Bannykh
f68d639c63
Add @Target's to kotlin.test annotations
2017-12-15 14:14:00 +03:00
Toshiaki Kameyama
5680405531
"Redundant spread operator" inspection: support array literal
...
So #KT-21727 Fixed
2017-12-15 13:50:53 +03:00
Mikhail Glukhikh
df4bf73033
Convert lambda to reference: minor cleanup
2017-12-15 13:37:00 +03:00
Toshiaki Kameyama
0071ca64c7
Convert lambda to reference produces: fix case with qualified this
...
So #KT-19977 Fixed
2017-12-15 13:36:32 +03:00
Mikhail Glukhikh
50dc9a14a6
May be constant: fix corner case with getter & initializer
2017-12-15 13:31:49 +03:00
Mikhail Glukhikh
7358980cbc
Add inspection to detect non-const vals used as Java annotation args
...
So #KT-20615 Fixed
2017-12-15 13:31:41 +03:00
Mikhail Glukhikh
70b7e5eb68
Introduce inspection to detect vals might be marked as const
...
So #KT-20644 Fixed
2017-12-15 13:05:50 +03:00