The void type (no value). This is a singleton -- use void_rtype (below) to refer to this instead of constructing a new instance.
| 183 | |
| 184 | @final |
| 185 | class RVoid(RType): |
| 186 | """The void type (no value). |
| 187 | |
| 188 | This is a singleton -- use void_rtype (below) to refer to this instead of |
| 189 | constructing a new instance. |
| 190 | """ |
| 191 | |
| 192 | is_unboxed = False |
| 193 | name = "void" |
| 194 | ctype = "void" |
| 195 | |
| 196 | def accept(self, visitor: RTypeVisitor[T]) -> T: |
| 197 | return visitor.visit_rvoid(self) |
| 198 | |
| 199 | @property |
| 200 | def may_be_immortal(self) -> bool: |
| 201 | return False |
| 202 | |
| 203 | def serialize(self) -> str: |
| 204 | return "void" |
| 205 | |
| 206 | def __eq__(self, other: object) -> TypeGuard[RVoid]: |
| 207 | return isinstance(other, RVoid) |
| 208 | |
| 209 | def __hash__(self) -> int: |
| 210 | return hash(RVoid) |
| 211 | |
| 212 | |
| 213 | # Singleton instance of RVoid |
no outgoing calls
no test coverage detected
searching dependent graphs…