Commit Graph

66 Commits

Author SHA1 Message Date
Alexey Sedunov 542f8d9fd2 Move: Support quoted package names
#KT-12411 Fixed
(cherry picked from commit 95239e5)
2016-06-28 15:07:30 +03:00
Kirill Rakhman 5c68681f96 Formatter: handle spaces before value arguments list (KT-12634)
#KT-12634 Fixed
2016-06-07 19:11:28 +03:00
Alexey Sedunov fe8a0ec2bc Move: Additional test for KT-10553 (private top-level property with default accessors) 2016-02-04 12:26:17 +03:00
Alexey Sedunov a05a16c1e6 Move: Fix name lengthening when moving from default package
#KT-10696 Fixed
2016-02-01 13:18:33 +03:00
Alexey Sedunov 218dd41a08 Move: More accurate visibility analysis
#KT-10553 Fixed
2016-01-26 18:19:20 +03:00
Alexey Sedunov d662b02e95 Move: Nested classes support
#KT-9027 In Progress
2016-01-26 18:19:09 +03:00
Ilya Gorbunov 25c4453dc5 Cleanup deprecated symbol usages in testData 2016-01-22 05:54:38 +03:00
Dmitry Jemerov 8fdd8179b9 Workaround for KtEnumEntrySuperclassReferenceExpression which implements KtSimpleNameExpression in a weird way and can break Move refactoring (EA-75268 - assert: TextRange.<init>) 2016-01-13 20:28:39 +01:00
Alexey Sedunov 44bc937499 Shorten References: Fix removal of explicit companion references in the position of callee expression
#KT-10102
2015-12-02 13:54:01 +03:00
Alexey Sedunov ca87e7933f Move: Drop Java on-demand static imports of facade class members when original facade is eliminated due to Move refactoring
#KT-9624 Fixed
2015-10-24 19:50:48 +03:00
Valentin Kipyatkov 255373162d KT-9666 Inner classes do not appear in type completion
#KT-9666
2015-10-22 18:48:15 +03:00
Dmitry Petrov dda508234f Drop package facades:
- update tests
- cleanup JetTyMapper after rebase
2015-10-19 16:03:22 +03:00
Dmitry Petrov a76fb328cb Dropping package facades:
- fix testData for 'move' tests
(NB regression in **/onDemandStaticImport.java, see: https://youtrack.jetbrains.com/issue/KT-9624)
2015-10-19 16:03:20 +03:00
Pavel V. Talanov e578caaed2 Fix test data for move test
Tests do not pass after this change
(cherry picked from commit d4437d7)
2015-10-19 16:03:18 +03:00
Michael Bogdanov c63d221da3 Skip private members in facades 2015-10-18 17:53:26 +03:00
Pavel V. Talanov c28107034a Idea tests: INSTANCE$ -> INSTANCE 2015-10-09 16:25:17 +03:00
Alexey Sedunov 605802847a Move Declarations: Fix processing of self-references
#KT-5847 Fixed
2015-10-01 17:35:23 +03:00
Stanislav Erokhin 8a0f175135 Minor. Suppressed test for KT-9204. 2015-09-18 21:00:23 +03:00
Stanislav Erokhin 8efbf4fc32 Fixed testdata -- removed package import 2015-09-18 21:00:20 +03:00
Alexey Sedunov b2eb53e4b2 Move/Change Package: Package name validation
#EA-70631 Fixed
2015-09-03 22:06:06 +03:00
Alexey Sedunov 46fe7dc7a1 Move Directory: Support Kotlin files
#KT-8350 Fixed
 #KT-8351 Fixed
2015-08-17 20:28:17 +03:00
Alexey Sedunov 5d89097870 Move: Fix processing of references with qualifier receivers
#KT-8098 Fixed
2015-06-27 13:57:59 +03:00
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