Kirill Rakhman
5948b69679
AddConstModifierIntention: handle more edge cases #KT-13173 Fixed
...
(cherry picked from commit 4755596)
2016-07-22 18:07:14 +03:00
Alexander Udalov
2fcd4e955a
Simplify code in callable reference resolution
2016-07-22 11:05:19 +03:00
Alexander Udalov
5a6237b357
Refactor resolution of double colon expression LHS
...
Try resolving the LHS only when it looks (PSI-wise) like it could represent a
type element. This, for example, allows "illegal selector" error to be reported
on weird expressions like '""?.""::class'.
Also remove expression text from the "illegal selector" diagnostic, it's not
needed and can screw up the error message if the text is too big
2016-07-22 11:05:19 +03:00
Mikhail Glukhikh
82e69d9587
Remove setter parameter type inspection #KT-5771 Fixed
...
(cherry picked from commit 731a670)
2016-07-21 20:15:44 +03:00
Alexey Sedunov
ae06f01c95
Create from Usage: Approximate unresolvable types
...
#KT-7722 Fixed
(cherry picked from commit 917cd22)
2016-07-20 16:36:12 +03:00
Alexey Sedunov
a1e86e8bfa
Create from Usage: Show target class name in the text of "Create member" quick fix
...
(cherry picked from commit a51d3fc)
2016-07-20 15:39:19 +03:00
Alexey Sedunov
1a13c21377
Create from Usage: Show receiver type in the text of "Create extension" quick fix
...
(cherry picked from commit c0d5df1)
2016-07-20 15:39:13 +03:00
Alexey Sedunov
2abcd17713
Create from Usage: Support "Create member/extension" corresponding to the extension receiver of enclosing function
...
#KT-10668 Fixed
(cherry picked from commit bc4c013)
2016-07-20 15:39:09 +03:00
Alexey Sedunov
49b6811b44
Create from Usage: Support "Create abstract function/property" inside an abstract class
...
#KT-7492 Fixed
(cherry picked from commit 75f6b7f)
2016-07-20 15:39:07 +03:00
Alexey Sedunov
3ba776fffa
Code Insight: Format generated declarations
...
#KT-11176 Fixed
(cherry picked from commit 3641ad6)
2016-07-20 15:39:05 +03:00
Alexey Sedunov
a33f946c14
Override/Implement Members: Implement Members: Fix base member detection when abstract and non-abstract members with matching signatures are inherited from an interface
...
#KT-11115 Fixed
(cherry picked from commit a3a2e57)
2016-07-20 15:39:01 +03:00
Alexey Sedunov
00ad37b769
Introduce Property: Fix extraction of expressions referring to primary constructor parameters
...
#KT-12294 Fixed
(cherry picked from commit 78212a4)
2016-07-20 15:30:10 +03:00
Alexey Sedunov
130e4fb745
Introduce Type Alias
...
#KT-12902 Fixed
2016-07-20 11:46:59 +03:00
Valentin Kipyatkov
e05aa41bbc
Completion and import popup for bound callable references
2016-07-19 20:35:31 +03:00
Dmitry Jemerov
079d857aa2
update testdata for https://github.com/JetBrains/kotlin/pull/896/
2016-07-19 17:58:09 +02:00
Natalia Ukhorskaya
3cbe28095b
Debugger: check that label for marked object is a valid java identifier (KT-12651)
...
#KT-12651 Fixed
2016-07-19 17:52:55 +03:00
Alexey Sedunov
ccfca0e3dd
Inline Type Alias
...
#KT-12903 Fixed
2016-07-19 15:44:35 +03:00
Alexey Sedunov
7773a1c4e0
Inline Variable/Property: Move test data
2016-07-19 15:42:15 +03:00
Dmitry Jemerov
30f00bb618
fix muted test MultiFileIntentionTestGenerated.testImplementAbstractMember_implementVarInJava_ImplementAllInJava: apply intention in deterministic order, remove trailing space in expected output file
2016-07-19 11:17:48 +02:00
Dmitry Jemerov
9100ca8837
fix testdata for muted test IntentionTestGenerated$ReplaceItWithExplicitFunctionLiteralParam.testApplicable_nestedFunctionWithIt
2016-07-19 11:17:03 +02:00
Kirill
b9d235dec8
Implement quickfix for wrong long suffix
...
Fixes: KT-13134
2016-07-18 22:49:22 +02:00
Mikhail Glukhikh
a3b52fd8a6
Lambda to callable reference: inspection is optional depending on text length
...
(cherry picked from commit ce0c43c)
2016-07-18 17:10:31 +03:00
Mikhail Glukhikh
220141ab2b
Convert lambda to callable reference intention / inspection #KT-10903 Fixed
...
(cherry picked from commit b620099)
2016-07-18 17:10:15 +03:00
Denis Zharkov
b5bdb070a0
Fix test data after 4725dd3
2016-07-16 09:10:35 +03:00
Dmitry Jemerov
e224041760
show line markers for properties defined in the primary constructor (KT-12626)
2016-07-14 23:32:07 +02:00
Dmitry Jemerov
5380b63522
don't consider calls to methods with the same name as a property to be calls to accessors of that property
...
#KT-12813 Fixed
2016-07-14 23:32:04 +02:00
Dmitry Jemerov
14037f099c
correctly find usages of overridden Java method through synthetic accessors
...
#KT-12869 Fixed
2016-07-14 23:32:02 +02:00
shiraji
113ab7640e
Implement inspection to remove @ from annotation argument #KT-9228 Fixed
...
(cherry picked from commit 543c6bc)
2016-07-13 13:11:43 +03:00
Mikhail Glukhikh
39ffb68cc6
KT-12942 related: remove braces now does not work for if inside if
...
(cherry picked from commit c1faed5)
2016-07-12 17:27:19 +03:00
Mikhail Glukhikh
3fe114fc24
When to if now add braces for if branches inside #KT-12942 Fixed
...
(cherry picked from commit 29a7bfe)
2016-07-12 17:27:03 +03:00
Mikhail Glukhikh
b675b49daf
Specify type explicitly: do not consider star projection arguments in KotlinType.isFlexibleRecursive() #KT-13055 Fixed
...
(cherry picked from commit 828f4bf)
2016-07-12 17:26:50 +03:00
Mikhail Glukhikh
51ccfc120e
Can be primary constructor property: check whether property belongs to the same class #KT-12876 Fixed
...
(cherry picked from commit eb05a7a)
2016-07-12 17:26:39 +03:00
Nikolay Krasko
57ef3f5656
Generate linenumber for goto instruction in while (KT-13059)
...
Otherwise linenumber for previous instruction will be used in debugger. That can lead to error stepping
because it might be line that isn't reachable on current iteration.
#KT-13059 Fixed
2016-07-12 15:19:02 +03:00
Nikolay Krasko
0b5786b9e8
Fix LocalVarShadowingMemberProperty test by renaming test files
2016-07-11 13:52:37 +03:00
Nikolay Krasko
e6c05aa92d
Make DifferentKotlinGradleVersionInspection inpection work for classpath call with braces
2016-07-11 13:52:12 +03:00
Nikolay Krasko
620ddcd63a
Add inspection that warns if Gradle plugin version differs from the one in IDE (KT-12730)
...
#KT-12730 Fixed
2016-07-11 13:52:06 +03:00
Dmitry Jemerov
dec2f982ee
add test for resolving links to library classes from KDoc comments
2016-07-07 19:28:59 +02:00
Dmitry Jemerov
88fe6680fa
use QualifiedNameResolver for resolving links in KDoc
...
#KT-10398 Fixed
2016-07-07 19:27:45 +02:00
Dmitry Jemerov
193a404c07
to restore pre-1.0.3 highlighting behavior, inherit "extension function" and "extension property" colors from "static method" and "static field"
...
#KT-12937 Fixed
2016-07-07 18:01:39 +02:00
Dmitry Jemerov
216d548e98
fix rendering of code blocks escaped with multiple backticks or containing backslashes
...
#KT-12998 Fixed
#KT-12999 Fixed
2016-07-07 18:01:38 +02:00
Dmitry Jemerov
801a128547
don't lose ! when rendering markdown
...
#KT-13000 Fixed
2016-07-07 18:01:37 +02:00
Denis Zharkov
2cc09f928e
Allow suspend extensions for specially annotated controllers
2016-07-06 15:25:19 +03:00
Kirill Rakhman
79fff4aa3c
Show quick doc for implicit lambda parameter 'it' ( #889 )
...
* Show quick doc for implicit lambda parameter 'it'
Fixes #KT-9271
* Remove useless code
2016-07-05 14:51:56 +03:00
Dmitry Jemerov
a770fe2ec8
fix test
2016-07-05 13:43:19 +02:00
Kirill Rakhman
b50176fa2e
Implement quickfix for wrong primitive literal ( #885 )
...
* Implement quickfix for wrong primitive literal
Fixes: KT-12251
* fix style issue
2016-07-05 14:34:14 +03:00
Kirill Rakhman
3b290ce3dd
Add quickfix for "Illegal usage of inline parameter" that adds noinline ( #888 )
...
Fixes #KT-12838
2016-07-05 13:13:14 +03:00
Valentin Kipyatkov
5e48b7349e
KT-12803 Unused import when class is used in method reference
...
#KT-12803 Fixed
2016-07-04 20:49:40 +03:00
Valentin Kipyatkov
1941572717
KT-10433 Copy-pasting reference to companion object member causes import dialog in specific case
...
#KT-10433 Fixed
2016-07-04 20:49:40 +03:00
Dmitry Petrov
c8a5ccb1d0
"Go to class / symbol / super" & type aliases
2016-07-04 08:30:18 +03:00
Dmitry Petrov
0033cf85c4
Shorten references tests for typealias.
2016-07-04 08:30:18 +03:00