mirror of
https://github.com/powdr-labs/powdr.git
synced 2026-01-10 13:18:04 -05:00
Started as a small fix but expanded to a complete refactoring of `PublicDeclaration` and `PublicReference`. Now public reference work the same way as any reference and the syntax is without the colon (`:out` -> `out`). `PublicDeclaration` are also put under definitions in the analyzer. Both public reference and public declaration use the absolute path, so it's easy to refer from one to the other now. This is needed for #2502 to match public reference to public declaration in the backend. Currently, different namespaces can have public references with the same name, and it will confuse the backend on which public reference value to fetch.