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

Method current

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

Get the current token.

(self)

Source from the content-addressed store, hash-verified

154 return self.current().type == TokenType.EOF
155
156 def current(self) -> Token:
157 """Get the current token."""
158 if self.pos >= len(self.tokens):
159 return self.tokens[-1] # Return EOF
160 return self.tokens[self.pos]
161
162 def previous(self) -> Token:
163 """Get the previous token."""

Callers 15

at_endMethod · 0.95
checkMethod · 0.95
advanceMethod · 0.95
consumeMethod · 0.95
errorMethod · 0.95
parseMethod · 0.95
parse_packageMethod · 0.95
parse_option_valueMethod · 0.95
parse_importMethod · 0.95
parse_enumMethod · 0.95
parse_reservedMethod · 0.95
parse_enum_valueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected