parameters: (self, other)
return_statement: return False
docstring: Useful to detect the Token/Lexer bug
docstring_summary: Useful to detect the Token/Lexer bug
docstring_tokens: Useful to detect the Token / Lexer bug
function: def __contains__(self, other):
          """Useful to detect the Token/Lexer bug"""
          if not isinstance(other, SourceLocation):
              return False
          if other.file is None and self.start.file is None:
              pass
          elif ( self.start.file.name != other.file.name or
                 other.file.name != self.end.file.name):
              # same file name
              return False
          # same file, in between lines
          if self.start.line < other.line < self.end.line:
              return True
          elif self.start.line == other.line:
              # same file first line
              if self.start.column <= other.column:
                  return True
          elif other.line == self.end.line:
              # same file last line
              if other.column <= self.end.column:
                  return True
          return False
function_tokens: def __contains__ ( self , other ) : if not isinstance ( other , SourceLocation ) : return False if other . file is None and self . start . file is None : pass elif ( self . start . file . name != other . file . name or other . file . name != self . end . file . name ) : # same file name return False # same file, in between lines if self . start . line < other . line < self . end . line : return True elif self . start . line == other . line : # same file first line if self . start . column <= other . column : return True elif other . line == self . end . line : # same file last line if other . column <= self . end . column : return True return False