Commit Graph

22192 Commits

Author SHA1 Message Date
Vladimir Dolzhenko 1911cbb077 Fixed ProgressIndicatorUtils.kt for 201
#KT-36008 Fixed
Relates to #KT-33939
2020-01-20 15:01:40 +01:00
Dmitriy Novozhilov 5cb7cf040a Update some testdata according switching compiler to 1.4 2020-01-20 16:41:46 +03:00
Dmitry Gridin 976db65911 TrailingCommaInspection: replace "Redundant trailing comma" message with "Useless trailing comma"
#KT-34744
2020-01-20 16:56:06 +07:00
Dmitry Gridin abb82f791e TrailingCommaInspection: add option for missing comma
#KT-34744
2020-01-20 16:56:06 +07:00
Yan Zhulanow 9782f6808d Minor: Fix deprecation notice in KotlinIndicesHelperExtension 2020-01-20 17:42:00 +09:00
Mikhail Zarechenskiy 581db19544 Fix test after advancing bootstrap compiler to 1.4
Now test is correct as it was previously, see https://github.com/JetBrains/kotlin/commit/76b3964e96b7a13479e9df95d5927be70eeea712#diff-03626fd0c49fefdea63cff24d50ea9eaL10
2020-01-20 11:01:28 +03:00
Nikolay Krasko f01b4706d1 Switch to 193 platform 2020-01-19 12:01:53 +03:00
Mikhail Zarechenskiy 547865d5c7 Fix tests for completion after fun keyword
It's correct from the current implemention but still questionable and
 should be discussed

 #KT-35990 Open
