File tree 4 files changed +411
-1
lines changed
4 files changed +411
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ mod standard;
26
26
mod static_expression;
27
27
mod target;
28
28
29
+ // @TODO consider moving facade into analysis
30
+ pub ( crate ) use { lock:: ReadGuard , root:: AnalysisData } ;
31
+
29
32
#[ cfg( test) ]
30
33
pub ( crate ) mod tests;
31
34
pub ( crate ) use root:: { Library , LockedUnit } ;
Original file line number Diff line number Diff line change @@ -261,10 +261,11 @@ impl Library {
261
261
} )
262
262
}
263
263
264
+ // @TODO optimize O() complexity
264
265
pub ( crate ) fn secondary_units < ' a > (
265
266
& ' a self ,
266
267
primary : & ' a Symbol ,
267
- ) -> impl Iterator < Item = & ' a LockedUnit > {
268
+ ) -> impl Iterator < Item = & ' a LockedUnit > + ' a {
268
269
self . units . iter ( ) . filter_map ( move |( key, value) | match key {
269
270
UnitKey :: Secondary ( sym, _) if primary == sym => Some ( value) ,
270
271
_ => None ,
You can’t perform that action at this time.
0 commit comments