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

Function add_message

compiler/fory_compiler/generators/kotlin.py:132–140  ·  view source on GitHub ↗
(message: Message, owners: List[Message])

Source from the content-addressed store, hash-verified

130 outputs.append((_kotlin_source_path(schema, name), kind))
131
132 def add_message(message: Message, owners: List[Message]) -> None:
133 add_type(message, owners, f"message {message.name}")
134 current_owners = [*owners, message]
135 for enum in message.nested_enums:
136 add_type(enum, current_owners, f"enum {enum.name}")
137 for union in message.nested_unions:
138 add_type(union, current_owners, f"union {union.name}")
139 for nested in message.nested_messages:
140 add_message(nested, current_owners)
141
142 for enum in schema.enums:
143 add_type(enum, [], f"enum {enum.name}")

Callers 5

add_messageMethod · 0.85
registration_orderMethod · 0.85
kotlin_output_pathsFunction · 0.85
add_messageMethod · 0.85
registration_orderMethod · 0.85

Calls 1

add_typeFunction · 0.70

Tested by

no test coverage detected