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

Method is_weak_ref

compiler/fory_compiler/generators/cpp.py:586–587  ·  view source on GitHub ↗
(self, options: dict)

Source from the content-addressed store, hash-verified

584 return isinstance(resolved, Message)
585
586 def is_weak_ref(self, options: dict) -> bool:
587 return options.get("weak_ref") is True
588
589 def get_field_weak_ref(self, field: Field) -> bool:
590 return self.is_weak_ref(field.ref_options)

Callers 6

get_field_weak_refMethod · 0.95
get_element_weak_refMethod · 0.95
generate_typeMethod · 0.95
collect_includesMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected