| 43 | |
| 44 | |
| 45 | class GGlobalSubroutine(GGlobal): |
| 46 | def __init__(self): |
| 47 | self.mangled_name: str = None |
| 48 | self.type: GType = None |
| 49 | self.params: List[GGlobalSubroutineParameter] = [] |
| 50 | |
| 51 | def __str__(self): |
| 52 | params_str = ", ".join(str(param) for param in self.params) |
| 53 | return f"{self.type} {self.name}({params_str})" |
| 54 | |
| 55 | |
| 56 | class GStructType(GType): |
no outgoing calls
no test coverage detected