示例#1
0
        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();
        }
示例#2
0
        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();
        }