Sarcasm.Unparsing.FormatYielder.BlockIndentationToUtokenControlBefore C# (CSharp) 메소드

BlockIndentationToUtokenControlBefore() 개인적인 정적인 메소드

private static BlockIndentationToUtokenControlBefore ( BlockIndentation blockIndentation ) : IEnumerable
blockIndentation BlockIndentation
리턴 IEnumerable
        private static IEnumerable<UtokenControl> BlockIndentationToUtokenControlBefore(BlockIndentation blockIndentation)
        {
            if (blockIndentation == BlockIndentation.Indent)
                yield return UtokenControl.IncreaseIndentLevel;

            else if (blockIndentation == BlockIndentation.Unindent)
                yield return UtokenControl.DecreaseIndentLevel;

            else if (blockIndentation == BlockIndentation.ZeroIndent)
                yield return UtokenControl.SetIndentLevelToNone;
        }