Load bytes object from a string literal. The literal characters of BytesExpr (the characters inside b'') are stored in BytesExpr.value, whose type is 'str' not 'bytes'. Thus we perform a special conversion here.
(self, value: str, line: int = -1)
| 358 | return self.builder.load_str(value, line) |
| 359 | |
| 360 | def load_bytes_from_str_literal(self, value: str, line: int = -1) -> Value: |
| 361 | """Load bytes object from a string literal. |
| 362 | |
| 363 | The literal characters of BytesExpr (the characters inside b'') |
| 364 | are stored in BytesExpr.value, whose type is 'str' not 'bytes'. |
| 365 | Thus we perform a special conversion here. |
| 366 | """ |
| 367 | return self.builder.load_bytes(bytes_from_str(value), line) |
| 368 | |
| 369 | def load_int(self, value: int, line: int = -1) -> Value: |
| 370 | return self.builder.load_int(value, line) |
no test coverage detected