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

Method parse_package

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

Source from the content-addressed store, hash-verified

149 return value
150
151 def parse_package(self) -> str:
152 self.consume(TokenType.PACKAGE, "Expected 'package'")
153 name = self.parse_full_ident()
154 self.consume(TokenType.SEMI, "Expected ';' after package declaration")
155 return name
156
157 def parse_import(self) -> str:
158 self.consume(TokenType.IMPORT, "Expected 'import'")

Callers 1

parseMethod · 0.95

Calls 2

consumeMethod · 0.95
parse_full_identMethod · 0.95

Tested by

no test coverage detected