Generate ast nodes for each ast trait

This commit is contained in:
Lukas Wirth 2021-09-21 15:52:11 +02:00
parent ba84b91e78
commit 6d6e0b8f21
6 changed files with 480 additions and 51 deletions

View file

@ -481,7 +481,7 @@ impl<'db> SemanticsImpl<'db> {
)
}
// This might not be the correct way to due this, but it works for now
// This might not be the correct way to do this, but it works for now
fn descend_node_into_attributes<N: AstNode>(&self, node: N) -> SmallVec<[N; 1]> {
let mut res = smallvec![];
let tokens = (|| {