Commit Graph

10481 Commits

Author SHA1 Message Date
Alexey Sedunov f4b4b023a3 Introduce Variable: Support extraction of string template fragments
#KT-2089 Fixed
2015-11-24 20:40:15 +03:00
Alexey Sedunov 7dbcceee79 Minor: Replace PsiFile with KtFile in utility functions 2015-11-24 20:40:14 +03:00
Alexey Sedunov c80826aab4 Minor: Allow passing explicit type to KotlinNameSuggester.suggestByExpressionAndType 2015-11-24 20:40:12 +03:00
Alexey Sedunov 94f58c4b3d Minor: Drop Match class. Move range to UnificationResult.Matched 2015-11-24 20:40:10 +03:00
Alexey Sedunov 2d57aafef3 Misc: Render text of lambdas and functional expressions in "Extract..." popups 2015-11-24 20:40:08 +03:00
Alexey Sedunov 5889971d62 Introduce Variable: Allow choosing extraction scope for expressions in the lambda body
#KT-7720 Fixed
2015-11-24 20:40:07 +03:00
Dmitry Jemerov 70049171cd use Kotlin call hierarchy provider only for Kotlin elements, to ensure that it does not interfere with standard Java features of IntelliJ IDEA 2015-11-24 16:53:42 +01:00
Alexey Sedunov b6a5d30469 Inspections: Forbid equals/hashCode inspection on object with explicit supertypes
#KT-9778 Fixed
2015-11-24 14:03:48 +03:00
Alexey Sedunov d652623f90 J2K: KotlinIntroduceVariableHandler 2015-11-24 14:03:46 +03:00
Alexey Sedunov a591c27dbf J2K: KotlinIntroduceVariableHandler (rename .java -> .kt) 2015-11-24 14:03:43 +03:00
Valentin Kipyatkov 4905275a30 Renames 2015-11-24 12:16:58 +03:00
Valentin Kipyatkov fc34557a7a Refactored to be more type safe 2015-11-24 12:16:57 +03:00
Michael Nedzelsky 8ac3b1441a remove idea-js module 2015-11-23 22:32:44 +03:00
Michael Nedzelsky a7636126a1 fix tests for js 2015-11-23 22:32:40 +03:00
Nikolay Krasko d635f6f399 Run builtins resolve under non-cancelable progress indicator 2015-11-23 22:03:32 +03:00
Nikolay Krasko 58dbb1ad53 Rethrow stored process canceled exception as a new one with both stacks 2015-11-23 22:03:32 +03:00
Valentin Kipyatkov 606a34283d Use lookup elements from completion for variables in live templates 2015-11-23 20:31:34 +03:00
Valentin Kipyatkov f44bbfe4cd Moved test data to idea-live-templates too 2015-11-23 20:31:33 +03:00
Valentin Kipyatkov b8dadeb4cc Moved live templates support into separate module 2015-11-23 20:31:33 +03:00
Valentin Kipyatkov c6df1b6dce KT-9747 Live template macro "kotlinSuggestVariableName()" is wrong
#KT-9747 Fixed
2015-11-23 20:31:33 +03:00
Valentin Kipyatkov 6bd723da11 Templates "ifn" and "inn" to use kotlinVariable() instead of suggestVariableName() 2015-11-23 20:31:33 +03:00
Valentin Kipyatkov d4ba15fd90 "kotlinVariable()" macro to filter by expected type, dropped IterableVariableMacro 2015-11-23 20:31:33 +03:00
Valentin Kipyatkov 7dc6aff2e6 Moved ExpectedInfos and related classes into idea.core 2015-11-23 20:31:32 +03:00
Valentin Kipyatkov 0e740dc0a6 IterableVariableMacro to honor smart casts 2015-11-23 20:31:32 +03:00
Valentin Kipyatkov 51647853f3 Refactored BaseKotlinVariableMacro to not create IterableTypesDetector in all cases 2015-11-23 20:31:32 +03:00
Valentin Kipyatkov 566805fe93 Rewritten BaseKotlinVariableMacro 2015-11-23 20:31:32 +03:00
Valentin Kipyatkov 2fdd1ade26 Refactored utlity for checking isVisible 2015-11-23 20:31:31 +03:00
Valentin Kipyatkov 3d2f878885 Minor code simplifications + no i18n 2015-11-23 20:31:31 +03:00
Valentin Kipyatkov bfddba7789 Converted to Kotlin 2015-11-23 20:31:31 +03:00
Mikhail Glukhikh dc60c62781 Enum.values is now deprecated but Enum.values() is no more deprecated 2015-11-23 17:29:36 +03:00
Mikhail Glukhikh 1c609663a4 Private setters are now deprecated for open properties 2015-11-23 17:29:23 +03:00
Mikhail Glukhikh 74976911a2 Diagnostic for "private setter in abstract property" renamed 2015-11-23 17:29:20 +03:00
Ilya Gorbunov f2ce849f18 Fix parameter names in testData 2015-11-21 07:09:03 +03:00
Ilya Gorbunov 21e2e68ed4 Replace reversed() with apply { reverse() } or asReversed() 2015-11-21 00:54:03 +03:00
Ilya Gorbunov 32151c077e Replace map { ... }.filterNotNull() with mapNotNull { ... } 2015-11-21 00:54:01 +03:00
Ilya Gorbunov 5b02a59cb7 Fix JvmStatic applicability diagnostics test after COMPANION_OBJECT became distinct KotlinTarget 2015-11-21 00:43:35 +03:00
Dmitry Jemerov f20f15ec46 resolve KDoc references to members of companion object 2015-11-20 18:22:08 +01:00
Dmitry Jemerov 6adfb96154 AbstractJetReference -> AbstractKtReference 2015-11-20 18:22:07 +01:00
Dmitry Jemerov bfca85db52 don't highlight multi-resolved references in KDoc as unresolved
#KT-9413 Fixed
2015-11-20 18:22:07 +01:00
Dmitry Jemerov 742830f815 resolve KDoc references in static scope of classes as well
#KT-9946 Fixed
2015-11-20 18:22:06 +01:00
Dmitry Jemerov d709aa7db7 don't check for Kotlin plugin updates if IDEA update checks are turned off in the settings 2015-11-20 18:22:06 +01:00
Dmitry Jemerov a80930bf15 code cleanup can replace infix calls to library functions with ordinary calls
#KT-9976 Fixed
2015-11-20 18:22:05 +01:00
Valentin Kipyatkov fdc7c75f5b Fixed "Import member" intention shown in the wrong place 2015-11-20 16:06:34 +03:00
Valentin Kipyatkov bf99f91d83 Fixed EA-75877 2015-11-20 16:06:34 +03:00
Dmitry Jemerov 30084dff9d ensure that the short name of the Kotlin unused import inspection does not clash with Java (KT-10046) 2015-11-20 13:54:40 +01:00
Mikhail Glukhikh c84b22396b Diagnostic 'final function with no body' deleted because it's redundant 2015-11-20 15:43:25 +03:00
Mikhail Glukhikh b5610eebae Diagnostic 'final property in interface' deleted because it's redundant 2015-11-20 15:43:22 +03:00
Mikhail Glukhikh cd1b58f2eb Final in interfaces: deprecation ---> error + relevant test fixes 2015-11-20 15:43:19 +03:00
Valentin Kipyatkov 603bcaa039 KT-10006 Parameter Info does not work for smart cast receiver
#KT-10006 Fixed
2015-11-20 15:36:31 +03:00
Mikhail Glukhikh 4e44466cf9 Exposed visibility deprecation warnings made errors + relevant test fixes 2015-11-20 15:21:01 +03:00