remove some warnings
This commit is contained in:
parent
a099c01734
commit
5a51764cff
|
@ -2377,6 +2377,7 @@ impl<'a> CodeGenerator<'a> {
|
||||||
.functions
|
.functions
|
||||||
.get(key)
|
.get(key)
|
||||||
.unwrap_or_else(|| panic!("Missing Function Definition"));
|
.unwrap_or_else(|| panic!("Missing Function Definition"));
|
||||||
|
|
||||||
let params = func
|
let params = func
|
||||||
.arguments
|
.arguments
|
||||||
.iter()
|
.iter()
|
||||||
|
@ -2399,6 +2400,8 @@ impl<'a> CodeGenerator<'a> {
|
||||||
body.clone(),
|
body.clone(),
|
||||||
)
|
)
|
||||||
.hoist_over(node_to_edit.clone());
|
.hoist_over(node_to_edit.clone());
|
||||||
|
} else {
|
||||||
|
todo!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@ use std::sync::Arc;
|
||||||
use indexmap::IndexMap;
|
use indexmap::IndexMap;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
ast::{Function, TypedDataType, TypedFunction},
|
ast::TypedDataType,
|
||||||
builtins::bool,
|
builtins::bool,
|
||||||
gen_uplc::builder::{lookup_data_type_by_tipo, DataTypeKey, FunctionAccessKey},
|
gen_uplc::builder::{lookup_data_type_by_tipo, DataTypeKey, FunctionAccessKey},
|
||||||
tipo::{TypeVar, ValueConstructorVariant},
|
tipo::TypeVar,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
@ -14,10 +14,7 @@ use crate::{
|
||||||
tipo::Type,
|
tipo::Type,
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::{
|
use super::tree::{AirExpression, AirStatement, AirTree};
|
||||||
air::Air,
|
|
||||||
tree::{AirExpression, AirStatement, AirTree, TreePath},
|
|
||||||
};
|
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub enum CodeGenFunction {
|
pub enum CodeGenFunction {
|
||||||
|
@ -330,10 +327,6 @@ pub fn monomorphize(air_tree: &mut AirTree, mono_types: &IndexMap<u64, Arc<Type>
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn function_deps(air_tree: &mut AirTree, mono_types: &IndexMap<u64, Arc<Type>>) {
|
|
||||||
air_tree.traverse_tree_with(&mut |air_tree: &mut AirTree, _| {});
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn erase_opaque_type_operations(
|
pub fn erase_opaque_type_operations(
|
||||||
air_tree: &mut AirTree,
|
air_tree: &mut AirTree,
|
||||||
data_types: &IndexMap<DataTypeKey, &TypedDataType>,
|
data_types: &IndexMap<DataTypeKey, &TypedDataType>,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use indexmap::IndexSet;
|
use indexmap::IndexSet;
|
||||||
use std::{borrow::BorrowMut, path, slice::Iter, sync::Arc};
|
use std::{borrow::BorrowMut, slice::Iter, sync::Arc};
|
||||||
use uplc::{builder::EXPECT_ON_LIST, builtins::DefaultFunction};
|
use uplc::{builder::EXPECT_ON_LIST, builtins::DefaultFunction};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
@ -1751,7 +1751,7 @@ impl AirTree {
|
||||||
&'a mut self,
|
&'a mut self,
|
||||||
tree_path_iter: &mut Iter<(usize, usize)>,
|
tree_path_iter: &mut Iter<(usize, usize)>,
|
||||||
) -> &'a mut AirTree {
|
) -> &'a mut AirTree {
|
||||||
if let Some((depth, index)) = tree_path_iter.next() {
|
if let Some((_depth, index)) = tree_path_iter.next() {
|
||||||
let mut children_nodes = vec![];
|
let mut children_nodes = vec![];
|
||||||
match self {
|
match self {
|
||||||
AirTree::Statement {
|
AirTree::Statement {
|
||||||
|
|
Loading…
Reference in New Issue