void
TokenCollector::visit (TraitItemType &item)
{
+ visit_items_as_lines (item.get_outer_attrs ());
auto id = item.get_identifier ().as_string ();
indentation ();
+
push (Rust::Token::make (TYPE, item.get_locus ()));
push (Rust::Token::make_identifier (Location (), std::move (id)));
push (Rust::Token::make (SEMICOLON, Location ()));
push (Rust::Token::make (RETURN_TYPE, Location ()));
visit (function.get_return_type ());
}
+ push (Rust::Token::make (SEMICOLON, Location ()));
}
void
push (Rust::Token::make_string (Location (), std::move (abi)));
}
- visit_items_as_block (block.get_extern_items (),
- {Rust::Token::make (SEMICOLON, Location ())});
+ visit_items_as_block (block.get_extern_items (), {});
}
static std::pair<TokenId, TokenId>