use of com.goide.psi.GoElseStatement in project go-lang-idea-plugin by go-lang-plugin-org.
the class GoElseUnwrapper method doUnwrap.
@Override
protected void doUnwrap(PsiElement element, Context context) throws IncorrectOperationException {
GoElseStatement elseStatement = (GoElseStatement) element;
GoIfStatement elseIf = elseStatement.getIfStatement();
context.extractNewLine(elseStatement);
if (elseIf != null) {
context.extractElement(elseIf, elseStatement);
}
context.extractFromBlock(elseStatement.getBlock(), elseStatement);
context.delete(elseStatement);
}
Aggregations