Alexey Sedunov
0a8490a068
Introduce Type Alias: Suggest initial name based on extracted type
2016-07-25 12:44:30 +03:00
Alexey Sedunov
0769d47f4b
Introduce Type Alias: Support type constructor extraction
2016-07-25 12:44:28 +03:00
Alexey Sedunov
b5828a5fa1
Refactoring: Allow multiple ElementKinds when choosing element to refactor
2016-07-25 12:44:26 +03:00
Mikhail Glukhikh
30b0875b26
Merge pull request #906 from cypressious/make_val_private
...
Quickfix "Make primary constructor parameter a val" makes the val private now #KT-13187 Fixed
2016-07-25 09:46:42 +03:00
Mikhail Glukhikh
299097d112
KT-10903 Lambda to callable reference: use named arguments if needed, lift restriction about parameter default values
...
(cherry picked from commit 5232af5)
2016-07-25 09:40:34 +03:00
Dmitry Jemerov
a979c7e1d7
ugly fix for failing tests. without the string template, KotlinFilePathReferenceContributor injects a file reference into the string literal, and an unrelated intention (AddAnnotationIntention) tries to resolve it. resolving the reference caches the default contexts in FIleReferenceSet, which caches the order entries of a module in an OrderRootsCache. this creates VirtualFilePointers which are for some reason not disposed properly.
2016-07-23 21:18:26 +02:00
Kirill Rakhman
ce80f94830
Quickfix "Make primary constructor parameter a val" makes the val private now
...
Fixes #KT-13187
2016-07-23 14:32:25 +02:00
Yoshinori Isogai
8aaf28e240
KT-12887 Extend selection should select call's invoked expression ( #904 )
...
#KT-12887 fixed
2016-07-22 21:23:42 +03:00
Alexander Udalov
83000c50ff
Remove quotes around visibility in invisible member diagnostic
2016-07-22 18:13:41 +03:00
Alexander Udalov
b6b2303aa7
Improve error message for inaccessible invisible_fake members
...
#KT-8989 Fixed
2016-07-22 18:13:40 +03:00
Alexander Udalov
9be219b69c
Check presence of dispatch receiver parameter in modifier checks
...
Also fix typo in "inapplicable infix" diagnostic message
2016-07-22 18:13:39 +03:00
Alexander Udalov
2a390155a9
Fix quotes in diagnostic messages
...
See 8316953259
2016-07-22 18:13:38 +03:00
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