bundles / papyri 0.0.10 / papyri / ts / TSVisitor / visit_reference
function
papyri.ts:TSVisitor.visit_reference
source: /papyri/ts.py :342
Signature
def visit_reference ( self , node : Node ) → list[Any] Summary
RST hyperlink references.
Extended Summary
Backticked form (\`Display <target>\`_): the grammar exposes name and optional uri children, plus a trailing _ node carrying either \`_ (named) or \`__ (anonymous).
Bare form (name_ / name__): leaf node with no children — the trailing underscore stays in the value and is stripped at resolution time, since the same lexical shape is also a Python identifier such as np.bool_.
Aliases
-
papyri.ts.TSVisitor.visit_reference