Commit Graph

24 Commits

Author SHA1 Message Date
Toshiaki Kameyama a96cafe066 Extract property: do not suggest duplicate property name
#KT-36504 Fixed
2020-03-25 22:19:26 +01:00
Toshiaki Kameyama 4b5f3b7a94 Extract property: do not add unnecessary extension receiver
#KT-24615 Fixed
2020-02-11 15:52:47 +03:00
Mikhail Glukhikh 7118a4bf80 Fix KNPE in "introduce variable", add some name conflict introduce tests
So #KT-21530 Fixed
2017-12-05 15:29:45 +03:00
Alexey Sedunov 00ad37b769 Introduce Property: Fix extraction of expressions referring to primary constructor parameters
#KT-12294 Fixed
(cherry picked from commit 78212a4)
2016-07-20 15:30:10 +03:00
Mikhail Glukhikh 5def6eae5b Correct handling of erroneous code during code extraction 2016-02-16 18:50:24 +03:00
Pavel V. Talanov b9ce9f8576 Script, IDE: tweak extract based refactorings to behave better in scripts
Fix not being able to invoke introduce variable for top level script expression
Prohibit introduce parameter and introduce property for scripts on top level
Basic test for introduce function (produces red code atm)
2015-12-02 15:14:25 +03:00
Alexey Sedunov 741489f4a5 Extract Function/Introduce Property: Support extraction of string template fragments 2015-11-24 20:40:18 +03:00
Alexey Sedunov 520e90acf1 Minor: Use kotlin.lazy instead of kotlin.Delegates.lazy in KtPsiFactory.CallableBuilder 2015-11-02 15:15:44 +03:00
Denis Zharkov f0833d626a Fix intentions tests after types enhancement
Types became more accurate
2015-07-09 16:36:44 +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
Valentin Kipyatkov c4b881c458 Fixed test data 2015-05-17 12:32:11 +03:00
Alexey Sedunov 02006126f5 Introduce Property: Forbid extension properties with initializers and lazy
ones
2015-05-14 15:47:51 +03:00
Alexey Sedunov b69b66feab Extraction Engine: Do not extract type parameter if it's resolved in the target scope
#KT-7246 Fixed
2015-05-14 15:47:50 +03:00
Dmitry Jemerov 625096466e IDE testdata: s/trait/interface 2015-05-13 16:13:13 +02:00
Dmitry Jemerov f93eeeb563 fix tests by adding missing 'init' keywords to testdata 2015-04-29 14:07:05 +02:00
Alexey Sedunov 9cb42944d1 Extraction Engine: Generate function/property accessor with expression body (whenever applicable)
#KT-6405 Fixed
2015-03-13 23:16:57 +03:00
Alexey Sedunov cab301e8e2 Introduce Property: Add tests for default values 2015-03-06 14:37:21 +03:00
Alexey Sedunov 1202e624ce Extraction Engine: Assume internal visibility for trait members 2015-03-06 14:37:20 +03:00
Alexey Sedunov 652253b485 Introduce Property: Forbid lazy properties/properties with initializers in traits 2015-03-06 14:37:18 +03:00
Alexey Sedunov 79b64c6f9f Introduce Property: Add test for name clash in the presence of anonymous initializer (was failing before ElementResolver fix) 2015-03-06 14:37:17 +03:00
Alexey Sedunov 5ae9bb600c Introduce Property: Place property before its usages 2015-03-04 23:06:07 +03:00
Alexey Sedunov 6ae989e330 Introduce Property: Duplicate search & replace 2015-03-04 23:06:05 +03:00
Alexey Sedunov 5382504306 Extraction Engine: Support lazy properties and properties with initializer 2015-03-04 23:06:03 +03:00
Alexey Sedunov 03fada71d7 Introduce Property: Initial support (properties with getter) 2015-03-04 23:06:02 +03:00