bundles / papyri 0.0.10 / papyri / tree / DirectiveVisiter / collect_substitutions
function
papyri.tree:DirectiveVisiter.collect_substitutions
source: /papyri/tree.py :825
Signature
def collect_substitutions ( self , * sections : Section ) → None Summary
Pre-scan sections for SubstitutionDef nodes to build the substitution map.
Extended Summary
Call this on all sections that will be visited before calling visit(), so that refs are resolved even when the def appears after the ref in document order.
Aliases
-
papyri.tree.DirectiveVisiter.collect_substitutions