Exemplo n.º 1
0
        private char ReadCharacter()
        {
            char c = (char)_reader.Read();

            _currentLocation = _currentLocation.Offset(0, 1);
            return(c);
        }
Exemplo n.º 2
0
        private char ReadCharacter()
        {
            char c = (char)_reader.Read();

            _currentLocation       = c == '\n'
                ? _currentLocation = new TextLocation(_currentLocation.Line + 1, 1)
                : _currentLocation.Offset(0, 1);
            return(c);
        }