Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/fory
/ parse_schema
Function
parse_schema
compiler/fory_compiler/tests/test_auto_id.py:26–29 ·
view source on GitHub ↗
(source: str)
Source
from the content-addressed store, hash-verified
24
25
26
def
parse_schema(source: str):
27
lexer = Lexer(source)
28
parser = Parser(lexer.tokenize())
29
return
parser.parse()
30
31
32
def
test_auto_id_generation_for_message_and_union():
Callers
9
test_auto_id_generation_for_message_and_union
Function · 0.70
test_union_case_ids_must_be_non_negative
Function · 0.70
test_alias_used_for_auto_id
Function · 0.70
test_package_alias_used_for_auto_id
Function · 0.70
test_package_and_type_alias_used_for_auto_id
Function · 0.70
test_auto_id_generation_for_enum
Function · 0.70
test_auto_id_disabled_keeps_name_registration
Function · 0.70
test_explicit_id_not_overwritten
Function · 0.70
test_auto_id_conflict_requires_explicit_resolution
Function · 0.70
Calls
4
tokenize
Method · 0.95
parse
Method · 0.95
Lexer
Class · 0.90
Parser
Class · 0.90
Tested by
no test coverage detected