Pradyoth Kukkapalli
eb3ddf50bf
New Intention Action: Replace with traditional assign.
...
This takes an expression of the form a += b and converts it to an
expression form a = a + b.
2014-04-07 09:43:02 -04:00
Pradyoth Kukkapalli
249af96d3c
New Intention Action: Replace with operator assign
...
Replaces a statement of the form a = a + b with a statement of the form
a += b.
2014-04-07 09:43:01 -04:00
Nikolay Krasko
dd45da01d1
Fix "Extract variable" for anonymous object suggests name "nonameprovided" (KT-4813)
...
#KT-4813 Fixed
2014-04-05 04:41:31 +04:00
Pavel V. Talanov
6ba8e4c4b1
Switch JetMultifileBasicCompletionTest to generated approach
2014-04-02 13:37:18 +04:00
Pavel V. Talanov
4c634d5c67
Use common infrastructure for JetMultifileBasicCompletionTest
2014-04-02 13:37:17 +04:00
Zalim Bashorov
b43958f4b3
Fixed tests after adding error checking for intention tests.
2014-04-01 20:49:24 +04:00
Natalia Ukhorskaya
32a6205d81
SmartStepInto in top level functions. Add test for debugger
...
#KT-4737 Fixed
2014-04-01 10:41:34 +04:00
gavinkeusch
a6a1bb2b7c
KT-4574 New Intention: Split If - converts if statement containing one or more conjunction operators into two nested if statements
2014-03-31 14:40:00 +04:00
Nikolay Krasko
7c94e8a9af
Rename kotlin properties with all usages
...
#KT-4317 Fixed
#KT-4316 Fixed
2014-03-31 14:09:51 +04:00
Valentin Kipyatkov
50bb90a1e3
Smart completion: support for overloaded method calls
2014-03-27 15:21:57 +04:00
Andrey Breslav
708694a09d
Resolve annotation arguments only once
2014-03-26 21:10:29 +04:00
Andrey Breslav
34c6eaec56
Correct scope for property accessors in lazy resolve
2014-03-26 21:10:27 +04:00
Alexey Sedunov
cceb66d632
Implement structural grouping of Kotlin declaration usages
...
#KT-4742 Fixed
2014-03-25 18:01:06 +04:00
Alexey Sedunov
028a71273c
Fix test data of QuickFixTest
2014-03-25 16:49:44 +04:00
Alexey Sedunov
1bbec14cc0
Inspections: Explicit "get"
2014-03-25 16:49:43 +04:00
kuity
48b9dcf5ae
Added KT-4549 SwapBinaryExpression Intention
2014-03-25 15:55:53 +04:00
Ross Hanson
55e888604e
KT-4568: Created the ConvertNegatedExpressionWithDemorgansLaw intention. Converts an expression of the form !(a &&,|| b) to its expanded equivalent under DeMorgan's law.
2014-03-25 10:25:47 +04:00
Ross Hanson
2147a88ed8
KT-4568: Created the ConvertNegatedBooleanSequence intention. This intention takes an expression of the form !a &&,|| !b &&,|| ... and converts it to the DeMorgan equivalent !(a &&,|| b ...).
2014-03-25 10:25:47 +04:00
Tal Man
1c2082fd19
Don't create empty parentheses when lambda is the only argument
2014-03-24 18:20:01 +04:00
Ilya Ryzhenkov
796611702c
Test indentation on new line in scripts.
2014-03-24 18:17:51 +04:00
Ilya Ryzhenkov
64b4c2d49b
Fix scripting formatter to avoid extra indent in invisible block node.
2014-03-24 18:17:51 +04:00
Pavel V. Talanov
5bc8cc1f9a
Stub tests: test for parameters with fq name
2014-03-24 17:51:53 +04:00
Pavel V. Talanov
ece6c8ebfe
Stubs tests: treat NO_NAME_FOR_LAZY_RESOLVE specially
2014-03-24 17:51:40 +04:00
Pavel V. Talanov
fd5aea7c14
Refactor: use generated approach for stubs test
...
Remove meaningless assertion
Add comment to NotStorePropertyFromDelegate test
2014-03-24 17:06:07 +04:00
Pavel V. Talanov
8e264a1419
Test for formatting loop parameter with explicit type
2014-03-24 17:05:58 +04:00
Nikolay Krasko
b05fb38dcd
Fix ArrayIndexOutOfBoundsException in named parameters completion
2014-03-24 15:19:26 +04:00
Nikolay Krasko
287c1f4c71
Test for Complete class names in expression position (KT-2821, KT-3779)
...
#KT-2821 Fixed
#KT-3779 Fixed
2014-03-24 15:19:24 +04:00
Alexey Sedunov
5aa75ba3e1
Move top-level declarations to separate file: Refactoring processor and tests
2014-03-21 19:53:49 +04:00
Alexey Sedunov
6ddcd51af2
Rename test data directories
2014-03-21 19:53:47 +04:00
Natalia Ukhorskaya
e8d2ba197e
Debugger: implement Smart Step Into
...
#KT-4639 Fixed
2014-03-21 16:08:01 +04:00
Alexander Udalov
d2dc54c14f
Add test on named arguments completion for Kotlin library
2014-03-20 12:25:58 +04:00
Alexander Udalov
1c25723764
Don't suggest non-stable parameter names in completion
2014-03-20 12:19:26 +04:00
Svetlana Isakova
b33e3fc9d6
Merge pull request #371 from Stebalien/push-not-in-intention
...
Add an intention to simplify negated expressions.
2014-03-20 11:15:36 +03:00
Ilya Ryzhenkov
0267e2910d
Test data fixed after stdlib updtae
2014-03-19 20:25:13 +04:00
Steven Allen
d198465522
Add an intention to simplify negated binary expressions
...
Given an expression of the form `!(a op b)`, replace it with `a !op b`.
For example:
!(a < b) -> a >= b
!(a is Int) -> a !is int
2014-03-19 12:10:28 -04:00
Nikolay Krasko
607314989c
KT-1633 support completion of named function parameters
2014-03-19 17:59:41 +04:00
Alexey Sedunov
abcba89ad3
Move top-level declarations: Implement refactoring processor
2014-03-19 15:31:29 +04:00
Tal Man
baac1b9b0b
Fix to a bug in the intention to move lambda expressions inside parentheses, type arguments were being deleted
2014-03-18 19:25:50 +04:00
Andrey Breslav
f7c5dc179c
Eager resolve does not record class object bounds (which are unsupported anyways)
2014-03-17 21:55:17 +04:00
Andrey Breslav
8be40c29cf
CYCLIC_INHERITANCE_HIERARCHY reworked
...
We do not try to recover too gracefully from a cyclic hierarchy any more:
we simply remove all the edges that belong to a cycle instead of intelligently finding one most convenient edge to cut.
This is done in both lazy and eager resolve to keep tests passing.
2014-03-17 21:55:15 +04:00
Natalia Ukhorskaya
a9d3543967
Gradle: do not add ext prefix for kotlin_version property
...
#KT-4690 Fixed
2014-03-17 16:30:25 +04:00
asedunov
85dbd8cf49
Merge pull request #410 from kuity/unnecessaryParensInWhenToIf
...
Fix KT-4385 "Unnecessary parentheses in "replace when with if"
2014-03-17 13:00:10 +01:00
Lingzhang
877b9f2d99
KT4385 Bug Fix for Unnecessary Parentheses in WhenToIfIntention
2014-03-13 21:26:03 -04:00
Zack Grannan
3862a3b5bc
Added ifThenToSafeAccessIntention
2014-03-12 16:02:56 +04:00
Zack Grannan
1f720c8559
Added safeAccessToIfThen intention
2014-03-12 16:02:55 +04:00
Zack Grannan
1ca4bb0e79
Added ifThenToElvisIntention
2014-03-12 16:02:55 +04:00
Zack Grannan
673369affe
Added elvisToIfThenIntention
2014-03-12 16:02:54 +04:00
Steven Allen
84a8911822
Add replacement intentions for operator functions
...
Add intentions for replacing attribute calls that correspond to
overloadable operators with their respective operators.
This commit includes call replacements for:
* Binary Infix Operators: plus, minus, times, rangeTo, mod, div
* Unary Prefix Operators: plus, minus, not
* Array Index Operator: get
* In Operator: contains
2014-03-10 11:15:11 -04:00
Nikolay Krasko
bbe9be5150
Fix 'No type in binding context for: <some class> from light class generation' exception
...
#KT-4668 Fixed
2014-03-08 02:55:29 +04:00
Alexey Sedunov
5327031300
Update references when moving Kotlin file
...
#KT-1696 Fixed
2014-03-07 19:24:33 +04:00