def match(self, ctxt, completions):
        prevname = ctxt.productionname
        try:
            rule = ctxt.get_production_by_name(self.arg)
        except __HOLE__:
            raise ValueError("Can't look up production rule named %r" % (self.arg,))
        output = rule.match(ctxt.with_production_named(self.arg), completions)
        return [c.with_production_named(prevname) for c in output]
dataset/ETHPy150Open francelabs/datafari/cassandra/pylib/cqlshlib/pylexotron.py/rule_reference.match