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

Method get_nested_value_attrs

compiler/fory_compiler/generators/rust.py:1425–1434  ·  view source on GitHub ↗
(self, field_type: FieldType)

Source from the content-addressed store, hash-verified

1423 return ", ".join(attrs) if attrs else None
1424
1425 def get_nested_value_attrs(self, field_type: FieldType) -> List[str]:
1426 attrs: List[str] = []
1427 if isinstance(field_type, PrimitiveType):
1428 encoding = self.get_encoding_attr(field_type)
1429 if encoding:
1430 attrs.append(encoding)
1431 nested = self.get_nested_field_attr(field_type)
1432 if nested:
1433 attrs.append(nested)
1434 return attrs
1435
1436 def is_union_type(
1437 self, field_type: FieldType, parent_stack: Optional[List[Message]]

Callers 1

get_nested_field_attrMethod · 0.95

Calls 3

get_encoding_attrMethod · 0.95
get_nested_field_attrMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected