     while @nextToken()
       'NOOP'
 
+    # Position to the end of the last successfully parsed token.
     @buffer.position = @position
 
   isEnd: ->

          @debug.token(token)

          if !token.error
            @position = @buffer.position

            if token.event

        return false
    catch error
      if error?.error == 'oob'
        # There was an attempt to read past the end of the buffer.
        # In other words, we've run out of buffer.
        return false
      else
        throw error
