

def expand(self):
    if (not self.is_valid()):
        return None
    if self.is_top():
        return self.typed_region()
    if (self.expanded_index is None):
        for (i, r) in enumerate(self.regions):
            if (r.contains_region(self.selection) and (r.region != self.selection)):
                self.expanded_index = i
                break
    else:
        self.expanded_index = (self.expanded_index + 1)
    self.selection = self.typed_region().region
    return self.typed_region()

dataset/ETHPy150Open SublimeHaskell/SublimeHaskell/haskell_type.py ExpandSelectionInfo.expand/original