2020-06-26 14:56:36 +02:00
|
|
|
this module annotates Python abstact syntax trees (ASTs) with the
|
|
|
|
positions of tokens and text in the source code that generated them
|
2019-11-03 01:01:41 +01:00
|
|
|
|
2020-06-26 14:56:36 +02:00
|
|
|
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.
|
2019-11-03 01:01:41 +01:00
|
|
|
|
|
|
|
It works with Python2 and Python3 and can annotate both trees built by
|
|
|
|
ast, and those built by astroid.
|
|
|
|
|
2020-06-26 14:56:36 +02:00
|
|
|
This (source) is downloaded from pypi.org/projects/asttokens as the
|
|
|
|
github site may not have a complete sourcecode zip.
|