Commit Graph

13 Commits

Author SHA1 Message Date
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