Convert Receiver to Parameter: Place new parameter at the start
This affects editor template only since Change Signature already puts converted receiver at the parameter list start by default #KT-15543 Fixed
This commit is contained in:
@@ -60,6 +60,11 @@ public class KtParameterList extends KtElementImplStub<KotlinPlaceHolderStub<KtP
|
||||
return EditCommaSeparatedListHelper.INSTANCE.addItemBefore(this, getParameters(), parameter, anchor);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public KtParameter addParameterAfter(@NotNull KtParameter parameter, @Nullable KtParameter anchor) {
|
||||
return EditCommaSeparatedListHelper.INSTANCE.addItemAfter(this, getParameters(), parameter, anchor);
|
||||
}
|
||||
|
||||
public void removeParameter(@NotNull KtParameter parameter) {
|
||||
EditCommaSeparatedListHelper.INSTANCE.removeItem(parameter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user