Alexander Udalov
3b7c743acc
Minor fix in assert<->if+throw intention description
2014-04-17 03:20:14 +04:00
Tal Man
9cff3ba049
Intention to convert assert to an if with throw
2014-04-15 19:26:39 -04:00
Tal Man
b9e248b006
Intention for removing explicit type arguments at function calls
2014-04-14 11:14:09 -04:00
Natalia Ukhorskaya
ed7a156553
Merge remote-tracking branch 'origin/pr/435'
...
Conflicts:
idea/src/META-INF/plugin.xml
idea/tests/org/jetbrains/jet/plugin/codeInsight/JetInspectionTestGenerated.java
2014-04-11 12:11:44 +04:00
Zack Grannan
867925d5a1
Added ifThenToSafeAccessInspection
2014-04-10 15:44:59 -07:00
Zack Grannan
328607a3ab
Added ifThenToElvisInspection
...
Conflicts:
idea/src/META-INF/plugin.xml
2014-04-10 14:43:18 -07:00
Tal Man
cfc16b410e
Intention for adding explicit type arguments at function calls
2014-04-10 16:28:42 +04:00
Tal Man
0feb0d35e6
Intention to simplify boolean expressions that have expressions in them that can be simplified to constants
2014-04-09 14:47:13 -04:00
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
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
a39537f040
Update Kotlin icons
2014-03-31 14:09:49 +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
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
Nikolay Krasko
7b8e6fa462
Add kotlin templates for project create wizard
...
#KT-4689 Fixed
2014-03-19 21:08:29 +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
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
gavinkeusch
2f613638c2
KT-4562 New Intention: Add and Remove braces from control statements that have single line bodies
2014-03-06 23:45:45 +04:00
Tuomas Tynkkynen
8ce0d43118
Add intention for converting an implicit 'it' parameter to an explicitly named parameter
...
Kotlin's function literals have a shortcut for one-argument literals:
the single argument doesn't need to be explicitly named, but can be
referred via the 'it' contextual keyword. Add an intention action for
converting an implicit 'it' parameter to an explicitly named one.
For example, 'array(1, 2, 3).filter { it % 2 == 0 }'
-> 'array(1, 2, 3).filter { x -> x % 2 == 0 }'
2014-03-05 17:31:25 +04:00
Tuomas Tynkkynen
c6d6a32314
Add intention for replacing explicit function literal parameter with 'it'
...
Kotlin's function literals have a shortcut for one-argument literals:
the single argument doesn't need to be explicitly named, but can be
referred via the 'it' contextual keyword.
For example, 'array(1, 2, 3).filter { x -> x % 2 == 0 }'
-> 'array(1, 2, 3).filter { it % 2 == 0 }'
Add an intention action for this transformation.
2014-03-05 17:31:21 +04:00
Tal Man
8cf965db7e
2 intentions for moving lambda functions;
...
moves lambda functions in function calls inside and outside of the
parenthesis: foo({ it }) <-> foo() { it }
2014-03-04 20:07:42 +04:00
Valentin Kipyatkov
a2f6b99862
Convert to block body intention action
2014-03-04 19:13:54 +04:00
Tal Man
89779b5013
2 Intentions for string templates:
...
the first removes curly braces from a simple name variable, ${x} -> $x
and the second does the opposite $x -> ${x}
2014-02-24 21:20:40 +04:00
Pradyoth Kukkapalli
44234c7c0a
New Intention Action: Replace a dot-qualified function call with an infix function call.
2014-02-14 00:18:09 -05:00
Pradyoth Kukkapalli
8b6bd8a184
New Intention Action: Replace an infix function call with a dot qualified method call.
2014-02-09 09:05:19 -08:00
Valentin Kipyatkov
3e4b0d960a
Added missing intention description
2014-01-23 20:27:36 +04:00
Evgeny Gerashchenko
ee3312fb00
Got rid of "namespace" word in plugin code.
2014-01-14 18:06:50 +04:00
Alexey Sedunov
9f5ee13c20
Implement "Merge when" intention
2013-11-20 20:55:58 +04:00
Alexey Sedunov
72f4ae3a13
Translate intention classes to Kotlin and apply refactoring
2013-11-18 18:33:34 +04:00
Alexey Sedunov
e859e02c8b
Implement "if null" / "if not null" live templates
2013-09-25 19:44:24 +04:00
Andrey Breslav
8bf1ab85ab
Intention to replace a shorthand type with a reconstructed one
2013-09-13 22:41:06 +02:00
Andrey Breslav
c02f0a7d04
Intention to convert a member to an extension
2013-08-27 15:03:27 +04:00
Alexey Sedunov
3ab393e460
Implement split/join property declaration
2013-06-13 20:19:34 +04:00
Evgeny Gerashchenko
9b19685ec1
Merge branch master into pr/269
2013-06-10 17:40:37 +04:00
Alexey Sedunov
3f2ff3eb24
Add code transformations for if/when in local property initializers
2013-06-07 17:05:05 +04:00
Alexey Sedunov
a1613d8b81
Implement 'when' transformations (flatten, introduce subject, eliminate subject)
2013-05-15 12:57:54 +04:00
Alexey Sedunov
3c691062ad
Implement if-to-when and when-to-if transformations
2013-05-15 12:57:53 +04:00
Alexey Sedunov
9ae17cfe85
Make intentions inner classes
2013-05-15 12:57:47 +04:00
Alexey Sedunov
64e578297c
Replace fold/unfold intentions with a set of specialized ones
2013-05-15 12:57:41 +04:00
Alexey Sedunov
9e441b0525
Fix intention descriptions and templates
2013-05-15 12:57:40 +04:00
Alexey Sedunov
02e9f174f0
Replace intentions for folding/unfolding operations
2013-05-15 12:57:29 +04:00
Jack Zhou
ec15d5fee4
Create from usage: Renamed all references of 'method' to 'function'.
2013-05-12 23:50:44 -04:00
Jack Zhou
eadb73c9f8
Create from usage: Using UnsupportedOperationException for the file template instead.
2013-05-12 23:50:41 -04:00