diff --git a/src/protocol/parser/tokens.rs b/src/protocol/parser/tokens.rs index ccf6982e268efdeaf5a532c9644a6803fd9d148a..f3f61764315b9abefdef709ab89cea174e080af6 100644 --- a/src/protocol/parser/tokens.rs +++ b/src/protocol/parser/tokens.rs @@ -78,7 +78,7 @@ pub enum TokenKind { impl TokenKind { /// Returns true if the next expected token is the special `TokenKind::SpanEnd` token. This is /// the case for tokens of variable length (e.g. an identifier). - fn has_span_end(&self) -> bool { + pub(crate) fn has_span_end(&self) -> bool { return *self <= TokenKind::BlockComment }