MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / check_identifier

Method check_identifier

aiscript-lexer/src/lib.rs:889–891  ·  view source on GitHub ↗
(&self, lexme: &str)

Source from the content-addressed store, hash-verified

887 }
888
889 pub fn check_identifier(&self, lexme: &str) -> bool {
890 self.current.kind == TokenType::Identifier && self.current.lexeme == lexme
891 }
892
893 pub fn check_next(&mut self, kind: TokenType) -> bool {
894 self.peek_next().map(|t| t.kind == kind) == Some(true)

Callers 2

parse_routeMethod · 0.80
parse_endpointMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected