We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c3f7fc commit b6af2aeCopy full SHA for b6af2ae
2 files changed
src/ast/comments.rs
@@ -33,7 +33,7 @@ impl Comments {
33
/// last accepted comment. In other words, this method will skip the
34
/// comment if its comming out of order (as encountered in the parsed
35
/// source code.)
36
- pub(crate) fn offer(&mut self, comment: CommentWithSpan) {
+ pub fn offer(&mut self, comment: CommentWithSpan) {
37
if self
38
.0
39
.last()
src/parser/mod.rs
@@ -559,7 +559,7 @@ impl<'a> Parser<'a> {
559
}
560
561
/// Consumes this parser returning comments from the parsed token stream.
562
- fn into_comments(self) -> comments::Comments {
+ pub fn into_comments(self) -> comments::Comments {
563
let mut comments = comments::Comments::default();
564
for t in self.tokens.into_iter() {
565
match t.token {
0 commit comments