mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Support more IDE features for asm operands
This commit is contained in:
parent
811905fce8
commit
95d8d8e697
13 changed files with 180 additions and 40 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue