CmdLine.Tokenizer.EatQuotedValue C# (CSharp) Method

EatQuotedValue() private method

private EatQuotedValue ( ) : void
return void
        private void EatQuotedValue()
        {
            string quotedValue = "";
            ++_position;
            while (!AtEnd && CurrentChar != '"')
            {
                quotedValue += CurrentChar;
                ++_position;
            }
            if (CurrentChar == '"')
                ++_position; // Skip trailing " if we saw it (might be we skipped the loop completely)

            _currentToken = new Token(TokenKind.Value, quotedValue, _position);
        }