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

Method check

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

Source from the content-addressed store, hash-verified

880 }
881
882 pub fn check(&self, kind: TokenType) -> bool {
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 }

Callers 15

consumeMethod · 0.80
match_tokenMethod · 0.80
check_eitherMethod · 0.80
parse_typeMethod · 0.80
agent_declarationMethod · 0.80
enum_declarationMethod · 0.80
class_declarationMethod · 0.80
parse_class_fieldMethod · 0.80
func_declarationMethod · 0.80
parse_function_returnMethod · 0.80
pipe_arrowMethod · 0.80
for_statementMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected