refactor: leverage HasAttrs for code brevity

This commit is contained in:
Ryo Yoshida 2023-03-04 00:24:03 +09:00
parent 2e7d2c2d04
commit 356d12eae4
No known key found for this signature in database
GPG key ID: E25698A930586171
3 changed files with 47 additions and 36 deletions

View file

@ -129,6 +129,13 @@ where
}
}
impl<L, R> HasAttrs for Either<L, R>
where
L: HasAttrs,
R: HasAttrs,
{
}
mod support {
use super::{AstChildren, AstNode, SyntaxKind, SyntaxNode, SyntaxToken};