remove some warnings
This commit is contained in:
parent
a099c01734
commit
5a51764cff
|
@ -2377,6 +2377,7 @@ impl<'a> CodeGenerator<'a> {
|
|||
.functions
|
||||
.get(key)
|
||||
.unwrap_or_else(|| panic!("Missing Function Definition"));
|
||||
|
||||
let params = func
|
||||
.arguments
|
||||
.iter()
|
||||
|
@ -2399,6 +2400,8 @@ impl<'a> CodeGenerator<'a> {
|
|||
body.clone(),
|
||||
)
|
||||
.hoist_over(node_to_edit.clone());
|
||||
} else {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@ use std::sync::Arc;
|
|||
use indexmap::IndexMap;
|
||||
|
||||
use crate::{
|
||||
ast::{Function, TypedDataType, TypedFunction},
|
||||
ast::TypedDataType,
|
||||
builtins::bool,
|
||||
gen_uplc::builder::{lookup_data_type_by_tipo, DataTypeKey, FunctionAccessKey},
|
||||
tipo::{TypeVar, ValueConstructorVariant},
|
||||
tipo::TypeVar,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
|
@ -14,10 +14,7 @@ use crate::{
|
|||
tipo::Type,
|
||||
};
|
||||
|
||||
use super::{
|
||||
air::Air,
|
||||
tree::{AirExpression, AirStatement, AirTree, TreePath},
|
||||
};
|
||||
use super::tree::{AirExpression, AirStatement, AirTree};
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
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(
|
||||
air_tree: &mut AirTree,
|
||||
data_types: &IndexMap<DataTypeKey, &TypedDataType>,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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 crate::{
|
||||
|
@ -1751,7 +1751,7 @@ impl AirTree {
|
|||
&'a mut self,
|
||||
tree_path_iter: &mut Iter<(usize, usize)>,
|
||||
) -> &'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![];
|
||||
match self {
|
||||
AirTree::Statement {
|
||||
|
|
Loading…
Reference in New Issue