Commit Graph

8160 Commits

Author SHA1 Message Date
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
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 8206cadce2 FIC: support fun interfaces in stub builder 2020-01-17 19:36:12 +03:00
Dmitry Gridin 6c166e744a Implement TrailingCommaInspection
#KT-34744
2020-01-17 21:02:55 +07:00
Dmitry Gridin c5c035b67c TrailingCommaPostFormatProcessor: fix comments position before comma
#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 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 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
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
Vladimir Dolzhenko 5730a21e7b Reworked k2k copy-paste action.
Get rid of resolve from copy phase, paste phase performs resolve in bg

#KT-33939 Fixed
2020-01-16 15:59:37 +01:00
Alexander Udalov 9187a85aaf Rename UseExperimental->OptIn, Experimental->RequiresOptIn in quickfix and IDE tests 2020-01-14 21:04:43 +01:00
Vladimir Dolzhenko f5545b3740 Handle kdoc case for Introduce import alias inspection
#EA-210889 Fixed
2020-01-14 12:14:36 +01:00
Vladimir Dolzhenko a63123b556 Handle \r line endings in plaintext j2k
#KT-35831 #EA-209568 Fixed
2020-01-14 12:14:05 +01:00
Vladimir Dolzhenko dc6adc805a Handle java ctor case for Introduce import alias inspection
#KT-35824 #EA-218654 Fixed
2020-01-14 12:13:51 +01:00
victor.petukhov fc7b836151 Fix isNegated psi method in KtWhenConditionInRange
^KT-34395 Fixed
2020-01-13 15:36:33 +03:00
Toshiaki Kameyama 6b2e58cc0b Inline function: fix it works correctly for callable reference receiver
#KT-26248 Fixed
2020-01-13 11:59:42 +03:00
Vladimir Dolzhenko 272ca002d7 Drop UNREACHABLE_CODE eager text range calculation
#KT-35242 Fixed
2020-01-12 17:23:30 +01:00
Igor Yakovlev e2bb602271 Fix invalid test data file names 2020-01-11 00:03:48 +03:00
Igor Yakovlev 0c4134470d Fix exception of rename readonly overridden methods 2020-01-10 21:37:12 +03:00
Roman Golyshev 42deb7db48 KT-34582 Exclude kotlin.coroutines.experimental package from completion and auto-import
- Exclusion happens only when `ReleaseCoroutines` feature is supported
- Add `LANGUAGE_VERSION` to few tests to make sure that previous exclusions still work when `experimental` package is not excluded entirely
- ^KT-34582 Fixed
2019-12-29 15:35:49 +03:00
Nikolay Krasko 74e2c98426 Fix test data for QuickFixTestGenerated.SupertypeInitialization in 191 2019-12-27 16:53:19 +03:00
Toshiaki Kameyama 716036a000 RemoveModifierFix: fix message for 'companion object'
#KT-35604 Fixed
2019-12-27 15:38:32 +03:00
simon.ogorodnik 5e426fdc71 [FIR] Optimization & checking fix: remove usage of dispatchReceiverValue 2019-12-27 13:45:59 +03:00
Nikolay Krasko 2f129ea435 Allow resolve during fixing AddSpringBeanQualifierFix action
Fix SpringQuickFixTestGenerated test
2019-12-25 14:05:15 +03:00
Nikolay Krasko c372dc7f0a Fix AmbiguousCalls in >= 192 2019-12-25 14:05:13 +03:00
Nikolay Krasko d80fdf307f Fix testNoSynthesizedParameterNames in 192 and 193 2019-12-25 14:05:10 +03:00
Nikolay Krasko 18b1d64adc Update FindUsagesTestGenerated$Kotlin$Conventions.testSet test data 2019-12-25 14:05:07 +03:00
Toshiaki Kameyama fabeca5955 Redundant curly braces in string template: do not report labeled 'this'
#KT-35475 Fixed
2019-12-24 14:46:46 +07:00
Toshiaki Kameyama 03ec76b570 Redundant visibility modifier: do not report for 'internal' inside 'private'
#KT-35639 Fixed
2019-12-24 14:41:10 +07:00
Toshiaki Kameyama 49e5f170d1 "Replace 'when' with 'if'" intention: do not suggest if 'when' subject is variable declaration
#KT-35528 Fixed
2019-12-24 14:37:53 +07:00
Toshiaki Kameyama 1cdcef3b08 "Split property declaration" intention: do not suggest in 'when' subject
#KT-35528 Fixed
2019-12-24 14:37:53 +07:00
Nikolay Krasko e99dc0f87f Show only unique diagnostics in psi checker (KT-35578)
MissingDependencyClassChecker.collectDiagnostics now show only unique diagnostics

As per-file analyzer trace used in checker delegates to resolve session trace, diagnostics might be duplicated because of race condition:
 1. If a non-checker thread performs analyze first, diagnostics for global elements will be stored in the resolve session trace only once.
 2 If the checker threads comes to the analyze first, diagnostics will be stored in the local trace, and after that might be duplicated in the resolve session trace by other analyzers.

 #KT-35578 Fixed
2019-12-20 02:39:05 +03:00
Michael Kuzmin 254dc8f71c Build: Drop IntelliJ 2018.3 and Android Studio 3.4 support
Delete *.183 and *.as34 bunch-files
2019-12-19 18:31:07 +03:00
Simon Ogorodnik 05308a3652 [FIR] Introduce module for all jvm extensions 2019-12-19 17:30:12 +03:00
Dmitriy Novozhilov eed5b3f1d1 Add quickfix for removing redundant spread operator
#KT-25306 Fixed
2019-12-19 10:22:45 +03:00
Alexander Udalov 16db3a8b5f Fix compiler and IDE tests on Experimental/RequiresOptIn
See cdbabf224f, e009c7064e
2019-12-18 14:09:06 +01:00
Toshiaki Kameyama dd8396efbc Convert lambda to reference: support nested class constructor call (#2877)
#KT-34690 Fixed
2019-12-17 22:52:46 +01:00