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

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

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

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

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