MCPcopy Create free account
hub / github.com/apache/fory / check

Method check

compiler/fory_compiler/frontend/proto/parser.py:65–66  ·  view source on GitHub ↗
(self, token_type: TokenType)

Source from the content-addressed store, hash-verified

63 return self.tokens[self.pos - 1]
64
65 def check(self, token_type: TokenType) -> bool:
66 return self.current().type == token_type
67
68 def match(self, *types: TokenType) -> bool:
69 for token_type in types:

Callers 15

matchMethod · 0.95
consumeMethod · 0.95
parseMethod · 0.95
parse_enumMethod · 0.95
parse_enum_valueMethod · 0.95
parse_messageMethod · 0.95
parse_oneofMethod · 0.95
parse_oneof_fieldMethod · 0.95
parse_fieldMethod · 0.95
parse_field_optionsMethod · 0.95
parse_reservedMethod · 0.95
parse_extensionsMethod · 0.95

Calls 1

currentMethod · 0.95

Tested by

no test coverage detected