Alexey Sedunov
480982b690
Shorten References: Wrap elements to shorten in smart pointers
...
#KT-17526 Fixed
2017-04-24 20:52:11 +03:00
Alexey Sedunov
aad11ff0f4
Shorten References: Skip companion receivers on callable references
...
This is temporary fix due to KT-13934 which prevents resolution
of references like X::foo where foo is a member or extension
of X companion object
2017-03-26 12:56:19 +03:00
Simon Ogorodnik
2490318f93
KT-16076 Completion inserts FQN kotlin.text.String
...
KT-14831 Don't add import statement and FQN on converting lambda to reference if typealias is used
KT-16088 Completion wrongly inserts FQN for `kotlin` package
#KT-16076 fixed
#KT-14831 fixed
#KT-16088 fixed
2017-02-13 16:48:14 +03:00
Ilya Gorbunov
a62cda8365
Replace types that are imported by default via typealiases such as java.util.ArrayList with something else as it conflicts now with kotlin.collections.ArrayList and has to imported explicitly.
2016-11-16 18:47:42 +03:00
Valentin Kipyatkov
9b55ad82a0
KT-14370 Completion inserts fully qualified name for any Java interface with single abstract method (SAM-interface)
...
#KT-14370 Fixed
2016-11-08 19:14:41 +03:00
Valentin Kipyatkov
73dc5fefcb
KT-12077 Code completion inserts FQN for annotations with use-site target inside primary constructor
...
KT-13009 Kotlin: annotation auto-import is broken in multiple ways
#KT-12077 Fixed
#KT-13009 Fixed
2016-10-11 17:26:52 +03:00
Alexey Sedunov
cf28dd04c8
Shorten References: Compare resolved calls when shortening receiver of qualified call expression
...
#KT-13660 Fixed
2016-09-16 13:13:30 +03:00
Dmitry Petrov
0033cf85c4
Shorten references tests for typealias.
2016-07-04 08:30:18 +03:00
Valentin Kipyatkov
1535e8ad90
KT-11955 Copy/Paste inserts FQ-name
...
#KT-11955 Fixed
2016-04-20 14:30:54 +03:00
Alexander Udalov
e941ba761a
Minor, fix case in test data file name
2016-04-18 17:26:58 +03:00
Valentin Kipyatkov
b32859cf68
KT-11633 Kotlin code editor applies wrong indentation after completing a statement in data class
...
#KT-11633 Fixed
2016-04-18 17:15:52 +03:00
Ilya Gorbunov
f4822cd757
Fix testData in compiler: add collections and ranges package to fq-names.
2016-01-22 05:54:38 +03: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
Dmitry Petrov
9856af48ca
Drop createQualifier: testData update
2015-11-18 14:35:53 +03:00
Stanislav Erokhin
7d7d37719b
Forbidden old invokeExtension convention.
2015-10-17 14:45:53 +03:00
Stanislav Erokhin
d7a14075f1
Removed ImportPackage UI settings
2015-09-24 13:53:56 +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
Valentin Kipyatkov
edcb330281
Corrected/removed tests related to on-the-fly import optimization
2015-07-22 21:16:13 +03:00
Pavel V. Talanov
07d35d305e
Create import list psi element even if no directives are present
...
Fix a problem where deleting last import directive via "optimize imports" could lead to incorrect psi structure resulting in CCE, see EA-64291
New imports are inserted at the head (after package directive if present) of the file (before any comments) if no imports were present
Add test for inserting import to file where a first statement is a comment
Drop code dealing with non-existing import list in ImportInsertHelperImpl
AbstractQuickFixTest: check for unexpected actions before changes to the file are made as it relies on the first line having specific format
2015-06-08 20:51:04 +03:00
Dmitry Jemerov
625096466e
IDE testdata: s/trait/interface
2015-05-13 16:13:13 +02:00
Valentin Kipyatkov
066a7c3002
Code style setting for packages to always use star imports and UI for it
2015-04-13 13:41:43 +03:00
Valentin Kipyatkov
a8d737bf87
One more test for import nested classes setting
2015-04-13 13:41:43 +03:00
Valentin Kipyatkov
04b2bdcc79
Added test for "import packages" code style setting
2015-04-13 13:41:43 +03:00
Stanislav Erokhin
3de0dff575
Migrate testdata to new lambda syntax
2015-04-07 13:08:53 +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
Valentin Kipyatkov
5b4afa140b
Fixed bug in reference shortening related on on the fly import optimization
2015-03-03 13:41:32 +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
Valentin Kipyatkov
a137503ee9
More sophisticated import setting supported: *-import when more than N names used (default set to 5)
2015-02-19 11:07:03 +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
546836d5dd
Fixed bug with importing some of SAM-constructors and factory functions
...
#KT-3449 Fixed
2015-02-12 18:18:01 +03:00
Valentin Kipyatkov
4fff1f44bb
Fixed bug in import insertion: it did not work with descriptors taken before modifications
2015-02-12 17:34:50 +03:00
Alexey Sedunov
e68481557e
Shorten References: Support 'this' simplification
2015-02-11 14:40:22 +03:00
Valentin Kipyatkov
952c64f947
Rewritten shortening references algorithm to work correctly with new smart import insertion
2015-02-09 12:56:01 +03:00
Valentin Kipyatkov
3bc2f89a1b
Corrected test data after changes in import insertion + added when more test which fails with the current reference shortening algorithm
2015-02-09 12:56:00 +03:00
Valentin Kipyatkov
dfe71ef7ae
Import insertion algorithm
2015-02-09 12:55:59 +03:00
Valentin Kipyatkov
1f17d7adcd
Changed language sematics: imports with '*' do not import packages anymore
2014-12-26 15:45:01 +03:00
Valentin Kipyatkov
503a8deef1
Fixed bug in reference shortening + fixed test data for completion tests
2014-10-14 16:08:16 +04:00
Alexey Sedunov
5be7eb8a5c
Shorten References: Do not optimize imports until shortening is finished
...
#KT-5227 Fixed
2014-06-23 19:32:27 +04:00
Alexey Sedunov
53c49b6333
Shorten References: Do not shorten qualified expression if receiver values are changed
...
#KT-5180 Fixed
2014-06-23 19:32:26 +04:00
Valentin Kipyatkov
2ddcae68e8
Fixed KT-5077 Code completion inserts FQ names inside lambda
...
#KT-5077 Fixed
2014-05-23 19:16:23 +04:00
Valentin Kipyatkov
c56b5bfd61
Added 2 tests
2014-05-20 18:56:48 +04:00
Valentin Kipyatkov
5ce3df4845
KT-5025 Unnecessary qualifier inserted for class
...
#KT-5025 Fixed
2014-05-20 18:56:48 +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
Alexander Udalov
f7b6457139
Replace "jet" package name with "kotlin" in testData
2014-03-02 19:55:26 +04:00
Alexey Sedunov
d2e6aa2aa5
Allow to shorten class member references
2014-02-27 17:00:24 +04:00
Pavel V. Talanov
4638806d11
Shorten references: Do not lookup packages when searching for conflicting declarations
...
Minor: use JetTreeVisitor
2014-02-04 17:09:37 +04:00
Valentin Kipyatkov
7aed55fa1d
Reference shortening: performance optimization
2014-01-13 19:50:35 +04:00