.getLocationInParent();
if (propertyDescriptor == IfStatement.TRUE_STATEMENT_PROPERTY
|| propertyDescriptor == IfStatement.FALSE_STATEMENT_PROPERTY) {
rewriteIfBlocks(node, editGroup, shouldBeCurly);
} else if (propertyDescriptor == WhileStatement.BODY_PROPERTY) {
Symbol symbol = SymbolsProvider.getSymbol(
SymbolsProvider.END_WHILE_ID, scanner.getPHPVersion());
rewriteBlock(node, editGroup, shouldBeCurly, "endwhile", symbol); //$NON-NLS-1$
} else if (propertyDescriptor == ForStatement.BODY_PROPERTY) {
Symbol symbol = SymbolsProvider.getSymbol(
SymbolsProvider.END_FOR_ID, scanner.getPHPVersion());
rewriteBlock(node, editGroup, shouldBeCurly, "endfor", symbol); //$NON-NLS-1$
} else if (propertyDescriptor == ForEachStatement.STATEMENT_PROPERTY) {
Symbol symbol = SymbolsProvider
.getSymbol(SymbolsProvider.END_FOREACH_ID,
scanner.getPHPVersion());
rewriteBlock(node, editGroup, shouldBeCurly, "endforeach", //$NON-NLS-1$
symbol);
} else if (propertyDescriptor == SwitchStatement.BODY_PROPERTY) {
Symbol symbol = SymbolsProvider.getSymbol(
SymbolsProvider.END_SWITCH_ID, scanner.getPHPVersion());
rewriteBlock(node, editGroup, shouldBeCurly, "endswitch", //$NON-NLS-1$
symbol);
}
}