Alexey Sedunov
5f92c22df3
Smart Selector: Do not suggest expressions contained in the super-expression
...
#KT-4824 Fixed
2014-04-18 14:38:17 +04:00
Nikolay Krasko
962044f887
Use render with short types names in completion lookup elements
2014-04-18 13:18:18 +04:00
Alexander Udalov
a5cc894ecd
Fix "name in constraint is not a type parameter" diagnostic message
...
TO_STRING renderer was used for PSI elements, so things like "CLASS", "FUN"
were displayed in the message
2014-04-17 19:51:32 +04:00
Alexander Udalov
72dfca1698
Fix "cannot override invisible member" diagnostic message
...
Fix "cannot has", delete "in class ..." as it's already present in the message
(function ... defined in class ...)
2014-04-17 19:51:32 +04:00
Alexander Udalov
146498ec32
Sort out renderers for diagnostics
...
- change NAMED to be Renderer<Named> and render Named's name. It was used in
multiple places with arbitrary arguments, not only Named: change renderers in
those places to TO_STRING
- add STRING, which is Renderer<String> and renders string itself. Change all
places where strings were used with either TO_STRING or NAMED to STRING
- change NOT_AN_ANNOTATION_CLASS diagnostic to be reported on descriptor, not
any string
- change "unused variable/parameter" diagnostics to be reported on
VariableDescriptor, not Object
2014-04-17 19:51:31 +04:00
Alexander Udalov
adec89f74d
Don't print descriptors' toString() in diagnostic messages
...
Use DescriptorRenderer.TEXT instead, it doesn't print the debug information
2014-04-17 19:51:29 +04:00
Alexander Udalov
5be2a4945b
Render FQ name of default package as "root package" in OverloadResolver
2014-04-17 19:51:29 +04:00
Alexander Udalov
4f9f5d231b
Fix incorrect diagnostic message for CONFLICTING_OVERLOADS
...
- the member and the container were mixed up
- don't output "defined in" part of the message, because we tell later where
it's already defined in
- fix an instability of the diagnostic order in OverloadResolver by using
LinkedHashSet
2014-04-17 19:51:29 +04:00
Alexey Sedunov
0d90dcf010
Extract Function: Add test data
2014-04-17 19:01:20 +04:00
Alexey Sedunov
4dec0508a6
ExtractionTest: Change test data layout
2014-04-17 19:01:17 +04:00
Alexey Sedunov
cceaa3b66f
Fix bug in ShortenReferences visitor (do not skip PSI elements after modication)
2014-04-17 19:01:00 +04:00
Alexey Sedunov
3952a121fb
Pseudocode: Track PSI elements which correspond to jump instructions
2014-04-17 19:00:56 +04:00
Valentin Kipyatkov
df299655a7
Smart completion: one more working test and one more test to fix later
2014-04-17 14:39:31 +04:00
Valentin Kipyatkov
f682dc36e0
Smart completion: lambda items
2014-04-17 14:39:30 +04:00
Valentin Kipyatkov
1ba4c656a5
Smart completion: bugfix - no function reference after dot
2014-04-17 14:39:30 +04:00
Valentin Kipyatkov
5bff98c164
Smart completion: minor code refactoring
2014-04-17 14:39:30 +04:00
Valentin Kipyatkov
6b1ecc3fb0
Smart completion: "::functionName" items when value of function type is expected
2014-04-17 14:39:29 +04:00
Valentin Kipyatkov
7d5b86e000
Smart completion: no duplicates among static members
2014-04-17 14:39:29 +04:00
Valentin Kipyatkov
4b5d175aa7
Smart completion: no more duplicates among type instantiation items
2014-04-17 14:39:29 +04:00
Valentin Kipyatkov
5d8c5cfa31
Smart completion inserts closing parenthesis as well
2014-04-17 14:39:29 +04:00
Valentin Kipyatkov
f984dbc5b6
Smart completion to insert comma when in argument list
2014-04-17 14:39:28 +04:00
Tal Man
9cff3ba049
Intention to convert assert to an if with throw
2014-04-15 19:26:39 -04:00
Alexey Sedunov
db38f420f3
Move Refactoring: Do not replace references to local declaration with qualified names. Update and fix test data
...
#KT-4851 Fixed
2014-04-15 16:19:28 +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
Natalia Ukhorskaya
f8db722011
Merge pull request #392 from wutalman/simplify_booleans
...
KT-4569: Intention to simplify boolean expressions with constants #KT-4569 Fixed
2014-04-10 11:00:16 +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
gavinkeusch
216ea4940d
KT-4794: Added functionality to KT-4574: Split If. Intention is now offered inside IF keyword
2014-04-08 11:29:30 -07:00
Alexey Sedunov
f5fb2ea0ab
Reuse intention test data in inspection tests
2014-04-08 15:34:51 +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
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