Support more IDE features for asm operands

This commit is contained in:
Lukas Wirth 2024-09-05 13:19:02 +02:00
parent 811905fce8
commit 95d8d8e697
13 changed files with 180 additions and 40 deletions

View file

@ -576,7 +576,7 @@ impl<'db> SemanticsImpl<'db> {
let (owner, (expr, asm_parts)) = source_analyzer.as_asm_parts(asm.as_ref())?;
let res = asm_parts
.iter()
.map(|&(range, index)| {
.map(|&(range, index, _)| {
(
range + quote.end(),
Some(Either::Right(InlineAsmOperand { owner, expr, index })),