Context AST Common Object
The Context
is attached to each AST node via the context
attribute (see the AstElement
documentation for more information).
The exact type attached to each node depends on the language. For example, for python, the PythonNodeContext
is attached.
Attributes
There is the element in the context object.
code
(type string): the code being analyzed.
See Also
- PythonNodeContext that inherits
Context
and it attached to each Python AST node. - JavaScriptNodeContext that inherits
Context
and it attached to each JavaScript or TypeScript AST node.