Alexey Sedunov
5327031300
Update references when moving Kotlin file
...
#KT-1696 Fixed
2014-03-07 19:24:33 +04:00
Alexander Udalov
39cd3b1e13
Add tests that there's no PSI for all kinds of synthetic classes
2014-03-07 03:43:28 +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
Pavel V. Talanov
d05697d3ac
Optimize Imports tests: add test for qualified expression with nested enum
2014-03-06 18:45:37 +04:00
Pavel V. Talanov
809be9b069
Optimize Imports: do not keep imports of unimportable entities
2014-03-06 16:01:06 +04:00
Pavel V. Talanov
c87cc0dde1
Optimize Imports tests: Switch to generated approach
...
Move test and rename test data
Delete unused testdata
Rewrite OptimizeImportOnFlyTest
2014-03-06 16:01:05 +04:00
Pavel V. Talanov
6f2ed9a5a9
Add JetMultiDeclarationReference
...
A reference to component* functions
2014-03-06 16:01:02 +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
Andrey Breslav
f752527e48
Test data fixed after adding a new intention
2014-03-05 12:02:14 +04:00
Pavel V. Talanov
dab6716664
Minor: fix test data for PropertyMetadata completion test
2014-03-04 21:20:01 +04:00
Pavel V. Talanov
80bc7b286a
Test for reference to nested class in library
2014-03-04 21:19:55 +04:00
Pavel V. Talanov
733da8caec
Test checking that no PSI is built for synthetic classes produced by compiler
2014-03-04 21:19:54 +04:00
Pavel V. Talanov
016fa4b817
Add test for decompiled text
2014-03-04 21:19:46 +04:00
Pavel V. Talanov
b6b423935f
Move test data for NavigateTo*Library tests to a more specific folder
2014-03-04 21:19:44 +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
Alexey Sedunov
1edaa877dc
Fix search scope of Kotlin light methods
...
#KT-4638 Fixed
2014-03-04 19:45:35 +04:00
Alexey Sedunov
3729966270
Forbid moving file to another file
...
#KT-4069 Fixed
2014-03-04 19:45:34 +04:00
Alexey Sedunov
e48616e739
Do not insert parentheses into package directives
...
Add tests for "Move Package" refactoring
2014-03-04 19:45:32 +04:00
Valentin Kipyatkov
a2f6b99862
Convert to block body intention action
2014-03-04 19:13:54 +04:00
Nikolay Krasko
1ee64f8186
Test for KT-4610
...
#KT-4610 Fixed
2014-03-03 19:24:27 +04:00
Nikolay Krasko
0dfbe08255
Test for KT-4482
...
#KT-4482 Fixed
2014-03-03 19:24:26 +04:00
Alexander Udalov
f7b6457139
Replace "jet" package name with "kotlin" in testData
2014-03-02 19:55:26 +04:00
Alexander Udalov
11cc7f46f4
Remove "Iterator.iterator()" intrinsic, add stdlib function
2014-03-02 19:55:24 +04:00
Alexander Udalov
9d9d73268a
Move and rename jet.runtime.SharedVar -> kotlin.jvm.internal.Ref
2014-03-02 19:54:57 +04:00
Alexander Udalov
b2d074c5cc
Quickfix to add 'override' to equals, hashCode, toString in project
...
To help users migrate to the newest Kotlin version in two clicks
2014-03-02 19:54:55 +04:00
Alexander Udalov
3dcd85bdb4
Add toString() to Any, fix all tests
...
#KT-4517 Fixed
2014-03-02 19:54:49 +04:00
Alexander Udalov
b8ec50f38c
Handle fake overrides of members of Any in BuiltInsReferenceResolver
2014-03-02 19:54:48 +04:00
Alexander Udalov
ec30d52978
Delete Hashable, pull up its members to Any
...
Extensions on nullable types remain in Library.kt
#KT-1741 Obsolete
#KT-2805 Obsolete
#KT-1365 Fixed
#KT-4517 In Progress
2014-03-02 19:54:08 +04:00
Alexander Udalov
9537b68724
Load 'equals' parameter from Java code with the name 'other'
...
This fixes a lot of warnings on mixed Kotlin+Java code about different names
for the same parameter because we always loaded 'equals' parameter with the
name 'p0', whereas in Kotlin we usually name it 'other'
2014-02-28 21:48:29 +04:00
Nikolay Krasko
3228630ec5
Update to Idea EAP 134.1342
2014-02-28 15:48:08 +04:00
Alexey Sedunov
0520306b94
Add tests for Java "Move File" refactoring
2014-02-27 17:00:39 +04:00
Alexey Sedunov
33cbc099ab
Add tests for Java "Move Inner Class/To Inner Class" refactoring
2014-02-27 17:00:37 +04:00
Alexey Sedunov
7d3b21130a
Add tests for Java "Move class/package" refactoring
...
#KT-3626 Fixed
2014-02-27 17:00:35 +04:00
Alexey Sedunov
5ba49fbada
Avoid conflicts when moving members wiith package-local visibility
...
Add tests for Java "Move members" refactoring
#KT-4459 Fixed
2014-02-27 17:00:33 +04:00
Alexey Sedunov
d2e6aa2aa5
Allow to shorten class member references
2014-02-27 17:00:24 +04:00
Tuomas Tynkkynen
7a2321460d
Prevent expression selector from selecting just a label
...
Previously, extract variable could act on e.g. 'break@outerLoop' and
extract the label, leading into nonsensical 'val x = @outerLoop'.
Prevent JetRefactoringUtil.selectExpression from returning label
expressions to fix this.
#KT-4515 Fixed
2014-02-24 22:40:14 +04:00
Tuomas Tynkkynen
998d2c5ec8
Add tests for JetRefactoringUtil.selectExpression
...
Add tests for JetRefactoringUtil.selectExpression, which is invoked by
e.g. extract variable when some text is selected.
Test cases under idea/testData/expressionSelection/ should contain
Kotlin files with the usual <selection> tags, with the expected result
of selectExpression in the last comment of the file.
2014-02-24 22:40:05 +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
Zalim Bashorov
559ea28a6b
Dropped extra caret markers and introduced separate marker for referencing from context.
2014-02-24 20:27:20 +04:00
Nikolay Krasko
62e8883138
Test for KT-365 Support renaming packages
...
#KT-365 Obsolete
2014-02-21 22:12:53 +04:00
Nikolay Krasko
7e4bb1d467
Test that lazy resolve is able to do propagation in Kotlin-Java-Kotlin hierarchy
...
Patch by Evgeny Gerashchenko
2014-02-20 16:31:25 +04:00
Nikolay Krasko
f14ff9405d
Force resolve descriptor type
2014-02-20 16:31:24 +04:00
Nikolay Krasko
ac4fe93774
Add ability to filter out some particular classes from generator
2014-02-20 16:17:38 +04:00
Nikolay Krasko
558fca5eab
Check reference to Java root class from library
2014-02-20 16:08:04 +04:00
Nikolay Krasko
9a8a8364dd
KT-4344 "Overridden method parameters are not annotated" warnings from Java
...
#KT-4344 Fixed
2014-02-18 14:49:34 +04:00
Nikolay Krasko
f14f2c19a8
Fix goto class action in Idea 13.1
2014-02-18 14:39:19 +04:00
max-kammerer
1c7bb85193
Merge pull request #372 from pk382/replace-dot-qualified-call-intention
...
New Intention Action: Replace a dot-qualified function call with an infix function call.
2014-02-17 13:20:02 +03:00
Natalia Ukhorskaya
9f3b73986a
Update to IDEA 13.1 (134.1007)
2014-02-17 10:45:48 +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