MCPcopy Create free account
hub / github.com/NICUP14/MiniLang / Function

Class Function

src/Def.py:211–228  ·  view source on GitHub ↗

Contains the meta-data of a function type.

Source from the content-addressed store, hash-verified

209
210@dataclass
211class Function:
212 """
213 Contains the meta-data of a function type.
214 """
215 # Possible generic function
216 # Template type -> arg_type
217 # gen_types: List[int] (generic-id's)
218 # FUN_CALL -> signatures: List[List[VariableType]] -> fun_X()
219
220 name: str
221 arg_cnt: int
222 arg_names: List[str]
223 arg_types: List[VariableType]
224 ret_type: VariableType
225 off: int
226 is_variadic: bool
227 is_extern: bool
228 signatures: List[FunctionSignature]
229
230
231@dataclass

Callers 2

fun_declarationMethod · 0.90
struct_declarationMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected