API reference

python:arxjit:arxjit.source

module source

arxjit.source

Source: packages/arxjit/src/arxjit/source.py:1

Source extraction for @jit-decorated Python functions.

First stage of the arxjit pipeline: retrieve the source of a decorated function, parse it with Python's built-in ast module, and drop the decorators. The source text is never modified: an indented definition (a nested function or a method) is parsed inside a synthetic "if True:" wrapper instead of being dedented, which preserves string literal content and keeps every node's line and column pointing into the real file. Every failure raises SourceExtractionError carrying structured diagnostics; validating the parsed body against the supported Python subset is a later stage and is not done here.

Classes

Functions

Search documentation

Type to search.