c.setIndentationDecrement().before(keyword);
c.setIndentationDecrement().before(keyword);
@Override public void accept(final Pair<Keyword, Keyword> it) { FormattingConfig.LinewrapLocator _setLinewrap = c.setLinewrap(1); Keyword _first = it.getFirst(); _setLinewrap.after(_first); FormattingConfig.LinewrapLocator _setLinewrap_1 = c.setLinewrap(1); Keyword _second = it.getSecond(); _setLinewrap_1.before(_second); FormattingConfig.LinewrapLocator _setLinewrap_2 = c.setLinewrap(1); Keyword _second_1 = it.getSecond(); _setLinewrap_2.after(_second_1); FormattingConfig.IndentationLocatorStart _setIndentationIncrement = c.setIndentationIncrement(); Keyword _first_1 = it.getFirst(); _setIndentationIncrement.after(_first_1); FormattingConfig.IndentationLocatorEnd _setIndentationDecrement = c.setIndentationDecrement(); Keyword _second_2 = it.getSecond(); _setIndentationDecrement.before(_second_2); } };
@Override public void accept(final Pair<Keyword, Keyword> it) { FormattingConfig.LinewrapLocator _setLinewrap = c.setLinewrap(1); Keyword _first = it.getFirst(); _setLinewrap.after(_first); FormattingConfig.LinewrapLocator _setLinewrap_1 = c.setLinewrap(1); Keyword _second = it.getSecond(); _setLinewrap_1.before(_second); FormattingConfig.LinewrapLocator _setLinewrap_2 = c.setLinewrap(1); Keyword _second_1 = it.getSecond(); _setLinewrap_2.after(_second_1); FormattingConfig.IndentationLocatorStart _setIndentationIncrement = c.setIndentationIncrement(); Keyword _first_1 = it.getFirst(); _setIndentationIncrement.after(_first_1); FormattingConfig.IndentationLocatorEnd _setIndentationDecrement = c.setIndentationDecrement(); Keyword _second_2 = it.getSecond(); _setIndentationDecrement.before(_second_2); } };
@Override public void accept(final Pair<Keyword, Keyword> it) { FormattingConfig.LinewrapLocator _setLinewrap = c.setLinewrap(1); Keyword _first = it.getFirst(); _setLinewrap.after(_first); FormattingConfig.LinewrapLocator _setLinewrap_1 = c.setLinewrap(1); Keyword _second = it.getSecond(); _setLinewrap_1.before(_second); FormattingConfig.LinewrapLocator _setLinewrap_2 = c.setLinewrap(2); Keyword _second_1 = it.getSecond(); _setLinewrap_2.after(_second_1); FormattingConfig.IndentationLocatorStart _setIndentationIncrement = c.setIndentationIncrement(); Keyword _first_1 = it.getFirst(); _setIndentationIncrement.after(_first_1); FormattingConfig.IndentationLocatorEnd _setIndentationDecrement = c.setIndentationDecrement(); Keyword _second_2 = it.getSecond(); _setIndentationDecrement.before(_second_2); } };
public IndentationLocatorEnd(AbstractElement ele) { super(); before(ele); }
public void configureXSwitchExpression(FormattingConfig c, XSwitchExpressionElements ele) { c.setNoSpace().around(ele.getColonKeyword_2_1_0_0_1()); c.setNoSpace().around(ele.getColonKeyword_2_0_0_0_2()); c.setNoLinewrap().before(ele.getLeftCurlyBracketKeyword_3()); c.setLinewrap().after(ele.getLeftCurlyBracketKeyword_3()); c.setIndentationIncrement().after(ele.getLeftCurlyBracketKeyword_3()); c.setNoSpace().before(ele.getColonKeyword_5_1()); c.setIndentationIncrement().before(ele.getDefaultAssignment_5_2()); c.setLinewrap().around(ele.getDefaultAssignment_5_2()); c.setIndentationDecrement().after(ele.getDefaultAssignment_5_2()); c.setLinewrap().before(ele.getRightCurlyBracketKeyword_6()); c.setIndentationDecrement().before(ele.getRightCurlyBracketKeyword_6()); }
public void configureXDoWhileExpression(FormattingConfig c, XDoWhileExpressionElements ele) { c.setLinewrap().after(ele.getDoKeyword_1()); c.setIndentationIncrement().after(ele.getDoKeyword_1()); c.setLinewrap().before(ele.getDoKeyword_1()); c.setIndentationDecrement().before(ele.getWhileKeyword_3()); c.setNoSpace().around(ele.getLeftParenthesisKeyword_4()); c.setNoSpace().before(ele.getRightParenthesisKeyword_6()); }
public void configureXBlockExpression(FormattingConfig c, XBlockExpressionElements ele) { c.setLinewrap().after(ele.getLeftCurlyBracketKeyword_1()); c.setIndentationIncrement().after(ele.getLeftCurlyBracketKeyword_1()); c.setLinewrap().after(ele.getExpressionsAssignment_2_0()); c.setNoSpace().before(ele.getSemicolonKeyword_2_1()); c.setLinewrap().after(ele.getSemicolonKeyword_2_1()); c.setLinewrap().before(ele.getRightCurlyBracketKeyword_3()); c.setIndentationDecrement().before(ele.getRightCurlyBracketKeyword_3()); }