{ } Raw JSON

bundles / papyri latest / papyri / ts / TSVisitor / __init__

function

papyri.ts:TSVisitor.__init__

source: /papyri/ts.py :194

Signature

def   __init__ ( self buf : bytes qa : str / )

Summary

A tree-visitor for TreeSitter nodes to convert into Papyri nodes.

Parameters

buf: bytes

bytes buffer of the document parsed by tree-sitter.

qa: str

fully qualified name of the object for which we are parsing the documentation. This is used only in log messages, and for debugging purpose.

Aliases

  • papyri.ts.TSVisitor.__init__