2020-01-17 19:37:48 +03:00
Mikhail Zarechenskiy 8206cadce2 FIC: support fun interfaces in stub builder 2020-01-17 19:36:12 +03:00
Mikhail Zarechenskiy 0e90d538df FIC: propagate info about conversions for deserialized classes 2020-01-17 19:36:08 +03:00
Mikhail Zarechenskiy 0fdebdfeba Refactoring: move SamConversionResolverImpl to core module 2020-01-17 19:36:07 +03:00
Mikhail Zarechenskiy c93c82236c Refactoring: move common parts about SAMs to frontend module 2020-01-17 19:36:06 +03:00
Michael Kuzmin e8a821986f Build: drop IntelliJ 2018.3 support (KT-35374)
Delete references in code
2020-01-17 18:20:38 +03:00
Michael Kuzmin 9b7717c37a Build: drop Android Studio 3.4 support (KT-35374)
Delete references in code
2020-01-17 18:20:38 +03:00
Dmitry Gridin 6c166e744a Implement TrailingCommaInspection
#KT-34744
2020-01-17 21:02:55 +07:00
Dmitry Gridin 8d37b86e82 KotlinStyleGuideCodeStyle: enable trailing comma by default
#KT-34744
2020-01-17 21:02:55 +07:00
Dmitry Gridin 481900b258 TrailingCommaPostFormatProcessor: introduce TrailingCommaVisitor
#KT-34744
2020-01-17 21:02:55 +07:00
Dmitry Gridin b9ed0706fa FormatterUtil: rename parameters in needTrailingComma functions
#KT-34744
2020-01-17 21:02:55 +07:00
Dmitry Gridin e3cbc56974 TrailingCommaPostFormatProcessor: extract API for inspections
#KT-34744
2020-01-17 21:02:55 +07:00
Dmitry Gridin 20836f5788 TrailingCommaPostFormatProcessor: allow everything except adding before 1.4
#KT-34744
2020-01-17 21:02:54 +07:00
Dmitry Gridin c5c035b67c TrailingCommaPostFormatProcessor: fix comments position before comma
#KT-34744
2020-01-17 21:02:54 +07:00
Dmitry Gridin 5a922e5cff KotlinCommonBlock: refactoring
#KT-34744
2020-01-17 21:02:54 +07:00
Dmitry Gridin d06787886a Fix tests after implementing trailing comma in formatter
#KT-34744
2020-01-17 21:02:54 +07:00
Dmitry Gridin d98794479d kotlinSpacingRules: fix cases with EOL comments and comma
#KT-34744
2020-01-17 21:02:54 +07:00
Dmitry Gridin 8142ad3f4d FormatterUtil: fix getLineCount
#KT-34744
2020-01-17 21:02:54 +07:00
Dmitry Gridin b1fc3963d2 AbstractFormatterTest: enable trailing comma by default
#KT-34744
2020-01-17 21:02:54 +07:00
Dmitry Gridin 9109f29c88 AbstractFormatterTest: cleanup code 2020-01-17 21:02:54 +07:00
Dmitry Gridin c27bf051d5 TrailingCommaPostFormatProcessor: add language feature check
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin 9511348497 TrailingCommaPostFormatProcessor: should be completed in one round
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin 8a45d2eb58 Formatter: add line break between comma and semicolon
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin bbd92a11bc TrailingCommaPostFormatProcessor: add case for empty comma owner
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin b72da6c4fc Formatter: support trailing comma in destruction declarations
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin 96a11707ca Formatter: support trailing comma in lambda value parameters & fix comments in KtParameter
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin d013fc2234 Formatter: support trailing comma in when entry
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin 4adfaab3ec Formatter: support trailing comma in lambda parameters
#KT-34744
2020-01-17 21:02:53 +07:00
Dmitry Gridin 07bda5a759 Formatter: support trailing comma in collection literal expression
#KT-34744
2020-01-17 21:02:52 +07:00
Dmitry Gridin ccd780c008 Formatter: support trailing comma in type arguments
#KT-34744
2020-01-17 21:02:52 +07:00
Dmitry Gridin b99c7f8d14 Formatter: support trailing comma in type parameters
#KT-34744
2020-01-17 21:02:52 +07:00
Dmitry Gridin 58058eef21 Formatter: support trailing comma in indexing suffix
#KT-34744
2020-01-17 21:02:52 +07:00
Dmitry Gridin c195cd46f2 Formatter: support trailing comma in value arguments
#KT-34744
2020-01-17 21:02:52 +07:00
Dmitry Gridin 13ae4a28a8 Formatter: support trailing comma in value parameters
#KT-34744
2020-01-17 21:02:52 +07:00
Vladimir Dolzhenko c0c929c449 ProgressIndicatorUtils.kt for 191 is added
Relates to #KT-33939
2020-01-17 11:39:44 +01:00
Roman Golyshev 4b50fb18fb KT-35258 Add better completion for MixedNamedArgumentsInTheirOwnPosition feature
- When named parameter is on its own position, the completion of the next argument will not be limited by named arguments only
- The completion will not suggest already used arguments names
- ^KT-35258 Fixed
2020-01-17 12:06:08 +03:00
Roman Golyshev bd713db70e KT-35258 Refactor mapArgumentsToParameters
- We assume that, if method has no stable parameters names, `parametersByName` should be empty
2020-01-17 12:01:44 +03:00
Dmitriy Novozhilov da4807e6b8 Disable AllowNullableArrayArgsInMain in corresponding run configuration tests 2020-01-17 10:48:20 +03:00
Dmitriy Novozhilov 76b3964e96 Update testdata according to change compiler version to 1.4 2020-01-17 10:33:50 +03:00
Nikolay Krasko 5bfb92661e More version updates 2020-01-17 10:33:50 +03:00
Nikolay Krasko ca49672a7a Advance version to 1.4 2020-01-17 10:33:50 +03:00
Vladimir Ilmov a2a3ca0558 Flaky ConcurrentModificationException in NewMultiplatformProjectImportingTest.testFileCollectionDependency fixed 2020-01-16 22:09:21 +01:00
Vyacheslav Gerasimov a0e73bffa0 Build: Add kotlinPluginPublication to idea-gradle-tooling-api 2020-01-16 18:26:20 +03:00