示例#1
0
        private char ReadCharacter()
        {
            char c = (char)_reader.Read();

            _currentLocation = _currentLocation.Offset(0, 1);
            return(c);
        }
示例#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);
        }