Beispiel #1
0
 def __init__(self, bufnr, user_options):
     self._bufnr = bufnr
     self._user_options = user_options
     self._diagnostics = []
     self._diag_filter = DiagnosticFilter.CreateFromOptions(user_options)
     # Line and column numbers are 1-based
     self._line_to_diags = defaultdict(list)
     self._previous_diag_line_number = -1
     self._diag_message_needs_clearing = False
 def __init__(self, user_options):
     self._user_options = user_options
     self._diag_filter = DiagnosticFilter.CreateFromOptions(user_options)
     # Line and column numbers are 1-based
     self._buffer_number_to_line_to_diags = defaultdict(
         lambda: defaultdict(list))
     self._next_sign_id = 1
     self._previous_line_number = -1
     self._diag_message_needs_clearing = False
     self._placed_signs = []
Beispiel #3
0
 def __init__( self, bufnr, user_options ):
   self._bufnr = bufnr
   self._user_options = user_options
   self._diagnostics = []
   self._diag_filter = DiagnosticFilter.CreateFromOptions( user_options )
   # Line and column numbers are 1-based
   self._line_to_diags = defaultdict( list )
   self._next_sign_id = vimsupport.SIGN_BUFFER_ID_INITIAL_VALUE
   self._previous_diag_line_number = -1
   self._diag_message_needs_clearing = False
Beispiel #4
0
def _CreateFilterForTypes( opts, types ):
  return DiagnosticFilter.CreateFromOptions( opts ).SubsetForTypes( types )