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

Method is_numeric_field

compiler/fory_compiler/generators/cpp.py:719–722  ·  view source on GitHub ↗
(self, field: Field)

Source from the content-addressed store, hash-verified

717 return f"{member_name} == {other_member}"
718
719 def is_numeric_field(self, field: Field) -> bool:
720 if not isinstance(field.field_type, PrimitiveType):
721 return False
722 return field.field_type.kind in self.NUMERIC_PRIMITIVES
723
724 def is_string_field(self, field: Field) -> bool:
725 return isinstance(field.field_type, PrimitiveType) and (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected