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

Method message_has_unions

compiler/fory_compiler/generators/cpp.py:1172–1178  ·  view source on GitHub ↗
(self, message: Message)

Source from the content-addressed store, hash-verified

1170 return False
1171
1172 def message_has_unions(self, message: Message) -> bool:
1173 if message.nested_unions:
1174 return True
1175 for nested_msg in message.nested_messages:
1176 if self.message_has_unions(nested_msg):
1177 return True
1178 return False
1179
1180 def collect_union_serializers(
1181 self,

Callers 1

schema_has_unionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected