mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
Since the analysis context initialization may trigger events (e.g. "prelude file parsed"), language bindings (in particular Python) may need to create/register their wrapper around the context that is just created so that they can use that wrapper when invoking the callback. Having allocation and initialization as a single atomic step makes this impossible: this change splits them in the C API and update the Python/OCaml bindings to allow this. TN: VA12-016