asttokens_python310

Annotate Python AST trees with source text and token information

Version

2.2.1-2
(2025-08-04)

Size

43.4

KiB

Repository

HaikuPorts
The asttokens module annotates Python abstract syntax trees (ASTs) with the positions of tokens and text in the source code that generated them.

It makes it possible for tools that work with logical AST nodes to find the particular text that resulted in those nodes, for example for automated refactoring or highlighting.