mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-14 07:38:47 +00:00
Range formatting API (#9635)
This commit is contained in:
parent
6bb126415d
commit
ce14f4dea5
65 changed files with 3273 additions and 762 deletions
|
@ -5978,9 +5978,10 @@ impl<'a> AnyNodeRef<'a> {
|
|||
)
|
||||
}
|
||||
|
||||
pub fn visit_preorder<'b, V>(&'b self, visitor: &mut V)
|
||||
pub fn visit_preorder<'b, V>(self, visitor: &mut V)
|
||||
where
|
||||
V: PreorderVisitor<'b> + ?Sized,
|
||||
'a: 'b,
|
||||
{
|
||||
match self {
|
||||
AnyNodeRef::ModModule(node) => node.visit_preorder(visitor),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue