Attach trivia to ast::Union nodes
This commit is contained in:
parent
c0459c5357
commit
6e6d75bbdc
1 changed files with 2 additions and 2 deletions
|
@ -147,8 +147,8 @@ fn n_attached_trivias<'a>(
|
|||
trivias: impl Iterator<Item = (SyntaxKind, &'a str)>,
|
||||
) -> usize {
|
||||
match kind {
|
||||
MACRO_CALL | MACRO_RULES | CONST | TYPE_ALIAS | STRUCT | ENUM | VARIANT | FN | TRAIT
|
||||
| MODULE | RECORD_FIELD | STATIC | USE => {
|
||||
MACRO_CALL | MACRO_RULES | CONST | TYPE_ALIAS | STRUCT | UNION | ENUM | VARIANT | FN
|
||||
| TRAIT | MODULE | RECORD_FIELD | STATIC | USE => {
|
||||
let mut res = 0;
|
||||
let mut trivias = trivias.enumerate().peekable();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue