aiken/crates/aiken-project/src/blueprint
KtorZ c2dc47fa0b
Refactor creation of CodeGenerator and management of known data_types and functions.
This was a mess to say to the least. The mess started when we wanted
  to make all definitions in codegen use immutable maps of references --
  which was and still is a good idea. Yet, the population of the data
  types and functions definitions was done somehow in a separate step,
  in a rather ad-hoc manner.

  This commit changes that to ensure the project's data_types and
  functions are populated while type checking the AST such that we need
  not to redo it after.

  The code for registering the data type definitions and function
  definitions was also duplicated in at least 3 places. It is now a
  method of the TypedModule.

  Note: this change isn't only just cosmetic, it's also necessary for
  the commit that follows which aims at adding tests to the set of
  available function definitions, thus allowing to make property tests
  callable.
2024-03-03 19:33:26 +01:00
..
snapshots Forbid opaque types in the application binary interface. 2024-03-03 13:55:10 +01:00
definitions.rs chore: clippy fixes 2024-02-13 20:26:12 -05:00
error.rs chore: change how we depend on pallas 2024-01-24 21:26:48 -05:00
mod.rs Add compiler's version to blueprint. 2023-10-06 14:17:55 +02:00
parameter.rs Factor out error (schema mismatch) creation during blueprint validation. 2023-04-08 08:57:04 +02:00
schema.rs Forbid opaque types in the application binary interface. 2024-03-03 13:55:10 +01:00
validator.rs Refactor creation of CodeGenerator and management of known data_types and functions. 2024-03-03 19:33:26 +01:00