(data_type)
| 1920 | |
| 1921 | @staticmethod |
| 1922 | def is_enum(data_type): |
| 1923 | assert isinstance(data_type, DataType), repr(data_type) |
| 1924 | if is_union_type(data_type): |
| 1925 | return all(is_void_type(f.data_type) for f in data_type.all_fields) |
| 1926 | else: |
| 1927 | return False |
| 1928 | |
| 1929 | @staticmethod |
| 1930 | def has_value(field): |
no outgoing calls
no test coverage detected