9356: internal: Move out and regroup more completion tests r=Veykril a=Veykril

bors r+

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
bors[bot] 2021-06-21 13:15:12 +00:00 committed by GitHub
commit c69f762f26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 557 additions and 677 deletions

View file

@ -286,8 +286,11 @@ impl<'a> CompletionContext<'a> {
)
}
pub(crate) fn expect_record_field(&self) -> bool {
matches!(self.completion_location, Some(ImmediateLocation::RecordField))
pub(crate) fn expect_field(&self) -> bool {
matches!(
self.completion_location,
Some(ImmediateLocation::RecordField | ImmediateLocation::TupleField)
)
}
pub(crate) fn in_use_tree(&self) -> bool {