Commit Graph

33256 Commits

Author SHA1 Message Date
Alexey Andreev 7016ce9b41 JS: refactor how cached access translators work. Fix cached access translator in case of arrays. Use cached access translator to translate reassignments 2016-08-23 18:06:51 +03:00
Alexey Andreev cb2c8edaf9 JS: don't translate RHS of overloaded assignment operators twice. It can break compilation in some cases, for example, when there are lambdas in RHS.
Fix #KT-12808 #KT-12807
2016-08-23 18:06:51 +03:00
Alexey Andreev 996c1b6f87 JS: add support of JS module kind to Gradle task. Add tests of support of module kind to Maven tests 2016-08-23 17:12:37 +03:00
Mikhail Glukhikh d08d8af407 USELESS_ELVIS_RIGHT_IS_NULL : build fix (add to different files in DiagnosticsTestGenerated), do not report if USELESS_ELVIS already exists
(cherry picked from commit c71b656)
2016-08-23 16:26:54 +03:00
Alexey Andreev df86840515 KT-13025: when receiver of call of 'invoke' method is a Function, check whether receiver is an extension function and generate additional '.call' invocation. Fix #KT-13025 2016-08-23 15:45:48 +03:00
Alexey Andreev c767b3d0ac KT-13043: fix translation of super call from secondary constructor when base constructor has default arguments 2016-08-23 15:44:27 +03:00
Mikhail Glukhikh b00b0caa9b Merge pull request #937 from shiraji/useless_elvis_with_null
KT-13521 Warning right part of "expression ?: null" is useless
2016-08-22 19:38:09 +03:00
shiraji a3f131d6c6 KT-13521 Warning right part of "expression ?: null" is useless
#KT-13521 Fixed
2016-08-23 01:10:10 +09:00
Alexey Tsvetkov ebf3c9404a Fix incremental build with kapt and gradle 2.14
#KT-13179 fixed
2016-08-22 19:05:06 +03:00
Valentin Kipyatkov c9d335394d KT-13529 Java function is not always converted to Kotlin after paste
#KT-13529 Fixed
2016-08-22 17:52:48 +03:00
Dmitry Jemerov ebd45a8c5c use less brute-force method for updating converted file content in J2K (may fix KT-13493 and friends) 2016-08-22 16:20:10 +02:00
Mikhail Glukhikh c07906fac4 Replace with safe calls forbidden for comparisons #KT-13432 Fixed 2016-08-22 15:11:33 +03:00
Kirill Rakhman 1fbd6678a5 Add quickfix for "A type annotation is required on a value parameter" #KT-12804 Fixed 2016-08-22 15:11:28 +03:00
Kirill Rakhman 2dd4194a79 Clean up quick fix package 2016-08-22 15:11:23 +03:00
shiraji 1bbde54e9d Inspection to warn on using == with array types #KT-13384 Fixed 2016-08-22 15:11:19 +03:00
Yoshinori Isogai 7d35316d95 KT-4519 Show first line with content of block comment when collapsed (#928) 2016-08-22 13:08:44 +02:00
Yoshinori Isogai 4669fb3ca7 KT-12697 Expand selection action select ": Type" (#898) 2016-08-22 12:35:23 +02:00
Mikhail Glukhikh b3b83e344b Added fake override search in unused symbol inspection #KT-13288 Fixed 2016-08-22 13:18:40 +03:00
Mikhail Glukhikh 8de68e3e87 Merge pull request #931 from cypressious/empty_parens
Add intention+inspection to remove empty parentheses from method call with single lambda parameter
2016-08-22 11:34:24 +03:00
Mikhail Glukhikh 3aee2f004e Merge pull request #932 from cypressious/kt13480
Fix "Can be replaced with comparison" false positive if extension method called 'equals' is used
2016-08-22 11:32:53 +03:00
Kirill Rakhman 1bc2af6436 Add intention+inspection to remove empty parentheses from method call with single lambda parameter
Fixes #KT-13519
2016-08-20 16:03:42 +02:00
Kirill Rakhman e6e46809de fix "Can be replaced with comparison" false positive if extension method called 'equals' is used
Fixes #KT-13480
2016-08-20 14:11:57 +02:00
Kirill Rakhman 45b5157ecf Clean up intentions package 2016-08-20 13:53:32 +02:00
Pavel V. Talanov a683c2b68d IntentionBasedInspection: Removing synchronizing on intention instances
Recreate intention instance in `buildVisitor`
Lock caused contention for UpSource
2016-08-19 18:54:15 +03:00
Dmitry Jemerov 742d7db953 diagnostics that helped catch KT-13381 2016-08-19 16:29:21 +02:00
Alexey Sedunov 9fd61b869e Find Usages: Do not duplicate containing declaration in super member warning dialog
#KT-10209 Fixed
2016-08-18 19:15:40 +03:00
Alexey Sedunov c2b38cfa41 Create from Usage: Place extension properties after the usage and generate stub getter
#KT-11795 Fixed
2016-08-18 19:15:38 +03:00
Alexey Sedunov 99ba340236 Create from Usage: Make extension functions/properties 'private' by default
#KT-11799 Fixed
2016-08-18 19:15:37 +03:00
Alexey Sedunov 92b0c852dd Remove Unused Receiver: update function/property usages
#KT-8903 Fixed
2016-08-18 19:15:36 +03:00
Alexey Sedunov 0fc28fe0b2 Rename: Support rename of packages with non-standard quoted names
#KT-13488 Fixed
2016-08-18 19:15:35 +03:00
Alexey Sedunov f6de6eac09 Rename: Do not search for component convention usages
#KT-9381 Fixed
2016-08-18 19:15:34 +03:00
Alexey Sedunov f507eed42d Rename: Fix parameter rename when new name matches call selector
#KT-13476 Fixed
2016-08-18 19:15:33 +03:00
Alexey Sedunov 5e577c391c Rename: Quote parameter name when necessary
#KT-13463 Fixed
2016-08-18 19:15:32 +03:00
Alexey Sedunov 238f99aa3d Override/Implement: Make return type non-nullable (platform collection case) when overriding Java method
#KT-13455 Fixed
2016-08-18 19:15:31 +03:00
Dmitry Jemerov ac6f0b5419 diagnostics for EA-86187 - KNPE: KDocElementFactory.createNameFromText 2016-08-18 17:27:43 +02:00
Dmitry Jemerov 8a22e1ed7c don't try to walk over the siblings of PsiFile to check if "introduce variable" is enabled (EA-86136 - assert: SharedPsiElementImplUtil.getChildIndex) 2016-08-18 17:27:43 +02:00
Dmitry Jemerov 7ee72f2ebc stop at file level when going up the tree in KtPsiUtil.areParenthesesNecessary() (EA-86495 - NPE: KtPsiUtil.areParenthesesNecessary) 2016-08-18 17:27:43 +02:00
Dmitry Jemerov ef791fedde check for project disposed in NewKotlinActivityAction (EA-82450 - assert: ComponentManagerImpl.getPicoContainer) 2016-08-18 17:27:43 +02:00
Nikolay Krasko 7e1d8fb8f5 Reformat main function templates
(cherry picked from commit d6d3846)
2016-08-18 17:25:38 +03:00
Nikolay Krasko 4d6206a7b5 Introduce 'maino' and 'psvmo' templates for generating main in object (KT-6520)
#KT-6520 Fixed
(cherry picked from commit cf1bdba)
2016-08-18 17:25:32 +03:00
Pavel V. Talanov 48d7e8c519 Implement navigation to type aliases in libraries 2016-08-18 16:34:37 +03:00
Mikhail Glukhikh ac3dfd93bd More correct handling of compile time constant types #KT-13421 Fixed 2016-08-18 14:42:16 +03:00
Kirill Rakhman 354d047533 Add Intention to replace a..b-1 with a until b and vice versa #KT-13483 Fixed 2016-08-18 13:27:07 +03:00
Mikhail Glukhikh d9358d44e7 KT-13426 related : added assertion to prevent smart cast type rewriting for (expression, call) or (expression, implicit receiver) pair 2016-08-18 09:50:27 +03:00
Zalim Bashorov 11107fd3fe Use target of current module when find libraries with incompatible binary format
#KT-12977 Fixed
(cherry picked from commit d975f21)
2016-08-17 20:42:14 +03:00
Kirill 1926825019 Make folding if to return/assignment work with if-else if-else #KT-13452 Fixed 2016-08-17 17:51:08 +03:00
Kirill 6bb4c28c2e Minor: make var val 2016-08-17 17:50:57 +03:00
Mikhail Glukhikh 1987187968 Build fix: IMPLICIT_RECEIVER_SMARTCAST and SMARTCAST slices in matchAndConvert.kt 2016-08-17 17:50:52 +03:00
Mikhail Glukhikh ae856e834a Store map (Call to KotlinType) for SMARTCAST slice #KT-13426 Fixed
Also EA-86848 Fixed
2016-08-17 16:09:45 +03:00
Mikhail Glukhikh dbff2be6fa Hack due to KT-678 was removed 2016-08-17 16:09:40 +03:00