def __init__(self, src, errorlog, filename, disable):
    'Create a Director for a source file.\n\n    Args:\n      src:  The source text as a string.\n      errorlog: An ErrorLog object.  Directive errors will be logged to the\n          errorlog.\n      filename: The name of the source file.\n      disable: List of error messages to always ignore.\n    '
    self._filename = filename
    self._errorlog = errorlog
    self._type_comments = {}
    self._docstrings = set()
    self._ignore = _LineSet()
    self._disables = collections.defaultdict(_LineSet)
    for error_name in disable:
        self._disables[error_name].start_range(0, True)
    self._parse_source(src)
Create a Director for a source file.

Args:
  src:  The source text as a string.
  errorlog: An ErrorLog object.  Directive errors will be logged to the
      errorlog.
  filename: The name of the source file.
  disable: List of error messages to always ignore.
def __init__(self, src, errorlog, filename, disable):
    'Create a Director for a source file.\n\n    Args:\n      src:  The source text as a string.\n      errorlog: An ErrorLog object.  Directive errors will be logged to the\n          errorlog.\n      filename: The name of the source file.\n      disable: List of error messages to always ignore.\n    '
    self._filename = filename
    self._errorlog = errorlog
    self._type_comments = {}
    self._docstrings = set()
    self._ignore = _LineSet()
    self._disables = collections.defaultdict(_LineSet)
    for error_name in disable:
        self._disables[error_name].start_range(0, True)
    self._parse_source(src)