Sarcasm.Unparsing.FormatYielder.BlockIndentationToUtokenControlAfter C# (CSharp) Méthode

BlockIndentationToUtokenControlAfter() private static méthode

private static BlockIndentationToUtokenControlAfter ( BlockIndentation blockIndentation ) : IEnumerable
blockIndentation BlockIndentation
Résultat 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;
        }