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

Method advance

compiler/fory_compiler/frontend/fdl/parser.py:185–190  ·  view source on GitHub ↗

Consume and return the current token.

(self)

Source from the content-addressed store, hash-verified

183 return False
184
185 def advance(self) -> Token:
186 """Consume and return the current token."""
187 token = self.current()
188 if not self.at_end():
189 self.pos += 1
190 return token
191
192 def consume(self, token_type: TokenType, message: str = None) -> Token:
193 """Consume a token of the expected type, or raise an error."""

Callers 13

matchMethod · 0.95
consumeMethod · 0.95
parse_packageMethod · 0.95
parse_option_valueMethod · 0.95
parse_reservedMethod · 0.95
parse_union_fieldMethod · 0.95
parse_fieldMethod · 0.95
parse_field_optionsMethod · 0.95
parse_ref_optionsMethod · 0.95
parse_rpc_methodMethod · 0.95
parse_type_optionsMethod · 0.95

Calls 2

currentMethod · 0.95
at_endMethod · 0.95

Tested by

no test coverage detected