| 83 | |
| 84 | |
| 85 | class Struct(object): |
| 86 | def __init__(self, name, fields): |
| 87 | self.name = name |
| 88 | self.fields = fields |
| 89 | self.field_names = [n.name for n in self.fields] |
| 90 | self.depends = [f.type for f in self.fields] |
| 91 | |
| 92 | def __str__(self): |
| 93 | return "[%s]" % "], [".join([str(f) for f in self.fields]) |
| 94 | |
| 95 | def has_vla(self): |
| 96 | for f in self.fields: |
| 97 | if f.has_vla(): |
| 98 | return True |
| 99 | return False |
| 100 | |
| 101 | |
| 102 | class Enum(SimpleType): |
no outgoing calls
no test coverage detected