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
Valentin Kipyatkov
ee62d318ee
Fixed bug in reference shortening
2013-12-25 20:01:07 +04:00
Valentin Kipyatkov
b71020efc5
Refactored reference shortening utility (added expression references shortening and rewritten to Kotlin)
2013-12-25 18:40:16 +04:00