def build(self, pre=None, shortest=False):
        """Build the ``Ref`` instance by fetching the rule from
        the GramFuzzer instance and building it

        :param list pre: The prerequisites list
        :param bool shortest: Whether or not the shortest reference-chain (most minimal) version of the field should be generated.
        """
        global REF_LEVEL
        REF_LEVEL += 1

        try:
            if pre is None:
                pre = []

            #print("{:04d} - {} - {}:{}".format(REF_LEVEL, shortest, self.cat, self.refname))

            definition = self.fuzzer.get_ref(self.cat, self.refname)
            res = utils.val(
                definition,
                pre,
                shortest=(shortest or REF_LEVEL >= self.max_recursion)
            )

            return res

        # this needs to happen no matter what
        finally:
            REF_LEVEL -= 1
def build(self, pre=None, shortest=False):
        
        global REF_LEVEL
        REF_LEVEL += 1

        try:
            if pre is None:
                pre = []

            

            definition = self.fuzzer.get_ref(self.cat, self.refname)
            res = utils.val(
                definition,
                pre,
                shortest=(shortest or REF_LEVEL >= self.max_recursion)
            )

            return res

        
        finally:
            REF_LEVEL -= 1
def build ( self , pre = None , shortest = False ) : global REF_LEVEL REF_LEVEL += 1 try : if pre is None : pre = [ ] #print("{:04d} - {} - {}:{}".format(REF_LEVEL, shortest, self.cat, self.refname)) definition = self . fuzzer . get_ref ( self . cat , self . refname ) res = utils . val ( definition , pre , shortest = ( shortest or REF_LEVEL >= self . max_recursion ) ) return res # this needs to happen no matter what finally : REF_LEVEL -= 1
Build the ``Ref`` instance by fetching the rule from
        the GramFuzzer instance and building it

        :param list pre: The prerequisites list
        :param bool shortest: Whether or not the shortest reference-chain (most minimal) version of the field should be generated.
Build the Ref instance by fetching the rule from the GramFuzzer instance and building it