Пример #1
0
 def codegen(context, builder, sig, args):
     [slicetype] = sig.args
     [sliceobj] = args
     slice = context.make_helper(builder, slicetype, sliceobj)
     result_size = slicing.get_slice_length(builder, slice)
     return result_size
Пример #2
0
 def codegen(context, builder, sig, args):
     [slicetype] = sig.args
     [sliceobj] = args
     slice = context.make_helper(builder, slicetype, sliceobj)
     result_size = slicing.get_slice_length(builder, slice)
     return result_size