CmdLine.Tokenizer.Advance C# (CSharp) Method

Advance() private method

private Advance ( ) : void
return void
        private void Advance()
        {
            EatWhitespace();

            if (AtEnd)
            {
                _currentToken = null;
                return;
            }

            if (CurrentChar == '"')
            {
                EatQuotedValue();
            }
            else if (CurrentChar == '-')
            {
                if (CanPeek && Char.IsDigit(PeekNextChar))
                {
                    // It's actually a negative number, not an option
                    EatRawValue();
                }
                else
                {
                    EatOption();
                }
            }
            else
            {
                EatRawValue();
            }

            EatWhitespace();
        }