'Compute the line numbers for all bytecode instructions.'

@classmethod
def _compute_lineno(cls, table, code):

    for (offset, lineno) in dis.findlinestarts(code):
        if (offset in table):
            table[offset].lineno = lineno
    known = (-1)
    for inst in table.values():
        if (inst.lineno >= 0):
            known = inst.lineno
        else:
            inst.lineno = known
    return table
