This seems to work for me, even though `pfds/trie` is in a 3rd-part pkg.
#lang racket
(require scribble/blueboxes scribble/xref setup/xref)
(define (find-definition-tag identifier)
(xref-binding->definition-tag
(load-collections-xref)
identifier
0))
(require pfds/trie)
(fetch-blueboxes-strs (find-definition-tag #'tries))
Sam
On Thu, Jan 14, 2016 at 6:28 PM, Jack Firth <[email protected]> wrote:
> Ah hah! Thanks for that link Robby. The appropriate definition tag for
> list-ref is '(def ('#%kernel list-ref)). Extracted this function for figuring
> out the definition tag of an identifier in an installed module:
>
> (define (find-definition-tag identifier)
> (xref-binding->definition-tag
> (load-collections-xref)
> identifier
> 0))
>
> Although now I'm hitting problems where fetch-blueboxes-strs works perfectly
> fine with anything in the main distribution, but fails on bindings from third
> party packages.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.