[SR-7292] Swift local refactoring: adding field-wise initializers automatically #49840
Labels
feature
A feature request or implementation
good first issue
Good for newcomers
memberwise init
Feature: Memberwise structure initializers
refactoring
Area → source tooling: refactoring
source tooling
Area: IDE support, SourceKit, and other source tooling
Additional Detail from JIRA
md5: 717c1a5493eaa3054e6b1fecb975394a
Issue Description:
Some initializers' implementation is quite expectable, e.g. a field-wise naive initializer. Thus, we can implement an automated refactoring to help developers adding such initializer, e.g.
An available refactoring "add field-wise init" shows up when the user right clicks the declared name
Animal
. After applying the local refactoring, the code snippet transforms to:The text was updated successfully, but these errors were encountered: