def in_loc(line, col, loc):
    """ If line‑col is in loc. """
    result = False
    if loc.start.line <= line and line <= loc.end.line:
        result = True
        if loc.start.line == line:
            result = result and (col >= loc.start.column)
        if loc.end.line == line:
            result = result and (col < loc.end.column)
    return result