

def precise_in_region(self, view, other):
    this_region = self.region(view)
    other_region = other.region(view)
    if other_region.contains(this_region):
        return (0, (other_region.size() - this_region.size()))
    elif other_region.intersects(this_region):
        return (1, (- other_region.intersection(this_region).size()))
    return (2, 0)

dataset/ETHPy150Open SublimeHaskell/SublimeHaskell/haskell_type.py RegionType.precise_in_region/original