@@ -18,7 +18,7 @@ pub mod storage;
1818pub mod transmutation;
1919pub mod bounds;
2020
21- pub type TypedGlobalScope < F , I > = GlobalScopeStorage < Type , RawType , F , I > ;
21+ pub type TypedGlobalScope = GlobalScopeStorage < Type , RawType > ;
2222
2323/// A function contained within a type.
2424pub type TypedFunction = ( Vec < ( u64 , TypeReference ) > , Option < TypeReference > ) ;
@@ -31,7 +31,7 @@ pub type RawTypeReference = usize;
3131/// Represents a basic type that has a size.
3232pub trait SizedType {
3333 /// Obtains the size of the type. The `compacted_size` parameter determines if the compacted size should be returned or not
34- fn get_size ( & self , t : & Type , compacted_size : bool , storage : & TypeStorage ) -> usize ;
34+ fn get_size ( & self , t : & Type , compacted_size : bool , storage : & TypedGlobalScope ) -> usize ;
3535}
3636
3737/// Represents a type that contains type parameters
@@ -46,20 +46,20 @@ pub trait TypeParamType {
4646/// Represents types that can contain functions and more
4747pub trait StructuredType {
4848 #[ must_use = "Must set the diagnostic position beforehand" ]
49- fn get_function ( & self , hash : u64 , storage : & TypeStorage ) -> DiagnosticResult < TypedFunction > ;
49+ fn get_function ( & self , hash : u64 , storage : & TypedGlobalScope ) -> DiagnosticResult < TypedFunction > ;
5050
5151 #[ must_use = "Must set the diagnostic position beforehand" ]
52- fn get_function_hash ( & self , hash : u64 , storage : & TypeStorage ) -> DiagnosticResult < usize > ;
52+ fn get_function_hash ( & self , hash : u64 , storage : & TypedGlobalScope ) -> DiagnosticResult < usize > ;
5353
5454 #[ must_use = "Must set the diagnostic position beforehand" ]
55- fn get_field ( & self , hash : u64 , storage : & TypeStorage ) -> DiagnosticResult < TypeReference > ;
55+ fn get_field ( & self , hash : u64 , storage : & TypedGlobalScope ) -> DiagnosticResult < TypeReference > ;
5656
5757 #[ must_use = "Must set the diagnostic position beforehand" ]
58- fn get_field_hash ( & self , hash : u64 , storage : & TypeStorage ) -> DiagnosticResult < usize > ;
58+ fn get_field_hash ( & self , hash : u64 , storage : & TypedGlobalScope ) -> DiagnosticResult < usize > ;
5959
6060 #[ must_use = "Must set the diagnostic position beforehand" ]
61- fn get_fields ( & self , storage : & TypeStorage ) -> Vec < u64 > ;
61+ fn get_fields ( & self , storage : & TypedGlobalScope ) -> Vec < u64 > ;
6262
6363 #[ must_use = "Must set the diagnostic position beforehand" ]
64- fn get_functions ( & self , storage : & TypeStorage ) -> Vec < u64 > ;
64+ fn get_functions ( & self , storage : & TypedGlobalScope ) -> Vec < u64 > ;
6565}
0 commit comments