Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ast/comments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Comments {
/// last accepted comment. In other words, this method will skip the
/// comment if its comming out of order (as encountered in the parsed
/// source code.)
pub(crate) fn offer(&mut self, comment: CommentWithSpan) {
pub fn offer(&mut self, comment: CommentWithSpan) {
if self
.0
.last()
Expand Down
2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ impl<'a> Parser<'a> {
}

/// Consumes this parser returning comments from the parsed token stream.
fn into_comments(self) -> comments::Comments {
pub fn into_comments(self) -> comments::Comments {
let mut comments = comments::Comments::default();
for t in self.tokens.into_iter() {
match t.token {
Expand Down
Loading