mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
internal: Remove previous_token
field from CompletionContext
This commit is contained in:
parent
90483321ee
commit
bcf10cde13
7 changed files with 50 additions and 37 deletions
|
@ -181,8 +181,16 @@ pub fn completions(
|
|||
completions::extern_abi::complete_extern_abi(acc, ctx, expanded);
|
||||
completions::format_string::format_string(acc, ctx, original, expanded);
|
||||
}
|
||||
IdentContext::UnexpandedAttrTT { fake_attribute_under_caret: Some(attr) } => {
|
||||
completions::attribute::complete_known_attribute_input(acc, ctx, attr);
|
||||
IdentContext::UnexpandedAttrTT {
|
||||
colon_prefix,
|
||||
fake_attribute_under_caret: Some(attr),
|
||||
} => {
|
||||
completions::attribute::complete_known_attribute_input(
|
||||
acc,
|
||||
ctx,
|
||||
colon_prefix,
|
||||
attr,
|
||||
);
|
||||
}
|
||||
IdentContext::UnexpandedAttrTT { .. } | IdentContext::String { .. } => (),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue