pub trait LexerAssert<'a> {
// Required methods
fn assert_next(
&mut self,
_: SyntaxKind,
_: &str,
_: Range<usize>,
) -> &mut Lexer<'a>;
fn assert_next_error(
&mut self,
_: SyntaxKind,
_: &str,
_: &str,
_: Range<usize>,
) -> &mut Lexer<'a>;
fn assert_end(&mut self, _: usize) -> &mut Lexer<'a>;
}
Expand description
This is an extension trait for the following impl:
ⓘ
#[extension(pub trait LexerAssert)]
impl< 'a > for Lexer < 'a >