private void Switch(PrecedingType newType, bool neighborSpacing = false) { Formatter.ConditionalNewLine(); var prior = Preceding; Preceding = newType; if (prior == PrecedingType.None) { return; } else if ((prior == newType) && !neighborSpacing) { return; } Formatter.NewLine(); }
private void Switch(PrecedingType newType, bool neighborSpacing = false) { Formatter.ConditionalNewLine(); var prior = Preceding; Preceding = newType; if (prior == PrecedingType.None) return; else if ((prior == newType) && !neighborSpacing) return; Formatter.NewLine(); }