MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / match_token

Method match_token

aiscript-lexer/src/lib.rs:869–876  ·  view source on GitHub ↗
(&mut self, kind: TokenType)

Source from the content-addressed store, hash-verified

867 }
868
869 pub fn match_token(&mut self, kind: TokenType) -> bool {
870 if self.check(kind) {
871 self.advance();
872 true
873 } else {
874 false
875 }
876 }
877
878 pub fn peek_next(&mut self) -> Option<Token<'a>> {
879 self.lexer.peek().copied()

Callers 15

declarationMethod · 0.80
use_declarationMethod · 0.80
statementMethod · 0.80
enum_declarationMethod · 0.80
class_declarationMethod · 0.80
parse_class_fieldMethod · 0.80
method_declarationMethod · 0.80
func_declarationMethod · 0.80
parse_function_returnMethod · 0.80
lambdaMethod · 0.80
pipe_arrowMethod · 0.80
var_declarationMethod · 0.80

Calls 2

checkMethod · 0.80
advanceMethod · 0.80

Tested by

no test coverage detected