/**
* generated by Xtext
*/
package de.unidue.ecg.dialogScript.formatting;
import com.google.inject.Inject;
import de.unidue.ecg.dialogScript.services.DialogScriptGrammarAccess;
import java.util.List;
import org.eclipse.xtext.Assignment;
import org.eclipse.xtext.CrossReference;
import org.eclipse.xtext.Keyword;
import org.eclipse.xtext.RuleCall;
import org.eclipse.xtext.TerminalRule;
import org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter;
import org.eclipse.xtext.formatting.impl.FormattingConfig;
import org.eclipse.xtext.xbase.lib.Extension;
/**
* This class contains custom formatting description.
*
* see : http://www.eclipse.org/Xtext/documentation.html#formatting
* on how and when to use it
*
* Also see {@link org.eclipse.xtext.xtext.XtextFormattingTokenSerializer} as an example
*/
@SuppressWarnings("all")
public class DialogScriptFormatter extends AbstractDeclarativeFormatter {
@Inject
@Extension
private DialogScriptGrammarAccess _dialogScriptGrammarAccess;
protected void configureFormatting(final FormattingConfig c) {
FormattingConfig.LinewrapLocator _setLinewrap = c.setLinewrap(0, 1, 2);
TerminalRule _sL_COMMENTRule = this._dialogScriptGrammarAccess.getSL_COMMENTRule();
_setLinewrap.before(_sL_COMMENTRule);
FormattingConfig.LinewrapLocator _setLinewrap_1 = c.setLinewrap(0, 1, 2);
TerminalRule _mL_COMMENTRule = this._dialogScriptGrammarAccess.getML_COMMENTRule();
_setLinewrap_1.before(_mL_COMMENTRule);
FormattingConfig.LinewrapLocator _setLinewrap_2 = c.setLinewrap(0, 1, 1);
TerminalRule _mL_COMMENTRule_1 = this._dialogScriptGrammarAccess.getML_COMMENTRule();
_setLinewrap_2.after(_mL_COMMENTRule_1);
List<Keyword> _findKeywords = this._dialogScriptGrammarAccess.findKeywords(",", ":", "-", ")");
for (final Keyword keyword : _findKeywords) {
FormattingConfig.NoSpaceLocator _setNoSpace = c.setNoSpace();
_setNoSpace.before(keyword);
}
List<Keyword> _findKeywords_1 = this._dialogScriptGrammarAccess.findKeywords("(");
for (final Keyword keyword_1 : _findKeywords_1) {
FormattingConfig.NoSpaceLocator _setNoSpace_1 = c.setNoSpace();
_setNoSpace_1.after(keyword_1);
}
FormattingConfig.LinewrapLocator _setLinewrap_3 = c.setLinewrap(2);
DialogScriptGrammarAccess.SwitchesDefinitionElements _switchesDefinitionAccess = this._dialogScriptGrammarAccess.getSwitchesDefinitionAccess();
Keyword _switchesKeyword_0 = _switchesDefinitionAccess.getSwitchesKeyword_0();
_setLinewrap_3.before(_switchesKeyword_0);
FormattingConfig.LinewrapLocator _setLinewrap_4 = c.setLinewrap(2);
DialogScriptGrammarAccess.ConditionsDefinitionElements _conditionsDefinitionAccess = this._dialogScriptGrammarAccess.getConditionsDefinitionAccess();
Keyword _conditionsKeyword_0 = _conditionsDefinitionAccess.getConditionsKeyword_0();
_setLinewrap_4.before(_conditionsKeyword_0);
FormattingConfig.LinewrapLocator _setLinewrap_5 = c.setLinewrap();
DialogScriptGrammarAccess.ConditionDefinitionElements _conditionDefinitionAccess = this._dialogScriptGrammarAccess.getConditionDefinitionAccess();
Keyword _setKeyword_0 = _conditionDefinitionAccess.getSetKeyword_0();
_setLinewrap_5.before(_setKeyword_0);
FormattingConfig.LinewrapLocator _setLinewrap_6 = c.setLinewrap(2);
DialogScriptGrammarAccess.SceneElements _sceneAccess = this._dialogScriptGrammarAccess.getSceneAccess();
Keyword _sceneKeyword_1 = _sceneAccess.getSceneKeyword_1();
_setLinewrap_6.before(_sceneKeyword_1);
FormattingConfig.LinewrapLocator _setLinewrap_7 = c.setLinewrap(2);
DialogScriptGrammarAccess.DefaultsElements _defaultsAccess = this._dialogScriptGrammarAccess.getDefaultsAccess();
Keyword _defaultsKeyword_1 = _defaultsAccess.getDefaultsKeyword_1();
_setLinewrap_7.before(_defaultsKeyword_1);
FormattingConfig.LinewrapLocator _setLinewrap_8 = c.setLinewrap(2);
DialogScriptGrammarAccess.FirstTimeElements _firstTimeAccess = this._dialogScriptGrammarAccess.getFirstTimeAccess();
Keyword _firstKeyword_1 = _firstTimeAccess.getFirstKeyword_1();
_setLinewrap_8.before(_firstKeyword_1);
FormattingConfig.LinewrapLocator _setLinewrap_9 = c.setLinewrap();
DialogScriptGrammarAccess.OtherTimesElements _otherTimesAccess = this._dialogScriptGrammarAccess.getOtherTimesAccess();
Keyword _elseKeyword_1 = _otherTimesAccess.getElseKeyword_1();
_setLinewrap_9.before(_elseKeyword_1);
FormattingConfig.LinewrapLocator _setLinewrap_10 = c.setLinewrap(2);
DialogScriptGrammarAccess.ConditionalElements _conditionalAccess = this._dialogScriptGrammarAccess.getConditionalAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0 = _conditionalAccess.getModifiersModifierEnumRuleCall_0_0();
_setLinewrap_10.before(_modifiersModifierEnumRuleCall_0_0);
FormattingConfig.LinewrapLocator _setLinewrap_11 = c.setLinewrap(2);
DialogScriptGrammarAccess.ConditionalElements _conditionalAccess_1 = this._dialogScriptGrammarAccess.getConditionalAccess();
Keyword _ifKeyword_1 = _conditionalAccess_1.getIfKeyword_1();
_setLinewrap_11.before(_ifKeyword_1);
FormattingConfig.NoSpaceLocator _setNoSpace_2 = c.setNoSpace();
DialogScriptGrammarAccess.ConditionalElements _conditionalAccess_2 = this._dialogScriptGrammarAccess.getConditionalAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_1 = _conditionalAccess_2.getModifiersModifierEnumRuleCall_0_0();
DialogScriptGrammarAccess.ConditionalElements _conditionalAccess_3 = this._dialogScriptGrammarAccess.getConditionalAccess();
Keyword _ifKeyword_1_1 = _conditionalAccess_3.getIfKeyword_1();
_setNoSpace_2.between(_modifiersModifierEnumRuleCall_0_0_1, _ifKeyword_1_1);
FormattingConfig.SpaceLocator _setSpace = c.setSpace(" ");
DialogScriptGrammarAccess.ConditionalElements _conditionalAccess_4 = this._dialogScriptGrammarAccess.getConditionalAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_2 = _conditionalAccess_4.getModifiersModifierEnumRuleCall_0_0();
DialogScriptGrammarAccess.ConditionalElements _conditionalAccess_5 = this._dialogScriptGrammarAccess.getConditionalAccess();
Keyword _ifKeyword_1_2 = _conditionalAccess_5.getIfKeyword_1();
_setSpace.between(_modifiersModifierEnumRuleCall_0_0_2, _ifKeyword_1_2);
FormattingConfig.LinewrapLocator _setLinewrap_12 = c.setLinewrap(2);
DialogScriptGrammarAccess.PartingLinesElements _partingLinesAccess = this._dialogScriptGrammarAccess.getPartingLinesAccess();
Keyword _partingKeyword_1 = _partingLinesAccess.getPartingKeyword_1();
_setLinewrap_12.before(_partingKeyword_1);
FormattingConfig.LinewrapLocator _setLinewrap_13 = c.setLinewrap(2);
DialogScriptGrammarAccess.HubElements _hubAccess = this._dialogScriptGrammarAccess.getHubAccess();
Assignment _isHiddenAssignment_0 = _hubAccess.getIsHiddenAssignment_0();
_setLinewrap_13.before(_isHiddenAssignment_0);
FormattingConfig.LinewrapLocator _setLinewrap_14 = c.setLinewrap(2);
DialogScriptGrammarAccess.HubElements _hubAccess_1 = this._dialogScriptGrammarAccess.getHubAccess();
Keyword _hubKeyword_1 = _hubAccess_1.getHubKeyword_1();
_setLinewrap_14.before(_hubKeyword_1);
FormattingConfig.NoSpaceLocator _setNoSpace_3 = c.setNoSpace();
DialogScriptGrammarAccess.HubElements _hubAccess_2 = this._dialogScriptGrammarAccess.getHubAccess();
Assignment _isHiddenAssignment_0_1 = _hubAccess_2.getIsHiddenAssignment_0();
DialogScriptGrammarAccess.HubElements _hubAccess_3 = this._dialogScriptGrammarAccess.getHubAccess();
Keyword _hubKeyword_1_1 = _hubAccess_3.getHubKeyword_1();
_setNoSpace_3.between(_isHiddenAssignment_0_1, _hubKeyword_1_1);
FormattingConfig.SpaceLocator _setSpace_1 = c.setSpace(" ");
DialogScriptGrammarAccess.HubElements _hubAccess_4 = this._dialogScriptGrammarAccess.getHubAccess();
Assignment _isHiddenAssignment_0_2 = _hubAccess_4.getIsHiddenAssignment_0();
DialogScriptGrammarAccess.HubElements _hubAccess_5 = this._dialogScriptGrammarAccess.getHubAccess();
Keyword _hubKeyword_1_2 = _hubAccess_5.getHubKeyword_1();
_setSpace_1.between(_isHiddenAssignment_0_2, _hubKeyword_1_2);
FormattingConfig.LinewrapLocator _setLinewrap_15 = c.setLinewrap(2);
DialogScriptGrammarAccess.ChoiceDialogElements _choiceDialogAccess = this._dialogScriptGrammarAccess.getChoiceDialogAccess();
RuleCall _modifiersModifierEnumRuleCall_1_0 = _choiceDialogAccess.getModifiersModifierEnumRuleCall_1_0();
_setLinewrap_15.before(_modifiersModifierEnumRuleCall_1_0);
FormattingConfig.LinewrapLocator _setLinewrap_16 = c.setLinewrap(2);
DialogScriptGrammarAccess.ChoiceDialogElements _choiceDialogAccess_1 = this._dialogScriptGrammarAccess.getChoiceDialogAccess();
Keyword _choiceKeyword_2 = _choiceDialogAccess_1.getChoiceKeyword_2();
_setLinewrap_16.before(_choiceKeyword_2);
FormattingConfig.NoSpaceLocator _setNoSpace_4 = c.setNoSpace();
DialogScriptGrammarAccess.ChoiceDialogElements _choiceDialogAccess_2 = this._dialogScriptGrammarAccess.getChoiceDialogAccess();
RuleCall _modifiersModifierEnumRuleCall_1_0_1 = _choiceDialogAccess_2.getModifiersModifierEnumRuleCall_1_0();
DialogScriptGrammarAccess.ChoiceDialogElements _choiceDialogAccess_3 = this._dialogScriptGrammarAccess.getChoiceDialogAccess();
Keyword _choiceKeyword_2_1 = _choiceDialogAccess_3.getChoiceKeyword_2();
_setNoSpace_4.between(_modifiersModifierEnumRuleCall_1_0_1, _choiceKeyword_2_1);
FormattingConfig.SpaceLocator _setSpace_2 = c.setSpace(" ");
DialogScriptGrammarAccess.ChoiceDialogElements _choiceDialogAccess_4 = this._dialogScriptGrammarAccess.getChoiceDialogAccess();
RuleCall _modifiersModifierEnumRuleCall_1_0_2 = _choiceDialogAccess_4.getModifiersModifierEnumRuleCall_1_0();
DialogScriptGrammarAccess.ChoiceDialogElements _choiceDialogAccess_5 = this._dialogScriptGrammarAccess.getChoiceDialogAccess();
Keyword _choiceKeyword_2_2 = _choiceDialogAccess_5.getChoiceKeyword_2();
_setSpace_2.between(_modifiersModifierEnumRuleCall_1_0_2, _choiceKeyword_2_2);
FormattingConfig.LinewrapLocator _setLinewrap_17 = c.setLinewrap(2);
DialogScriptGrammarAccess.ConditionalChoiceDialogElements _conditionalChoiceDialogAccess = this._dialogScriptGrammarAccess.getConditionalChoiceDialogAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_3 = _conditionalChoiceDialogAccess.getModifiersModifierEnumRuleCall_0_0();
_setLinewrap_17.before(_modifiersModifierEnumRuleCall_0_0_3);
FormattingConfig.LinewrapLocator _setLinewrap_18 = c.setLinewrap(2);
DialogScriptGrammarAccess.ConditionalChoiceDialogElements _conditionalChoiceDialogAccess_1 = this._dialogScriptGrammarAccess.getConditionalChoiceDialogAccess();
Keyword _choicesKeyword_1 = _conditionalChoiceDialogAccess_1.getChoicesKeyword_1();
_setLinewrap_18.before(_choicesKeyword_1);
FormattingConfig.NoSpaceLocator _setNoSpace_5 = c.setNoSpace();
DialogScriptGrammarAccess.ConditionalChoiceDialogElements _conditionalChoiceDialogAccess_2 = this._dialogScriptGrammarAccess.getConditionalChoiceDialogAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_4 = _conditionalChoiceDialogAccess_2.getModifiersModifierEnumRuleCall_0_0();
DialogScriptGrammarAccess.ConditionalChoiceDialogElements _conditionalChoiceDialogAccess_3 = this._dialogScriptGrammarAccess.getConditionalChoiceDialogAccess();
Keyword _choicesKeyword_1_1 = _conditionalChoiceDialogAccess_3.getChoicesKeyword_1();
_setNoSpace_5.between(_modifiersModifierEnumRuleCall_0_0_4, _choicesKeyword_1_1);
FormattingConfig.SpaceLocator _setSpace_3 = c.setSpace(" ");
DialogScriptGrammarAccess.ConditionalChoiceDialogElements _conditionalChoiceDialogAccess_4 = this._dialogScriptGrammarAccess.getConditionalChoiceDialogAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_5 = _conditionalChoiceDialogAccess_4.getModifiersModifierEnumRuleCall_0_0();
DialogScriptGrammarAccess.ConditionalChoiceDialogElements _conditionalChoiceDialogAccess_5 = this._dialogScriptGrammarAccess.getConditionalChoiceDialogAccess();
Keyword _choicesKeyword_1_2 = _conditionalChoiceDialogAccess_5.getChoicesKeyword_1();
_setSpace_3.between(_modifiersModifierEnumRuleCall_0_0_5, _choicesKeyword_1_2);
FormattingConfig.LinewrapLocator _setLinewrap_19 = c.setLinewrap();
DialogScriptGrammarAccess.DefaultsElements _defaultsAccess_1 = this._dialogScriptGrammarAccess.getDefaultsAccess();
Keyword _endKeyword_4 = _defaultsAccess_1.getEndKeyword_4();
_setLinewrap_19.before(_endKeyword_4);
FormattingConfig.LinewrapLocator _setLinewrap_20 = c.setLinewrap();
DialogScriptGrammarAccess.DialogLineElements _dialogLineAccess = this._dialogScriptGrammarAccess.getDialogLineAccess();
CrossReference _characterCharacterDefinitionCrossReference_0_0 = _dialogLineAccess.getCharacterCharacterDefinitionCrossReference_0_0();
_setLinewrap_20.before(_characterCharacterDefinitionCrossReference_0_0);
FormattingConfig.LinewrapLocator _setLinewrap_21 = c.setLinewrap();
DialogScriptGrammarAccess.FirstTimeElements _firstTimeAccess_1 = this._dialogScriptGrammarAccess.getFirstTimeAccess();
Keyword _endKeyword_6 = _firstTimeAccess_1.getEndKeyword_6();
_setLinewrap_21.before(_endKeyword_6);
FormattingConfig.LinewrapLocator _setLinewrap_22 = c.setLinewrap();
DialogScriptGrammarAccess.ConditionalElements _conditionalAccess_6 = this._dialogScriptGrammarAccess.getConditionalAccess();
Keyword _endKeyword_8 = _conditionalAccess_6.getEndKeyword_8();
_setLinewrap_22.before(_endKeyword_8);
FormattingConfig.LinewrapLocator _setLinewrap_23 = c.setLinewrap();
DialogScriptGrammarAccess.PartingLinesElements _partingLinesAccess_1 = this._dialogScriptGrammarAccess.getPartingLinesAccess();
Keyword _endKeyword_4_1 = _partingLinesAccess_1.getEndKeyword_4();
_setLinewrap_23.before(_endKeyword_4_1);
FormattingConfig.LinewrapLocator _setLinewrap_24 = c.setLinewrap();
DialogScriptGrammarAccess.SwitchOnElements _switchOnAccess = this._dialogScriptGrammarAccess.getSwitchOnAccess();
Keyword _switchKeyword_0 = _switchOnAccess.getSwitchKeyword_0();
_setLinewrap_24.before(_switchKeyword_0);
FormattingConfig.LinewrapLocator _setLinewrap_25 = c.setLinewrap();
DialogScriptGrammarAccess.SwitchOffElements _switchOffAccess = this._dialogScriptGrammarAccess.getSwitchOffAccess();
Keyword _switchKeyword_0_1 = _switchOffAccess.getSwitchKeyword_0();
_setLinewrap_25.before(_switchKeyword_0_1);
FormattingConfig.LinewrapLocator _setLinewrap_26 = c.setLinewrap();
DialogScriptGrammarAccess.OtherwiseElements _otherwiseAccess = this._dialogScriptGrammarAccess.getOtherwiseAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_6 = _otherwiseAccess.getModifiersModifierEnumRuleCall_0_0();
_setLinewrap_26.before(_modifiersModifierEnumRuleCall_0_0_6);
FormattingConfig.LinewrapLocator _setLinewrap_27 = c.setLinewrap();
DialogScriptGrammarAccess.OtherwiseElements _otherwiseAccess_1 = this._dialogScriptGrammarAccess.getOtherwiseAccess();
Keyword _elseKeyword_1_1 = _otherwiseAccess_1.getElseKeyword_1();
_setLinewrap_27.before(_elseKeyword_1_1);
FormattingConfig.NoSpaceLocator _setNoSpace_6 = c.setNoSpace();
DialogScriptGrammarAccess.OtherwiseElements _otherwiseAccess_2 = this._dialogScriptGrammarAccess.getOtherwiseAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_7 = _otherwiseAccess_2.getModifiersModifierEnumRuleCall_0_0();
DialogScriptGrammarAccess.OtherwiseElements _otherwiseAccess_3 = this._dialogScriptGrammarAccess.getOtherwiseAccess();
Keyword _elseKeyword_1_2 = _otherwiseAccess_3.getElseKeyword_1();
_setNoSpace_6.between(_modifiersModifierEnumRuleCall_0_0_7, _elseKeyword_1_2);
FormattingConfig.SpaceLocator _setSpace_4 = c.setSpace(" ");
DialogScriptGrammarAccess.OtherwiseElements _otherwiseAccess_4 = this._dialogScriptGrammarAccess.getOtherwiseAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_8 = _otherwiseAccess_4.getModifiersModifierEnumRuleCall_0_0();
DialogScriptGrammarAccess.OtherwiseElements _otherwiseAccess_5 = this._dialogScriptGrammarAccess.getOtherwiseAccess();
Keyword _elseKeyword_1_3 = _otherwiseAccess_5.getElseKeyword_1();
_setSpace_4.between(_modifiersModifierEnumRuleCall_0_0_8, _elseKeyword_1_3);
FormattingConfig.LinewrapLocator _setLinewrap_28 = c.setLinewrap();
DialogScriptGrammarAccess.OtherwiseChoiceElements _otherwiseChoiceAccess = this._dialogScriptGrammarAccess.getOtherwiseChoiceAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_9 = _otherwiseChoiceAccess.getModifiersModifierEnumRuleCall_0_0();
_setLinewrap_28.before(_modifiersModifierEnumRuleCall_0_0_9);
FormattingConfig.LinewrapLocator _setLinewrap_29 = c.setLinewrap();
DialogScriptGrammarAccess.OtherwiseChoiceElements _otherwiseChoiceAccess_1 = this._dialogScriptGrammarAccess.getOtherwiseChoiceAccess();
Keyword _choicesKeyword_1_3 = _otherwiseChoiceAccess_1.getChoicesKeyword_1();
_setLinewrap_29.before(_choicesKeyword_1_3);
FormattingConfig.NoSpaceLocator _setNoSpace_7 = c.setNoSpace();
DialogScriptGrammarAccess.OtherwiseChoiceElements _otherwiseChoiceAccess_2 = this._dialogScriptGrammarAccess.getOtherwiseChoiceAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_10 = _otherwiseChoiceAccess_2.getModifiersModifierEnumRuleCall_0_0();
DialogScriptGrammarAccess.OtherwiseChoiceElements _otherwiseChoiceAccess_3 = this._dialogScriptGrammarAccess.getOtherwiseChoiceAccess();
Keyword _choicesKeyword_1_4 = _otherwiseChoiceAccess_3.getChoicesKeyword_1();
_setNoSpace_7.between(_modifiersModifierEnumRuleCall_0_0_10, _choicesKeyword_1_4);
FormattingConfig.SpaceLocator _setSpace_5 = c.setSpace(" ");
DialogScriptGrammarAccess.OtherwiseChoiceElements _otherwiseChoiceAccess_4 = this._dialogScriptGrammarAccess.getOtherwiseChoiceAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_11 = _otherwiseChoiceAccess_4.getModifiersModifierEnumRuleCall_0_0();
DialogScriptGrammarAccess.OtherwiseChoiceElements _otherwiseChoiceAccess_5 = this._dialogScriptGrammarAccess.getOtherwiseChoiceAccess();
Keyword _choicesKeyword_1_5 = _otherwiseChoiceAccess_5.getChoicesKeyword_1();
_setSpace_5.between(_modifiersModifierEnumRuleCall_0_0_11, _choicesKeyword_1_5);
FormattingConfig.LinewrapLocator _setLinewrap_30 = c.setLinewrap();
DialogScriptGrammarAccess.ExitElements _exitAccess = this._dialogScriptGrammarAccess.getExitAccess();
Keyword _exitKeyword_1 = _exitAccess.getExitKeyword_1();
_setLinewrap_30.before(_exitKeyword_1);
FormattingConfig.LinewrapLocator _setLinewrap_31 = c.setLinewrap();
DialogScriptGrammarAccess.InvokeHubElements _invokeHubAccess = this._dialogScriptGrammarAccess.getInvokeHubAccess();
Keyword _enterKeyword_0 = _invokeHubAccess.getEnterKeyword_0();
_setLinewrap_31.before(_enterKeyword_0);
FormattingConfig.LinewrapLocator _setLinewrap_32 = c.setLinewrap();
DialogScriptGrammarAccess.InvokeSceneElements _invokeSceneAccess = this._dialogScriptGrammarAccess.getInvokeSceneAccess();
Keyword _enterKeyword_0_1 = _invokeSceneAccess.getEnterKeyword_0();
_setLinewrap_32.before(_enterKeyword_0_1);
FormattingConfig.LinewrapLocator _setLinewrap_33 = c.setLinewrap();
DialogScriptGrammarAccess.ChoiceDialogElements _choiceDialogAccess_6 = this._dialogScriptGrammarAccess.getChoiceDialogAccess();
Keyword _endKeyword_6_1 = _choiceDialogAccess_6.getEndKeyword_6();
_setLinewrap_33.before(_endKeyword_6_1);
FormattingConfig.LinewrapLocator _setLinewrap_34 = c.setLinewrap();
DialogScriptGrammarAccess.HubElements _hubAccess_6 = this._dialogScriptGrammarAccess.getHubAccess();
Keyword _endKeyword_5 = _hubAccess_6.getEndKeyword_5();
_setLinewrap_34.before(_endKeyword_5);
FormattingConfig.LinewrapLocator _setLinewrap_35 = c.setLinewrap();
DialogScriptGrammarAccess.ConditionsDefinitionElements _conditionsDefinitionAccess_1 = this._dialogScriptGrammarAccess.getConditionsDefinitionAccess();
Keyword _endKeyword_3 = _conditionsDefinitionAccess_1.getEndKeyword_3();
_setLinewrap_35.before(_endKeyword_3);
FormattingConfig.LinewrapLocator _setLinewrap_36 = c.setLinewrap();
DialogScriptGrammarAccess.ConditionalChoiceDialogElements _conditionalChoiceDialogAccess_6 = this._dialogScriptGrammarAccess.getConditionalChoiceDialogAccess();
Keyword _endKeyword_9 = _conditionalChoiceDialogAccess_6.getEndKeyword_9();
_setLinewrap_36.before(_endKeyword_9);
FormattingConfig.NoSpaceLocator _setNoSpace_8 = c.setNoSpace();
DialogScriptGrammarAccess.DialogLineElements _dialogLineAccess_1 = this._dialogScriptGrammarAccess.getDialogLineAccess();
Keyword _colonKeyword_1 = _dialogLineAccess_1.getColonKeyword_1();
DialogScriptGrammarAccess.DialogLineElements _dialogLineAccess_2 = this._dialogScriptGrammarAccess.getDialogLineAccess();
Assignment _linesAssignment_2 = _dialogLineAccess_2.getLinesAssignment_2();
_setNoSpace_8.between(_colonKeyword_1, _linesAssignment_2);
FormattingConfig.SpaceLocator _setSpace_6 = c.setSpace(" ");
DialogScriptGrammarAccess.DialogLineElements _dialogLineAccess_3 = this._dialogScriptGrammarAccess.getDialogLineAccess();
Keyword _colonKeyword_1_1 = _dialogLineAccess_3.getColonKeyword_1();
DialogScriptGrammarAccess.DialogLineElements _dialogLineAccess_4 = this._dialogScriptGrammarAccess.getDialogLineAccess();
Assignment _linesAssignment_2_1 = _dialogLineAccess_4.getLinesAssignment_2();
_setSpace_6.between(_colonKeyword_1_1, _linesAssignment_2_1);
DialogScriptGrammarAccess.DefaultsElements _defaultsAccess_2 = this._dialogScriptGrammarAccess.getDefaultsAccess();
Keyword _defaultsKeyword_1_1 = _defaultsAccess_2.getDefaultsKeyword_1();
DialogScriptGrammarAccess.DefaultsElements _defaultsAccess_3 = this._dialogScriptGrammarAccess.getDefaultsAccess();
Keyword _endKeyword_4_2 = _defaultsAccess_3.getEndKeyword_4();
c.setIndentation(_defaultsKeyword_1_1, _endKeyword_4_2);
DialogScriptGrammarAccess.ConditionsDefinitionElements _conditionsDefinitionAccess_2 = this._dialogScriptGrammarAccess.getConditionsDefinitionAccess();
Keyword _conditionsKeyword_0_1 = _conditionsDefinitionAccess_2.getConditionsKeyword_0();
DialogScriptGrammarAccess.ConditionsDefinitionElements _conditionsDefinitionAccess_3 = this._dialogScriptGrammarAccess.getConditionsDefinitionAccess();
Keyword _endKeyword_3_1 = _conditionsDefinitionAccess_3.getEndKeyword_3();
c.setIndentation(_conditionsKeyword_0_1, _endKeyword_3_1);
DialogScriptGrammarAccess.SceneElements _sceneAccess_1 = this._dialogScriptGrammarAccess.getSceneAccess();
RuleCall _nameStringIDParserRuleCall_2_0 = _sceneAccess_1.getNameStringIDParserRuleCall_2_0();
DialogScriptGrammarAccess.SceneElements _sceneAccess_2 = this._dialogScriptGrammarAccess.getSceneAccess();
Keyword _endKeyword_4_3 = _sceneAccess_2.getEndKeyword_4();
c.setIndentation(_nameStringIDParserRuleCall_2_0, _endKeyword_4_3);
DialogScriptGrammarAccess.FirstTimeElements _firstTimeAccess_2 = this._dialogScriptGrammarAccess.getFirstTimeAccess();
Keyword _timeKeyword_2 = _firstTimeAccess_2.getTimeKeyword_2();
DialogScriptGrammarAccess.FirstTimeElements _firstTimeAccess_3 = this._dialogScriptGrammarAccess.getFirstTimeAccess();
Keyword _endKeyword_6_2 = _firstTimeAccess_3.getEndKeyword_6();
c.setIndentation(_timeKeyword_2, _endKeyword_6_2);
DialogScriptGrammarAccess.ConditionalElements _conditionalAccess_7 = this._dialogScriptGrammarAccess.getConditionalAccess();
Keyword _ifKeyword_1_3 = _conditionalAccess_7.getIfKeyword_1();
DialogScriptGrammarAccess.ConditionalElements _conditionalAccess_8 = this._dialogScriptGrammarAccess.getConditionalAccess();
Keyword _endKeyword_8_1 = _conditionalAccess_8.getEndKeyword_8();
c.setIndentation(_ifKeyword_1_3, _endKeyword_8_1);
DialogScriptGrammarAccess.HubElements _hubAccess_7 = this._dialogScriptGrammarAccess.getHubAccess();
Assignment _nameAssignment_2 = _hubAccess_7.getNameAssignment_2();
DialogScriptGrammarAccess.HubElements _hubAccess_8 = this._dialogScriptGrammarAccess.getHubAccess();
Keyword _endKeyword_5_1 = _hubAccess_8.getEndKeyword_5();
c.setIndentation(_nameAssignment_2, _endKeyword_5_1);
DialogScriptGrammarAccess.ChoiceDialogElements _choiceDialogAccess_7 = this._dialogScriptGrammarAccess.getChoiceDialogAccess();
Keyword _choiceKeyword_2_3 = _choiceDialogAccess_7.getChoiceKeyword_2();
DialogScriptGrammarAccess.ChoiceDialogElements _choiceDialogAccess_8 = this._dialogScriptGrammarAccess.getChoiceDialogAccess();
Keyword _endKeyword_6_3 = _choiceDialogAccess_8.getEndKeyword_6();
c.setIndentation(_choiceKeyword_2_3, _endKeyword_6_3);
DialogScriptGrammarAccess.ConditionalChoiceDialogElements _conditionalChoiceDialogAccess_7 = this._dialogScriptGrammarAccess.getConditionalChoiceDialogAccess();
Keyword _choicesKeyword_1_6 = _conditionalChoiceDialogAccess_7.getChoicesKeyword_1();
DialogScriptGrammarAccess.ConditionalChoiceDialogElements _conditionalChoiceDialogAccess_8 = this._dialogScriptGrammarAccess.getConditionalChoiceDialogAccess();
Keyword _endKeyword_9_1 = _conditionalChoiceDialogAccess_8.getEndKeyword_9();
c.setIndentation(_choicesKeyword_1_6, _endKeyword_9_1);
FormattingConfig.IndentationLocatorEnd _setIndentationDecrement = c.setIndentationDecrement();
DialogScriptGrammarAccess.OtherwiseChoiceElements _otherwiseChoiceAccess_6 = this._dialogScriptGrammarAccess.getOtherwiseChoiceAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_12 = _otherwiseChoiceAccess_6.getModifiersModifierEnumRuleCall_0_0();
_setIndentationDecrement.before(_modifiersModifierEnumRuleCall_0_0_12);
FormattingConfig.IndentationLocatorEnd _setIndentationDecrement_1 = c.setIndentationDecrement();
DialogScriptGrammarAccess.OtherwiseChoiceElements _otherwiseChoiceAccess_7 = this._dialogScriptGrammarAccess.getOtherwiseChoiceAccess();
Keyword _choicesKeyword_1_7 = _otherwiseChoiceAccess_7.getChoicesKeyword_1();
_setIndentationDecrement_1.before(_choicesKeyword_1_7);
FormattingConfig.IndentationLocatorStart _setIndentationIncrement = c.setIndentationIncrement();
DialogScriptGrammarAccess.OtherwiseChoiceElements _otherwiseChoiceAccess_8 = this._dialogScriptGrammarAccess.getOtherwiseChoiceAccess();
Keyword _elseKeyword_2 = _otherwiseChoiceAccess_8.getElseKeyword_2();
_setIndentationIncrement.after(_elseKeyword_2);
FormattingConfig.IndentationLocatorEnd _setIndentationDecrement_2 = c.setIndentationDecrement();
DialogScriptGrammarAccess.OtherwiseElements _otherwiseAccess_6 = this._dialogScriptGrammarAccess.getOtherwiseAccess();
RuleCall _modifiersModifierEnumRuleCall_0_0_13 = _otherwiseAccess_6.getModifiersModifierEnumRuleCall_0_0();
_setIndentationDecrement_2.before(_modifiersModifierEnumRuleCall_0_0_13);
FormattingConfig.IndentationLocatorEnd _setIndentationDecrement_3 = c.setIndentationDecrement();
DialogScriptGrammarAccess.OtherwiseElements _otherwiseAccess_7 = this._dialogScriptGrammarAccess.getOtherwiseAccess();
Keyword _elseKeyword_1_4 = _otherwiseAccess_7.getElseKeyword_1();
_setIndentationDecrement_3.before(_elseKeyword_1_4);
FormattingConfig.IndentationLocatorStart _setIndentationIncrement_1 = c.setIndentationIncrement();
DialogScriptGrammarAccess.OtherwiseElements _otherwiseAccess_8 = this._dialogScriptGrammarAccess.getOtherwiseAccess();
Keyword _elseKeyword_1_5 = _otherwiseAccess_8.getElseKeyword_1();
_setIndentationIncrement_1.after(_elseKeyword_1_5);
FormattingConfig.IndentationLocatorEnd _setIndentationDecrement_4 = c.setIndentationDecrement();
DialogScriptGrammarAccess.OtherTimesElements _otherTimesAccess_1 = this._dialogScriptGrammarAccess.getOtherTimesAccess();
Keyword _elseKeyword_1_6 = _otherTimesAccess_1.getElseKeyword_1();
_setIndentationDecrement_4.before(_elseKeyword_1_6);
FormattingConfig.IndentationLocatorStart _setIndentationIncrement_2 = c.setIndentationIncrement();
DialogScriptGrammarAccess.OtherTimesElements _otherTimesAccess_2 = this._dialogScriptGrammarAccess.getOtherTimesAccess();
Keyword _elseKeyword_1_7 = _otherTimesAccess_2.getElseKeyword_1();
_setIndentationIncrement_2.after(_elseKeyword_1_7);
DialogScriptGrammarAccess.PartingLinesElements _partingLinesAccess_2 = this._dialogScriptGrammarAccess.getPartingLinesAccess();
Keyword _partingKeyword_1_1 = _partingLinesAccess_2.getPartingKeyword_1();
DialogScriptGrammarAccess.PartingLinesElements _partingLinesAccess_3 = this._dialogScriptGrammarAccess.getPartingLinesAccess();
Keyword _endKeyword_4_4 = _partingLinesAccess_3.getEndKeyword_4();
c.setIndentation(_partingKeyword_1_1, _endKeyword_4_4);
FormattingConfig.LinewrapLocator _setLinewrap_37 = c.setLinewrap(2);
DialogScriptGrammarAccess.SceneElements _sceneAccess_3 = this._dialogScriptGrammarAccess.getSceneAccess();
Keyword _endKeyword_4_5 = _sceneAccess_3.getEndKeyword_4();
_setLinewrap_37.before(_endKeyword_4_5);
}
}