Beispiel #1
0
def get_getter_fn(ptrn_list):
    if len(ptrn_list) == 0:
        l1_fn = '(%s)0' % (ildutil.ild_getter_typename)
    first = ptrn_list[0]
    for cur in ptrn_list[1:]:
        if first.easz_nt_seq != cur.easz_nt_seq:
            #conflict in easz resolution functions.. should not happen
            return None
    return ild_codegen.get_derived_op_getter_fn(first.easz_nt_seq, _easz_token)
Beispiel #2
0
def get_getter_fn(ptrn_list):
    if len(ptrn_list) == 0:
        genutil.die("P2341: SHOULD NOT REACH HERE")
    first = ptrn_list[0]
    for cur in ptrn_list[1:]:
        if first.easz_nt_seq != cur.easz_nt_seq:
            #conflict in easz resolution functions.. should not happen
            return None 
    return ild_codegen.get_derived_op_getter_fn(first.easz_nt_seq, _easz_token)