Fix faulty assertion when extracting function with macro call
This commit is contained in:
parent
72781085bb
commit
1ccfd0ceda
@ -787,7 +787,7 @@ fn token_at_offset(&self, offset: TextSize) -> TokenAtOffset<SyntaxToken> {
|
||||
}
|
||||
}
|
||||
|
||||
/// find relevant `ast::PathExpr` for reference
|
||||
/// find relevant `ast::Expr` for reference
|
||||
///
|
||||
/// # Preconditions
|
||||
///
|
||||
@ -804,7 +804,6 @@ fn path_element_of_reference(
|
||||
stdx::never!(false, "cannot find path parent of variable usage: {:?}", token);
|
||||
None
|
||||
})?;
|
||||
stdx::always!(matches!(path, ast::Expr::PathExpr(_)));
|
||||
Some(path)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user