Example #1
0
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)
Example #2
0
def _lift_attribute_reference(location, *ids):
    return AttributeReference('.'.join(ids), location)