pub fn nested_variant_completions(
ty: TyId,
tys: &Types,
outer_variant: &str,
doc_text: &str,
files: Option<&HashMap<PathBuf, String>>,
) -> Vec<Completion>Expand description
v0.145 (ADR 0169, nested-variant completion for #565): the variants offerable
inside OuterVariant(‸ within a match arm — the payload field type’s
variants. Resolves the single-field payload type of outer_variant on the
scrutinee ty (the same shape as bynk-emit’s payload_field_ty):
Result/Option/HttpResult generic args come straight off the Ty, and a
user-declared sum’s field type is walked from source. Ok/Err inside
Some(‸) on an Option[Result[…]] is the headline case.