def __init__(self, view, selection = None):
        self.view = view
        self.selection = selection if selection is not None else view.sel()[0]
        types = haskell_type_view(view, self.selection)
        self.regions = [TypedRegion.fromRegionType(t, view) for t in types] if types else None
        self.expanded_index = None
dataset/ETHPy150Open SublimeHaskell/SublimeHaskell/haskell_type.py/ExpandSelectionInfo.__init__/original