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

Method field_has_ref

compiler/fory_compiler/generators/rust.py:945–952  ·  view source on GitHub ↗
(self, field: Field)

Source from the content-addressed store, hash-verified

943 return False
944
945 def field_has_ref(self, field: Field) -> bool:
946 if field.ref:
947 return True
948 if isinstance(field.field_type, ListType):
949 return field.element_ref
950 if isinstance(field.field_type, MapType):
951 return field.field_type.value_ref
952 return False
953
954 def field_needs_safe_debug(
955 self, field: Field, parent_stack: Optional[List[Message]] = None

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected