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

Method parse_option_statement

compiler/fory_compiler/frontend/proto/parser.py:165–171  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

163 return path
164
165 def parse_option_statement(self) -> tuple[str, object]:
166 self.consume(TokenType.OPTION, "Expected 'option'")
167 name = self.parse_option_name()
168 self.consume(TokenType.EQUALS, "Expected '=' after option name")
169 value = self.parse_option_value()
170 self.consume(TokenType.SEMI, "Expected ';' after option")
171 return name, value
172
173 def parse_enum(self) -> ProtoEnum:
174 start = self.current()

Callers 5

parseMethod · 0.95
parse_enumMethod · 0.95
parse_messageMethod · 0.95
parse_serviceMethod · 0.95
parse_rpc_methodMethod · 0.95

Calls 3

consumeMethod · 0.95
parse_option_nameMethod · 0.95
parse_option_valueMethod · 0.95

Tested by

no test coverage detected