Commit Graph

6964 Commits

Author SHA1 Message Date
Mikhail Glukhikh 7a2d0a3bb2 Add inspection "Redundant runCatching {}" (related to KT-25621) 2018-08-24 18:00:44 +03:00
Mikhail Glukhikh 2084e94099 Add quick-fix "add .getOrThrow()" for SuccessOrFailure inspection
#KT-25621 Fixed
2018-08-24 18:00:42 +03:00
Mikhail Glukhikh 87d750aa1c Add inspection to detect functions with SuccessOrFailure return type
Partial implementation of KT-25621 (no quick-fixes yet)
2018-08-24 18:00:41 +03:00
Mikhail Glukhikh 023b1b1880 Shorten quick-fix text of "Redundant async" #KT-25712 Fixed 2018-08-23 18:35:01 +03:00
Mikhail Glukhikh b41ef6a807 Do not report "unused symbol" on experimental annotations
#KT-25609 Fixed
2018-08-23 18:34:59 +03:00
Mikhail Glukhikh 4113a6fd6a Extend fixes of experimental errors to property & type alias
#KT-25525 Fixed
#KT-25526 Fixed
2018-08-23 18:34:57 +03:00
Toshiaki Kameyama f1dc09f839 Add postfix template for the spread operator #KT-26249 Fixed 2018-08-22 10:56:39 +03:00
Denis Zharkov 944b0d058a Allow calling some pieces of the experimental coroutine API
- Calling suspend functions is allowed
- Presence of suspend function type still makes declaration
unusable unless it belongs to a value parameter as a top-level type
containing less then three parameters

Still, warning should be emitted because they will become unsupported in 1.4

 #KT-25683 In Progress
2018-08-21 13:44:02 +03:00
Mikhail Glukhikh 4fd8d3b480 Add formatting rule "new line between { and when entry" 2018-08-20 13:21:22 +03:00
Mikhail Glukhikh ef094e78e3 Add when branches (minor): 'with import' -> 'with * import'
Change name of quick-fix to more descriptive one
2018-08-20 13:21:18 +03:00
Mikhail Glukhikh b031e34f8d Add when branches: include auto-import
Before this commit, enum / sealed class to add was not imported so
user had to import them himself. Now everything is auto-imported.
Separate "add with import" is kept but * import is now in mind there.
#KT-22330 Fixed
#KT-22354 Fixed
EA-108090 Fixed
2018-08-20 13:21:17 +03:00
Vitaliy.Bibaev 568a664491 Move test classes into 'streams' package in the tiny app 2018-08-20 05:18:01 +03:00
Vitaliy.Bibaev d4795c0e5d Add generated tests for collections/java streams 2018-08-20 05:18:01 +03:00
Vitaliy.Bibaev cf2c2ed802 Move sequence test data into 'debugger/tinyApp/src/streams/sequence' 2018-08-20 05:18:01 +03:00
Vitaliy.Bibaev 895e78d180 Move test data to tinyApp directory 2018-08-20 05:18:00 +03:00
Vitaliy.Bibaev fbc2a5d9a7 EA-114349 Fix bug when trace collecting for large int values throws NPE 2018-08-20 05:17:59 +03:00
Vitaliy.Bibaev 7cd1baff9d Fix bug when chain is not detected if method expression is used 2018-08-20 05:17:59 +03:00
Vitaliy.Bibaev da731b9bae Do not set redundant space in string representation of lambdas 2018-08-20 05:17:58 +03:00
Vitaliy.Bibaev 89abcb82e4 Support distinctBy intermediate call 2018-08-20 05:17:58 +03:00
Vitaliy.Bibaev 0cc5e924a7 Fix bug then Map.contains is not an expression 2018-08-20 05:17:58 +03:00
Vitaliy.Bibaev bfced7dd1e Support filterIsInstance with generic parameter 2018-08-20 05:17:58 +03:00
Vitaliy.Bibaev e9d8398573 Minor: update test data 2018-08-20 05:17:58 +03:00
Vitaliy.Bibaev 914a631322 Add tests & test data for all terminal operations 2018-08-20 05:17:58 +03:00
Vitaliy.Bibaev bf82cd9b40 Fix test dsl/mapComputeIfAbsent 2018-08-20 05:17:58 +03:00
Vitaliy.Bibaev bde34b45e7 Add 'asSequence' operation support 2018-08-20 05:17:57 +03:00
Vitaliy.Bibaev 8f807f441b Add two more tests for windowed operation support 2018-08-20 05:17:57 +03:00
Vitaliy.Bibaev 449fa8f3ec Support 'windowed' intermediate call 2018-08-20 05:17:57 +03:00
Vitaliy.Bibaev cc549d3ae5 Support chunked operation 2018-08-20 05:17:57 +03:00
Vitaliy.Bibaev 85d83309ae Support mapNotNull intermediate operation 2018-08-20 05:17:57 +03:00
Vitaliy.Bibaev eaee6697f2 Make zipWithNext work & add test 2018-08-20 05:17:56 +03:00
Vitaliy.Bibaev d8bc73367f Add tests for misc operations 2018-08-20 05:17:56 +03:00
Vitaliy.Bibaev 53209eaeec Add tests for appending values to sequence operation 2018-08-20 05:17:56 +03:00
Vitaliy.Bibaev d30a3b2495 Add tests for distinct operations 2018-08-20 05:17:56 +03:00
Vitaliy.Bibaev fd17d9959a Add tests for sorting operations 2018-08-20 05:17:56 +03:00
Vitaliy.Bibaev 3114691a02 Remove redundant copyright header in test data 2018-08-20 05:17:55 +03:00
Vitaliy.Bibaev 42aba80eb7 Add tests for flat-mapping operations 2018-08-20 05:17:55 +03:00
Vitaliy.Bibaev a4e72067a9 Add tests outputs for mapping operation tests 2018-08-20 05:17:55 +03:00
Vitaliy.Bibaev b31db50ba1 Add tests for mapping operations 2018-08-20 05:17:55 +03:00
Vitaliy.Bibaev 5383ec50d2 Add tests on filtering operations 2018-08-20 05:17:55 +03:00
Vitaliy.Bibaev 9d69b701c1 Add tests for type inference for items in the chain 2018-08-20 05:17:54 +03:00
Vitaliy.Bibaev c69e0c0d01 Update test data 2018-08-20 05:17:53 +03:00
Vitaliy.Bibaev 14ef19418b Add tests on different types of chain source 2018-08-20 05:17:52 +03:00
Vitaliy.Bibaev 7c417a59dc Fix bug when onEach extension call is not found for arrays 2018-08-20 05:17:52 +03:00
Vitaliy.Bibaev aa7f1073e6 Add tests outputs for collection execution tests 2018-08-20 05:17:51 +03:00
Vitaliy.Bibaev e3d651ec09 Add tests for filter operation 2018-08-20 05:17:51 +03:00
Vitaliy.Bibaev 338e06ff21 Minor: fix bug in tests/test data 2018-08-20 05:17:51 +03:00
Vitaliy.Bibaev 91348e3b2a Fix typo in test data 2018-08-20 05:17:51 +03:00
Vitaliy.Bibaev 3b6b6d5770 Fix typos in tests 2018-08-20 05:17:51 +03:00
Vitaliy.Bibaev d14cc77003 Add tests for types in chains of collection transformation calls 2018-08-20 05:17:50 +03:00
Vitaliy.Bibaev 6b6ccc45f0 Add tests on types of items in java chain operations 2018-08-20 05:17:49 +03:00