"path+anchor->tag", or, get bluebox given path+anchor

There exists xref-tag->path+anchor.

I don't see the reverse -- anything like "xref-path+anchor->tag".

Is it possible for me to write this myself, and if so, how?


Why I ask: Given a documentation path + anchor, I want to look up a bluebox using fetch-blueboxes-strs, but that takes a tag.

[Why I ask that: I have a documentation path and anchor from check-syntax analysis, and would like to use that -- at a time where I no longer have the original expanded syntax, and therefore can't use xref-binding->definition-tag.

Although it's possible to synthesize some identifier from source text, that's not always reliable.

Although it's possible to eagerly calculate this for all path+anchor annotations, that's wasteful and slow.]

Oh. Duh. The anchor is the tag, albeit HTML-ified to be a suitable anchor.

The syncheck:add-docs-menu supplies that original tag value, as well as the HTML-ized anchor equivalent.

So I think I'm all set. (Will wait to close the question until I confirm.)