+ if let Some(pattern_ctx) = &ctx.pattern_ctx {
+ crate::completions::flyimport::import_on_the_fly_pat(&mut acc, &ctx, pattern_ctx);
+ }
+ if let crate::context::IdentContext::NameRef(name_ref_ctx) = &ctx.ident_ctx {
+ match &name_ref_ctx.kind {
+ Some(NameRefKind::Path(path)) => {
+ crate::completions::flyimport::import_on_the_fly_path(&mut acc, &ctx, path);
+ }
+ Some(NameRefKind::DotAccess(dot_access)) => {
+ crate::completions::flyimport::import_on_the_fly_dot(&mut acc, &ctx, dot_access);
+ }
+ _ => (),
+ }
+ }