3rdparty/NRefactory/ICSharpCode.NRefactory.CSharp/IndentEngine/IndentState.cs
/// <summary>
///     Pushes a new level of indentation depending on the given
///     <paramref name="braceStyle"/>.
/// </summary>
Pushes a new level of indentation depending on the given
.
Pushes a new level of indentation depending on the given .
void AddIndentation(BraceStyle braceStyle)
		{
			switch (braceStyle)
			{
				case BraceStyle.NextLineShifted:
					ThisLineIndent.Push(IndentType.Block);
					NextLineIndent.Push(IndentType.Block);
					break;
				case BraceStyle.DoNotChange:
				case BraceStyle.EndOfLine:
				case BraceStyle.EndOfLineWithoutSpace:
				case BraceStyle.NextLine:
				case BraceStyle.BannerStyle:
					NextLineIndent.Push(IndentType.Block);
					break;
				case BraceStyle.NextLineShifted2:
					ThisLineIndent.Push(IndentType.Block);
					NextLineIndent.Push(IndentType.DoubleBlock);
					break;
			}
		}
void AddIndentation ( BraceStyle braceStyle ) { switch ( braceStyle ) { case BraceStyle . NextLineShifted : ThisLineIndent . Push ( IndentType . Block ) ; NextLineIndent . Push ( IndentType . Block ) ; break ; case BraceStyle . DoNotChange : case BraceStyle . EndOfLine : case BraceStyle . EndOfLineWithoutSpace : case BraceStyle . NextLine : case BraceStyle . BannerStyle : NextLineIndent . Push ( IndentType . Block ) ; break ; case BraceStyle . NextLineShifted2 : ThisLineIndent . Push ( IndentType . Block ) ; NextLineIndent . Push ( IndentType . DoubleBlock ) ; break ; } }
Pushes a new level of indentation depending on the given
.
Pushes a new level of indentation depending on the given .
braceStyle
BraceStyle