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

Method consume

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

Source from the content-addressed store, hash-verified

851 }
852
853 pub fn consume(&mut self, kind: TokenType, message: &str) {
854 if self.check(kind) {
855 self.advance();
856 return;
857 }
858 self.error_at_current(message);
859 }
860
861 pub fn consume_either(&mut self, k1: TokenType, k2: TokenType, message: &str) {
862 if self.check_either(k1, k2) {

Callers 3

parse_directiveMethod · 0.45
parse_parametersMethod · 0.45
parse_arrayMethod · 0.45

Calls 3

checkMethod · 0.80
advanceMethod · 0.80
error_at_currentMethod · 0.80

Tested by

no test coverage detected