Start a function frame. Parameters ---------- is_pure: bool Whether the function is annotated as pure. is_private : bool Whether the function is annotated as private. Returns ------- frame: FunctionFrame The constructed function frame.
(is_pure: bool = True, is_private: bool = False)
| 259 | |
| 260 | |
| 261 | def function(is_pure: bool = True, is_private: bool = False) -> frame.FunctionFrame: |
| 262 | """Start a function frame. |
| 263 | Parameters |
| 264 | ---------- |
| 265 | is_pure: bool |
| 266 | Whether the function is annotated as pure. |
| 267 | |
| 268 | is_private : bool |
| 269 | Whether the function is annotated as private. |
| 270 | |
| 271 | Returns |
| 272 | ------- |
| 273 | frame: FunctionFrame |
| 274 | The constructed function frame. |
| 275 | """ |
| 276 | return _ffi_api.Function( # type: ignore[attr-defined] # pylint: disable=no-member |
| 277 | is_pure, is_private |
| 278 | ) |
| 279 | |
| 280 | |
| 281 | def arg(name: py_str, struct_info: StructInfo) -> Var: |
no test coverage detected
searching dependent graphs…