mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
consume trivias for type/const def
This commit is contained in:
parent
df591a1e48
commit
58139c558a
@ -248,9 +248,8 @@ fn n_attached_trivias<'a>(
|
||||
kind: SyntaxKind,
|
||||
trivias: impl Iterator<Item = (SyntaxKind, &'a str)>,
|
||||
) -> usize {
|
||||
// FIXME: parse attached trivias of CONST_DEF/TYPE_DEF
|
||||
match kind {
|
||||
STRUCT_DEF | ENUM_DEF | FN_DEF | TRAIT_DEF | MODULE => {
|
||||
CONST_DEF | TYPE_DEF | STRUCT_DEF | ENUM_DEF | FN_DEF | TRAIT_DEF | MODULE => {
|
||||
let mut res = 0;
|
||||
for (i, (kind, text)) in trivias.enumerate() {
|
||||
match kind {
|
||||
|
Loading…
Reference in New Issue
Block a user