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

Method schema_has_unions

compiler/fory_compiler/generators/cpp.py:1161–1170  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1159 )
1160
1161 def schema_has_unions(self) -> bool:
1162 for union in self.schema.unions:
1163 if not self.is_imported_type(union):
1164 return True
1165 for message in self.schema.messages:
1166 if self.is_imported_type(message):
1167 continue
1168 if self.message_has_unions(message):
1169 return True
1170 return False
1171
1172 def message_has_unions(self, message: Message) -> bool:
1173 if message.nested_unions:

Callers 1

generate_headerMethod · 0.95

Calls 2

is_imported_typeMethod · 0.95
message_has_unionsMethod · 0.95

Tested by

no test coverage detected