Dmitry Petrov
c83b764c73
Update testData after changes in diagnostics
2017-05-26 13:58:46 +03:00
Dmitry Petrov
7979663e6c
Update testData for changed diagnostic messages
2017-05-26 13:58:46 +03:00
Valentin Kipyatkov
1fe6886a33
Fixed error message to quote parameter name
2017-05-20 23:44:20 +03:00
Valentin Kipyatkov
92a763552c
KT-17970 Intention actions to format parameter/argument list placing each on separate line
...
#KT-17970 Fixed
2017-05-19 12:20:51 +03:00
Mikhail Glukhikh
382bf9a500
ConvertReferenceToLambda status refactoring
...
Intention is not registered now; inspection is enabled by default now,
but has highlight level of "No highlighting"
2017-05-10 14:56:38 +03:00
Dmitry Jemerov
e2f75463d7
Rewrite AbstractQuickFixTest based on light fixture test case
...
Don't reconfigure runtime before every test. For consistency,
mark tests that require the runtime with directives instead of relying
on test file names.
2017-03-27 19:48:43 +02:00
Vyacheslav Gerasimov
8c41e44b3b
Fix MovePropertyToConstructorIntention and broken tests
2017-03-24 21:55:27 +03:00
Alexey Sedunov
834cdd63ab
Create from Usage: Support class generation by class literal expression
...
#KT-16188 Fixed
2017-03-19 17:19:48 +03:00
Simon Ogorodnik
98269c10d8
KT-15744 Intention to import sleep wrongly suggests Thread.sleep
...
#KT-15744 fixed
2017-02-06 14:56:18 +03:00
Ilya Gorbunov
b1b295f00f
Fix variance of Map.minus in expected diagnostics output.
2017-01-26 07:27:00 +03:00
Ilya Gorbunov
384b6410f2
New minus overloads appears in quickfix test data
2017-01-25 22:08:48 +03:00
Kirill Rakhman
406bac684c
Fix Quickfix for missing operator adds infix modifier to created function ( #1012 )
...
Fixes #KT-14907
2017-01-09 12:03:22 +01:00
Nikolay Krasko
2bb48fc802
Allow empty single-line bodies in property accessors
2016-12-14 13:40:44 +03:00
Alexey Sedunov
b6d4bb4921
Create from Usage: Support adding type parameters to the referenced type
...
#KT-11760 Fixed
2016-12-02 14:14:09 +03:00
Alexey Sedunov
2a594a5bcc
Create from Usage: Support generation of abstract members for superclasses. Skip non-abstract superclasses when generating abstract member
...
#KT-14019 Fixed
2016-12-02 14:14:05 +03:00
Mikhail Glukhikh
b111d1ba69
Convert reference to lambda intention introduced #KT-13393 Fixed
2016-11-24 15:26:18 +03:00
Dmitry Petrov
9ac3dbceca
Prohibit nested & local type aliases in 1.1: don't suggest to introduce typealias in a class or a function.
2016-11-21 10:25:51 +03:00
Alexey Sedunov
2ff8e922f0
Create from Usage: Add test for KT-14500
2016-11-07 20:03:37 +03:00
Alexey Sedunov
e8b5387384
Create from Usage: Support array access expressions/binary expressions with type mismatch errors
...
#KT-14501 Fixed
2016-11-07 20:03:35 +03:00
Valentin Kipyatkov
3bd39df587
No parameter names in types for error messages
2016-10-11 23:38:50 +03:00
Valentin Kipyatkov
41ee06ec96
Use parameter names in DescriptorRenderer
2016-10-11 23:38:49 +03:00
Alexey Sedunov
da1178fe0c
Create from Usages: Do not suggest on type-mismatched expressions which are not call arguments
...
#KT-14143 Fixed
2016-10-07 20:20:35 +03:00
Mikhail Glukhikh
e417a85276
Minor: secondary constructor to primary is suggested only on keyword and value parameter list
...
(cherry picked from commit 9a3e6d3)
2016-09-30 16:40:08 +03:00
Mikhail Glukhikh
725df49c8c
KT-9839: intention introduced: convert secondary constructor to primary one #KT-9839 Fixed
...
(cherry picked from commit f3fa779)
2016-09-30 16:39:24 +03:00
Valentin Kipyatkov
21c2268f70
Protection against "<caret>" missing in test data
...
Many incorrect tests fixed
2016-09-27 18:05:26 +03:00
Valentin Kipyatkov
e4f80e277f
Better texts of change variable type quickfixes
2016-09-23 10:07:15 +03:00
Mikhail Glukhikh
9ad820205e
Partial build fix (new convert to expression body opportunity in quick-fixes)
2016-09-19 10:37:39 +03:00
Alexey Sedunov
63092f6985
Create from Usage: Implement "Create type parameter" quickfix
...
#KT-11525 Fixed
2016-08-29 16:20:32 +03:00
Alexey Sedunov
6a2edabbd4
Create from Usage: Implement "Create type alias" quickfix
...
#KT-12904 Fixed
2016-08-29 14:13:56 +03:00
Valentin Kipyatkov
17edbac72b
Fixed test data
2016-08-29 13:38:18 +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
562488b348
Create from Usage: Disable "Create property" (non-abstract) in interfaces. Make "Create function" (non-abstract) generate function body in interfaces
...
#KT-13365 Fixed
2016-08-17 11:49:52 +03:00
Alexey Sedunov
6e3d1d726e
Create from Usage: Do not suggest creating annotations/enum classes for unresolved type parameter bounds
...
#KT-13364 Fixed
2016-08-10 11:45:37 +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
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
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
Dmitry Jemerov
079d857aa2
update testdata for https://github.com/JetBrains/kotlin/pull/896/
2016-07-19 17:58:09 +02:00
Alexey Sedunov
0d80bf030f
Create from Usage: Fix exception in "Create class" quickfix applied to unresolved references in type arguments. Create class body when necessary
...
#KT-12777 Fixed
(cherry picked from commit dc90ec9)
2016-06-28 15:07:21 +03:00
Alexey Sedunov
69704c017f
Create from Usage: Suggest "Create function/secondary constructor" quick fix on argument type mismatch
...
#KT-11864 Fixed
(cherry picked from commit 1912783)
2016-06-28 15:07:12 +03:00
Dotlin
fa523b9af4
Delegated Properties: Analysis adjustments for local delegated properties support
2016-05-13 19:11:18 +03:00
Alexey Sedunov
beb5d5e271
Create from Usage: Suggest "Create secondary constructor" on NONE_APPLICABLE error
...
#KT-11866 Fixed
2016-04-19 20:27:39 +03:00
Alexey Sedunov
aa4bfadfb1
Intentions: Implement "Introduce local variable" intention
...
#KT-11768 Fixed
2016-04-19 20:27:37 +03:00
Pavel V. Talanov
7de171efda
Improve message clarity for WRONG_NUMBER_OF_TYPE_ARGUMENTS diagnostics
...
#KT-9887 Fixed
2016-03-31 16:06:48 +03:00