class Location:
    def __init__(self, sline, scol, eline=None, ecol=None):
        self.sline = sline
        self.scol = scol
        if eline is None:
            self.eline = self.sline
        else:
            self.eline = eline

        if ecol is None:
            self.ecol = self.scol
        else:
            self.ecol = ecol

class Location:
    def __init__(self, sline, scol, eline=None, ecol=None):
        self.sline = sline
        self.scol = scol
        if eline is None:
            self.eline = self.sline
        else:
            self.eline = eline

        if ecol is None:
            self.ecol = self.scol
        else:
            self.ecol = ecol
