def lookup(self, line, column):
        try:
            # Let's hope for a direct match first
            return self.index[(line, column)]
        except __HOLE__:
            pass

        # Figure out which line to search through
        line_index = self.line_index[line]
        # Find the closest column token
        line_index
        i = bisect_right(line_index, column)
        if not i:
            # You're gonna have a bad time
            i = len(line_index)-2
            # raise IndexError

        # We actually want the one less than current
        column = line_index[i - 1]
        # Return from the main index, based on the (line, column) tuple
        return self.index[(line, column)]
dataset/ETHPy150Open lavrton/sublime-better-typescript/sourcemap/objects.py/SourceMapIndex.lookup