Alexander Udalov
fae2d0231c
Fix test data, restore incorrectly deleted import
...
It was mistakenly deleted in 738a84e and 48b18f1
2015-05-27 01:44:18 +03:00
Alexander Udalov
48b18f18d3
Restore explicit imports of Kotlin function types in Java
...
This is a follow-up to 738a84e259 and
d4965a4f3e . Optimize imports in all files
affected in those commits, drop temporary _.kt
2015-05-26 18:46:27 +03:00
Alexander Udalov
4141e0a8df
Introduce fictitious numbered Function class descriptors
2015-05-26 15:04:54 +03:00
Alexander Udalov
738a84e259
Temporary hack to migrate functions to package kotlin.jvm.functions
...
Add a file in package 'kotlin.jvm.functions' to the project and replace
explicit imports of functions 'kotlin.Function{n}' to two imports 'kotlin.*'
and 'kotlin.jvm.functions.*', so that the codebase can be compiled both by the
old and by the new compiler
2015-05-26 15:04:34 +03:00
Alexey Sedunov
7bc5ec04c7
Move: Suggest deleting file when all declarations are moved
2015-05-18 21:18:53 +03:00
Alexey Sedunov
da6b8b75ea
Move File/Change Package: Change package directive prior to processing of internal usages (otherwise some necessary imports are not added)
2015-05-18 21:18:51 +03:00
Alexey Sedunov
38ae9349fc
Move: Move entire file if all declarations are selected ("Move to Package" mode)
2015-05-18 21:18:48 +03:00
Alexey Sedunov
d88d7a0ac5
Move: Do not use existing file name when moving its top-level declaration(s)
...
#KT-7697 Fixed
2015-05-18 21:18:44 +03:00
Dmitry Jemerov
b1c4a5670a
provide element type name for multi-declaration entries; enable in-place rename for those; show local properties as "variable"
...
#KT-7627 Fixed
2015-05-12 16:18:03 +02:00
Alexey Sedunov
8879166f53
Move: Add intention to change file package without moving it physically
2015-05-01 17:16:57 +03:00
Evgeny Gerashchenko
83f2a08708
Added test with moving file used in Java to other package.
2015-03-31 18:14:00 +03:00
Evgeny Gerashchenko
a4d2d6506c
Removing import of removed package facade.
2015-03-31 18:13:21 +03:00
Evgeny Gerashchenko
f789933683
Fixed updating Java references on moved Kotlin top-level callables.
2015-03-31 18:13:20 +03:00
Pavel V. Talanov
06916d98c6
default -> companion: replace all mentions of default and default object
2015-03-17 15:47:39 +03:00
Pavel V. Talanov
59f192ef90
Replace 'class object' with 'default object' in renderers and test data
...
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Pavel V. Talanov
989f07962b
Write to trace in case class qualifier is a short reference to default object
...
This allows to fix some cases when there is a difference between explicit and short reference to default object
Fix shorten reference, optimize imports and import insert helper for default objects
ShortenReferences always transforms default object references to shorter form for now
Fix DescriptorUtils#getFqName() for default objects (affects test data mostly)
Fix DescriptorUtils#getImportableDescriptor()
2015-03-03 13:04:30 +03:00
Alexey Sedunov
ecd9ee45c8
Move: Do not process 'super' references
...
#KT-6769 Fixed
2015-02-20 17:28:33 +03:00
Valentin Kipyatkov
0a363fc371
Import is placed in some specific order on adding
2015-02-19 11:07:02 +03:00
Valentin Kipyatkov
20cf100714
Shorten references inserts imports for global functions and properties too
2015-02-19 11:07:01 +03:00
Valentin Kipyatkov
3710d4105c
Do not shorten too much
2015-02-12 18:18:06 +03:00
Nikolay Krasko
31de60738a
Temporary allow import
2014-12-31 21:56:20 +03:00
Alexey Sedunov
bbf951ff03
Move: Fix reference binding for the case of default target package
...
#KT-6457 Fixed
2014-12-15 20:43:00 +03:00
Alexey Sedunov
bbbd46d9d6
Move: Do not add package directive if target package is empty
...
#KT-6455 Fixed
2014-12-15 20:42:59 +03:00
Alexey Sedunov
27977cda23
Move: Test data addendum
2014-10-22 21:07:10 +04:00
Alexey Sedunov
925177f3d8
Move: Fix rebinding of references to singleton members and Java statics
...
#KT-6082 Fixed
2014-10-22 18:43:14 +04:00
Alexey Sedunov
bc7ae4186b
Move: Do not rebind references to the declaration under move
2014-10-22 18:42:59 +04:00
Alexey Sedunov
ff082be524
File Move: Fix update of extension references. Reuse MoveKotlinTopLevelDeclarationsProcessor
2014-10-14 01:59:53 +04:00
Alexey Sedunov
74242a5fd9
Move: Updated test data (functions/properties are not imported by default)
2014-10-06 14:23:50 +04:00
Alexey Sedunov
735fd6c626
Move: Fix detection of imported declarations and processing of extension usages
...
#KT-5787 Fixed
#KT-4959 Fixed
2014-09-23 12:50:46 +04:00
Alexey Sedunov
9b7bccce22
Move: Move refactoring should correct constructor call when moving inner class
...
#KT-4676 Fixed
2014-09-10 16:44:51 +04:00
Alexey Sedunov
17dd5b9d05
Move: Do not update Kotlin usages of extension members, add imports instead
...
#KT-5378 Fixed
2014-08-05 18:14:39 +04:00
Alexander Udalov
de0f751207
Replace object$ -> OBJECT$, instance$ -> INSTANCE$ in the project
2014-07-26 00:21:05 +04:00
Alexey Sedunov
ab5e0c8c9c
Move: Retain imports when moving top-level declaration
...
#KT-5049 Fixed
2014-05-28 21:06:00 +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
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
Alexey Sedunov
abcba89ad3
Move top-level declarations: Implement refactoring processor
2014-03-19 15:31:29 +04:00
Alexey Sedunov
5327031300
Update references when moving Kotlin file
...
#KT-1696 Fixed
2014-03-07 19:24:33 +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
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