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

Method check_either

aiscript-lexer/src/lib.rs:885–887  ·  view source on GitHub ↗
(&self, k1: TokenType, k2: TokenType)

Source from the content-addressed store, hash-verified

883 self.current.kind == kind
884 }
885 pub fn check_either(&self, k1: TokenType, k2: TokenType) -> bool {
886 self.check(k1) || self.check(k2)
887 }
888
889 pub fn check_identifier(&self, lexme: &str) -> bool {
890 self.current.kind == TokenType::Identifier && self.current.lexeme == lexme

Callers 2

consume_eitherMethod · 0.80
parse_function_returnMethod · 0.80

Calls 1

checkMethod · 0.80

Tested by

no test coverage detected