Commit Graph

33245 Commits

Author SHA1 Message Date
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
Mikhail Glukhikh cbcef67d82 KT-13426: store map from ImplicitReceiver into KotlinType for implicit receiver smart casts 2016-08-17 16:09:34 +03:00
Zalim Bashorov 33e96fcb9a JS: fix runtime type checking for native non-fake interfaces on WebKit (JavaScriptCore); add tests for object and object expressions. 2016-08-17 14:25:29 +03:00
Ilya Gorbunov d845092b20 Take into account excluded fq-names when determining whether type has been imported by default.
Related to #KT-13447
2016-08-17 12:40:50 +03:00
Ilya Gorbunov e34bc30bd7 Exclude alias imported names from all-under imported packages when determining whether a type has been imported for completion.
#KT-13447 Fixed
2016-08-17 12:40:50 +03:00
Ilya Gorbunov b69661df8f Pseudocode and CFG changed after 'let' is resolved correctly. 2016-08-17 12:40:50 +03:00
Ilya Gorbunov 58a010464a Exception typealiases rendering in test output (CFG) 2016-08-17 12:40:50 +03:00
Ilya Gorbunov 2a0076d9bd Test data: replace Exception with Throwable (in those tests where particular exception type is not crucial in order not to rename tests to have runtime dependency added with exception typealiases). 2016-08-17 12:40:50 +03:00
Ilya Gorbunov 3115aa1dc2 Test data: replace Exception with Thread as the former is resolved not from java.lang anymore. 2016-08-17 12:40:50 +03:00
Ilya Gorbunov 570ac8b821 Add runtime dependency to tests where exception references are used. 2016-08-17 12:40:50 +03:00
Ilya Gorbunov 6f7b908dbb Test data: change fully qualified type so that it's available as type (and not an alias) in both jvm and js runtimes to have the same output. 2016-08-17 12:40:50 +03:00
Ilya Gorbunov 0ebfba7a1a Test data: do not use exceptions from java.lang, as they are not available in JS 2016-08-17 12:40:50 +03:00