def add_target_and_index()

in src/ext/guac.py [0:0]


    def add_target_and_index(self, name, sig, sig_node):

        # This function is inherited from the superclass (ObjectDescription).
        # The implementation is expected to override this function to define a
        # unique ID for the object being documented, assigning that ID to the
        # "sig_node" (signature node). The "name" received here is expected to
        # be unique and will be the value returned by a corresponding call to
        # handle_signature().

        targetid = '%s-instruction' % (name)
        sig_node['ids'].append(targetid)
        self.state.document.note_explicit_target(sig_node)
        self.env.domaindata[self.domain]['instruction'][targetid] = self.env.docname, sig