YamlDotNet.Core.Scanner.UnrollIndent C# (CSharp) 메소드

UnrollIndent() 개인적인 메소드

Pop indentation levels from the indents stack until the current level becomes less or equal to the column. For each intendation level, append the BLOCK-END token.
private UnrollIndent ( int column ) : void
column int
리턴 void
        private void UnrollIndent(int column)
        {
            // In the flow context, do nothing.

            if (flowLevel != 0)
            {
                return;
            }

            // Loop through the intendation levels in the stack.

            while (indent > column)
            {
                // Create a token and append it to the queue.

                var mark = cursor.Mark();
                tokens.Enqueue(new BlockEnd(mark, mark));

                // Pop the indentation level.

                indent = indents.Pop();
            }
        }