| 37 | |
| 38 | @dc.dataclass(repr=False) |
| 39 | class Class: |
| 40 | name: str |
| 41 | module: Module | Clinic |
| 42 | cls: Class | None |
| 43 | typedef: str |
| 44 | type_object: str |
| 45 | |
| 46 | def __post_init__(self) -> None: |
| 47 | self.parent = self.cls or self.module |
| 48 | self.classes: ClassDict = {} |
| 49 | self.functions: list[Function] = [] |
| 50 | |
| 51 | def __repr__(self) -> str: |
| 52 | return "<clinic.Class " + repr(self.name) + " at " + str(id(self)) + ">" |
| 53 | |
| 54 | |
| 55 | class FunctionKind(enum.Enum): |
no outgoing calls
searching dependent graphs…