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

@ -200,6 +200,7 @@ impl Definition {
.and_then(syn_ctx_is_root)
}
}
Definition::InlineAsmOperand(it) => name_range(it, sema).and_then(syn_ctx_is_root),
Definition::BuiltinType(_)
| Definition::BuiltinLifetime(_)
| Definition::BuiltinAttr(_)
@ -207,8 +208,6 @@ impl Definition {
| Definition::ToolModule(_)
| Definition::TupleField(_)
| Definition::InlineAsmRegOrRegClass(_) => return None,
// FIXME:
Definition::InlineAsmOperand(_) => return None,
// FIXME: This should be doable in theory
Definition::DeriveHelper(_) => return None,
};