let single = skip_trivia_token(node.value.first_token()?, Direction::Next)?
== skip_trivia_token(node.value.last_token()?, Direction::Prev)?;
- Some(node.value.descendants().find_map(|it| {
+ node.value.descendants().find_map(|it| {
let first = skip_trivia_token(it.first_token()?, Direction::Next)?;
let first = ascend_call_token(db, &expansion, node.with_value(first))?;
}
Some(first.with_value(first.value.text_range().cover(last.value.text_range())))
- })?)
+ })
}
fn ascend_call_token(
) -> Result<CodeLens> {
let annotation = from_proto::annotation(&snap, code_lens)?;
- Ok(to_proto::code_lens(&snap, snap.analysis.resolve_annotation(annotation)?)?)
+ to_proto::code_lens(&snap, snap.analysis.resolve_annotation(annotation)?)
}
pub(crate) fn handle_document_highlight(