docs: def add_view_info(self, view_info: ViewInfo):
          '''Adds view information to error message'''
          try:
              next(info for info in self._view_infos if info.view == view_info.view)
          except StopIteration:
              indent = len(self._view_infos) * '\t'
              self._view_infos.append(view_info)
              info = 'Line {0} in "{1}"'.format(view_info.line, view_info.view)
              self.add_info(indent + 'View info', info)