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

BlockIndentationToUtokenControlBefore() private static méthode

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