@staticmethod
def _make_sloc(loc):
    if (loc is None):
        return '<i>Invalid Source Location</i>'

    def make_plain_loc(loc):
        return ('%s:<b>%s</b>:<b>%s</b>' % (loc.filename, loc.line, loc.col))
    if loc.is_macro():
        return ('%s <font color="royalblue1">(<i>spelling at </i> %s)</font>' % (make_plain_loc(loc), make_plain_loc(loc.spelling)))
    return make_plain_loc(loc)
@staticmethod
def _make_sloc(loc):
    if (loc is None):
        return '<i>Invalid Source Location</i>'

    def make_plain_loc(loc):
        return ('%s:<b>%s</b>:<b>%s</b>' % (loc.filename, loc.line, loc.col))
    if loc.is_macro():
        return ('%s <font color="royalblue1">(<i>spelling at </i> %s)</font>' % (make_plain_loc(loc), make_plain_loc(loc.spelling)))
    return make_plain_loc(loc)