Sergey Rostov
1f162cfacf
JPS, tests, minor: reformat test data for changeIncrementalOption/incrementalOff
2018-11-26 09:29:38 +03:00
Sergey Rostov
4cd4e230bf
JPS, tests: update test data for cacheVersionChanged/withError
...
In this test only lookups caches are invalidated and only in first step.
module4 shouldn't be rebuilt since is compiled in step 1 and it is independent of all dirty modules.
Previously this module was rebuilt because of #KT-27044 which is fixed
by 5232f08
2018-11-26 09:29:38 +03:00
Sergey Rostov
a508f53f9d
JPS, tests, minor: reformat test data for cacheVersionChanged/withError
2018-11-26 09:29:38 +03:00
Sergey Rostov
06b908d48f
JPS, tests: Add docs for incremental/cacheVersionChanged tests
2018-11-26 09:29:38 +03:00
Ilya Gorbunov
290efe3749
BFS improvement in Gradle importer
...
Avoid queuing duplicate dependencies and excessive `contains` checks
by tracking discovered modules instead of processed.
Use ArrayDeque instead of LinkedList
2018-11-24 16:20:29 +03:00
Toshiaki Kameyama
e409007749
Join Lines: join initializer + if null check to elvis (KT-22388)
...
#KT-22388 Fixed
2018-11-24 02:30:10 +03:00
Vyacheslav Gerasimov
0708872f62
Remove kotlin-ultimate from VcsDirectoryMappings
2018-11-23 22:29:08 +03:00
Alexander Udalov
a796f11934
Support calling methods annotated with PolymorphicSignature
...
#KT-14416 Fixed
#KT-26165 Fixed
2018-11-23 18:41:33 +01:00
Alexander Udalov
b940418604
Compute default method signature lazily in CallableMethod
...
To prevent calling mapDefaultMethod for methods which are guaranteed
not to have default parameters (e.g. signature-polymorphic methods)
2018-11-23 18:41:32 +01:00
Alexander Udalov
0331f84ccd
Make parameter descriptor in CallGenerator.genValueAndPut optional
...
The main implementation in DefaultCallGenerator did not use anything
from that parameter anyway in 99% cases, except the type, which is
passed separately now as JvmKotlinType. This will be useful to implement
call generation for functions which do not have descriptors for their
value parameters (such as signature-polymorphic)
#KT-14416 In Progress
2018-11-23 18:41:32 +01:00
Alexander Udalov
7766f0a89d
J2K CallBasedArgumentGenerator: convert and prettify
2018-11-23 18:41:32 +01:00
Alexander Udalov
b66755b2d6
J2K CallBasedArgumentGenerator: rename .java -> .kt
2018-11-23 18:41:32 +01:00
Dmitriy Dolovov
bdaf762d93
CLion/AppCode: Disable action items in IDE:
...
- Convert Java File to Kotlin File
- Decompile Kotlin To Java
Issue #KT-28345:fixed
2018-11-23 22:27:23 +07:00
Dmitriy Dolovov
597d119ab7
CLion/AppCode: New plugin versioning schema
...
Use -PdeployVersion=<kotlin_version> to specify Kotlin version
Use -PcidrPluginVersion=<plugin_version> to specify CLion or AppCode plugin version (default is "beta-1")
2018-11-23 22:27:23 +07:00
Dmitriy Dolovov
b39656a85a
CLion/AppCode: Use LLDB bindings in Kotlin/Native debugger
2018-11-23 22:27:23 +07:00
Dmitriy Dolovov
5dca9b3de5
CLion/AppCode: Re-enable specific EPs for Kotlin/Native
...
Issue #KT-26717
2018-11-23 22:27:23 +07:00
Simon Ogorodnik
8ed63d1c18
CLion: Patch some xml's of Java plugin to make it work more stable
...
To get rid of exceptions while startup and indexing
2018-11-23 22:27:23 +07:00
Simon Ogorodnik
2b3b5876aa
CLion/AppCode: Use default platform for libraries, if no LibraryKind is specified
...
To avoid Unknown platform JVM
2018-11-23 22:27:23 +07:00
Vyacheslav Karpukhin
1b9b545643
CLion: limit plugin compatibility
2018-11-23 22:27:23 +07:00
Simon Ogorodnik
a8e5c01126
CLion/AppCode: Build artifacts via compilations, not via tasks
2018-11-23 22:27:23 +07:00
Simon Ogorodnik
7f0fcf7ef1
CLion/AppCode: Do not import sourceSets with unsupported platforms
2018-11-23 22:27:22 +07:00
Simon Ogorodnik
4a99cb274b
CLion/AppCode: Provide proper TargetPlatform & TargetPlatformVersion to FE
2018-11-23 22:27:22 +07:00
Simon Ogorodnik
49de7becfd
CLion/AppCode: Disable module type check for Kotlin Facet adding
2018-11-23 22:27:22 +07:00
Simon Ogorodnik
64800266f5
CLion/AppCode: Provide proper default platform instead of JVM
2018-11-23 22:27:22 +07:00
Simon Ogorodnik
39b151e37b
CLion/AppCode: Fix facet configuring
2018-11-23 22:27:22 +07:00
Vyacheslav Karpukhin
6dccafb469
CLion/AppCode: Move KotlinMPPGradleProjectResolver declaration from gradle-java.xml to gradle.xml
2018-11-23 22:27:22 +07:00
Vyacheslav Karpukhin
632dcc31bd
CLion/AppCode: Added kotlin-ultimate repository.
2018-11-23 22:27:21 +07:00
Mikhail Zarechenskiy
7b108541a9
[NI] Add test for obsolete issue
...
It was fixed after c6712ff861
#KT-25182 Obsolete
2018-11-23 17:30:37 +03:00
Mikhail Zarechenskiy
30aee3bfb6
[NI] Update test data
2018-11-23 17:30:37 +03:00
victor.petukhov
68c1e70b74
Add real literals spec tests
2018-11-23 17:24:13 +03:00
victor.petukhov
73ecde6cc3
Add boolean literals diagnostic spec tests
2018-11-23 17:24:01 +03:00
victor.petukhov
1af1eed31c
Add when expression PSI spec tests
2018-11-23 17:23:51 +03:00
victor.petukhov
64f531fc93
Reorganize spec tests infrastructure code
...
- Add the tests mute system for the diagnostic tests
- Move the code for the test info parsing to the separate package `parsers`
- Unification of the `linked` and `not linked` spec tests
- Package structure is refactored
- Change the multiline comment format with a test information
- Actualize `PrintSpecTestsStatistic`
- Other different code improvements
2018-11-23 17:23:41 +03:00
Mikhail Glukhikh
2af9efa4a0
Fix failing test (related to KT-28381, KT-28382 commits)
2018-11-23 15:43:39 +03:00
Mikhail Glukhikh
d59ea4c087
Move member to companion object: reformat
2018-11-23 15:35:19 +03:00
Mikhail Glukhikh
88cea0a88c
Navigation to implementation: do not try to find expect enum inheritors
...
Before this commit, expect enum could find actual enum entries
as its implementation, now it cannot.
#KT-28206 Fixed
2018-11-23 15:35:19 +03:00
Mikhail Glukhikh
5502d2de6a
Fix KNPE in "Move member to companion" for expect class #KT-28383 Fixed
2018-11-23 15:35:19 +03:00
Mikhail Glukhikh
41b75346fe
Forbid "introduce backing property" for expect classes #KT-28382 Fixed
2018-11-23 15:35:19 +03:00
Mikhail Glukhikh
10cc4959cc
Forbid "move property to constructor" for expect classes #KT-28381 Fixed
2018-11-23 15:35:18 +03:00
Andrey Uskov
f960ed9a46
Fix gradle-api version in bunch 173 (KT-27337)
2018-11-23 13:43:52 +03:00
Andrey Uskov
8fc005d8fd
Versions of components were moved from versions.gradle.kts to versions.properties in order to avoid unnecessary buildscript recompilation
...
#KT-27337 Fixed
2018-11-23 13:26:12 +03:00
Nikolay Krasko
d2b0ccd341
Restrict index search to declarations visible from Java
...
Fix KotlinStdLibInJavaCompletionTestGenerated.testList
Regression after KotlinShortNamesCache rewrite.
2018-11-23 01:59:15 +03:00
Nikolay Krasko
b79f8ff8fa
Fix completion tests after "cast required" color change (KT-18089)
...
#KT-18089 Fixed
2018-11-23 01:59:14 +03:00
Toshiaki Kameyama
d06b04f025
Add intention to convert SAM lambda to anonymous object #KT-25718 Fixed
2018-11-23 01:05:42 +03:00
Andrey Uskov
eedb69b5e4
Improve diagnostics in GradleInspectionTest
2018-11-22 20:18:03 +03:00
Ilya Gorbunov
cff32e46bb
Provide expect declarations for String.startsWith/endWith overloads
...
Mark the existing declarations as actual.
2018-11-22 19:17:24 +03:00
Mikhail Zarechenskiy
b48614df47
Add test for class literals on inline classes
...
#KT-28361 Obsolete
2018-11-22 18:10:41 +03:00
Mikhail Zarechenskiy
7a9fb3ca26
[NI] Fix coercion to Unit for explicitly specified type argument
...
#KT-25424 Fixed
2018-11-22 18:10:39 +03:00
Mikhail Zarechenskiy
c6712ff861
[NI] Correctly compute definitely not null type for intersection one
...
{ T : Any? & Foo & Bar? }!! -> { T!! & Foo & Bar }
Also, fix bug with loosing non-representative number type.
For example, for type { Byte & SomeType } we lost type `Byte` because
`getDefaultPrimitiveNumberType` returns null for it
Fixes #KT-28334 for NI
2018-11-22 18:10:37 +03:00
Mikhail Zarechenskiy
aa224558bd
Convert and simplify IntersectionTypeConstructor
2018-11-22 18:10:35 +03:00