def _lift_attribute_reference(location, *args): dict_lookup = None args = list(args) if len(args) and isinstance(args[-1], DictLookup): dict_lookup = args.pop() return AttributeReference('.'.join(args), dict_lookup, location)
def _lift_attribute_reference(location, *ids): return AttributeReference('.'.join(ids), location)