Commit Graph

21 Commits

Author SHA1 Message Date
Dmitry Gridin 074829bcea Import: IDE should import class from root package
#KT-21422 Fixed
2019-07-02 11:54:38 +07:00
Dmitry Gridin 403801b0b3 Fix exception when add import
#KT-30524 Fixed
2019-03-21 16:35:43 +07:00
Alexander Podkhalyuzin 5aa7216c13 Rewritten resolving conflicting imports on adding new import with star action (KT-18503)
#KT-18503 Fixed
2019-01-24 11:40:25 +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
Ilya Gorbunov f4822cd757 Fix testData in compiler: add collections and ranges package to fq-names. 2016-01-22 05:54:38 +03:00
Valentin Kipyatkov 115d7a2eae Code style setting for importing Java statics and enums with '*'
#KT-9592 Fixed
2015-10-19 18:40:14 +03:00
Valentin Kipyatkov b62260180f Changed semantics of ImportInsertHelper.importDescriptor() - it does not check if we allowed to import it on reference shortening 2015-10-19 18:40:14 +03:00
Stanislav Erokhin 8efbf4fc32 Fixed testdata -- removed package import 2015-09-18 21:00:20 +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 0f9858bb75 Code style setting to import nested classes 2015-04-13 13:41:43 +03:00
Valentin Kipyatkov 7e9314bd40 More accurate import conflict detection 2015-04-01 17:10:50 +03:00
Valentin Kipyatkov e22f28c061 Fixed a fail in import insertion 2015-04-01 17:10:50 +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 b0d82bef7d Tested KT-2718 Package names that match Kotlin keywords should be escaped properly 2015-03-03 13:41:32 +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 22d805aede Fixed a bug in import insertion algorithm 2015-02-09 12:55:59 +03:00
Valentin Kipyatkov ef8be9560a Import insertion helper is not confused by inaccessible classes + check visibility of imported declarations through PackageViewDescriptor instead of PackageFragmentDescriptor 2015-02-09 12:55:59 +03:00
Valentin Kipyatkov dfe71ef7ae Import insertion algorithm 2015-02-09 12:55:59 +03:00