new_name = tracer.get_var_name(depth=2 + src_loc_at, default=None)
return cls(other.layout, new_name)
- def __init__(self, layout, name=None, *, fields=None):
+ def __init__(self, layout, name=None, src_loc_at=0, *, fields=None):
if name is None:
- name = tracer.get_var_name(default=None)
+ name = tracer.get_var_name(depth=2 + src_loc_at, default=None)
self.name = name
- self.src_loc = tracer.get_src_loc()
+ self.src_loc = tracer.get_src_loc(src_loc_at)
def concat(a, b):
if a is None: