Add 'diagnostic' to the prelude, as well as companion functions.
This is not fully satisfactory as it pollutes a bit the prelude. Ideally, those functions should only be visible and usable by the underlying trace code. But for now, we'll just go with it.
This commit is contained in:
@@ -9,7 +9,7 @@ Schema {
|
||||
Var {
|
||||
tipo: RefCell {
|
||||
value: Generic {
|
||||
id: 35,
|
||||
id: 64,
|
||||
},
|
||||
},
|
||||
alias: None,
|
||||
|
||||
@@ -130,7 +130,7 @@ where
|
||||
module_types.insert("aiken".to_string(), builtins::prelude(&id_gen));
|
||||
module_types.insert("aiken/builtin".to_string(), builtins::plutus(&id_gen));
|
||||
|
||||
let functions = builtins::prelude_functions(&id_gen);
|
||||
let functions = builtins::prelude_functions(&id_gen, &module_types);
|
||||
|
||||
let data_types = builtins::prelude_data_types(&id_gen);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ Schema {
|
||||
Var {
|
||||
tipo: RefCell {
|
||||
value: Generic {
|
||||
id: 35,
|
||||
id: 64,
|
||||
},
|
||||
},
|
||||
alias: None,
|
||||
|
||||
@@ -1328,7 +1328,7 @@ mod test {
|
||||
.last()
|
||||
.expect("No test found in declared src?");
|
||||
|
||||
let mut functions = builtins::prelude_functions(&id_gen);
|
||||
let mut functions = builtins::prelude_functions(&id_gen, &module_types);
|
||||
let mut data_types = builtins::prelude_data_types(&id_gen);
|
||||
ast.register_definitions(&mut functions, &mut data_types);
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ impl TestProject {
|
||||
module_types.insert("aiken".to_string(), builtins::prelude(&id_gen));
|
||||
module_types.insert("aiken/builtin".to_string(), builtins::plutus(&id_gen));
|
||||
|
||||
let functions = builtins::prelude_functions(&id_gen);
|
||||
let functions = builtins::prelude_functions(&id_gen, &module_types);
|
||||
let data_types = builtins::prelude_data_types(&id_gen);
|
||||
|
||||
TestProject {
|
||||
|
||||
Reference in New Issue
Block a user