(self, buf: WriteBuffer)
| 157 | self.parent_error = parent_error |
| 158 | |
| 159 | def write(self, buf: WriteBuffer) -> None: |
| 160 | assert self.parent_error is None, "Parent errors not supported yet" |
| 161 | write_int_bare(buf, len(self.import_ctx)) |
| 162 | for file, line in self.import_ctx: |
| 163 | write_str(buf, file) |
| 164 | write_int(buf, line) |
| 165 | type, function = self.local_ctx |
| 166 | write_str_opt(buf, type) |
| 167 | write_str_opt(buf, function) |
| 168 | write_int(buf, self.line) |
| 169 | write_int(buf, self.column) |
| 170 | write_int(buf, self.end_line) |
| 171 | write_int(buf, self.end_column) |
| 172 | write_str(buf, self.severity) |
| 173 | write_str(buf, self.message) |
| 174 | write_str_opt(buf, self.code.code if self.code else None) |
| 175 | write_bool(buf, self.blocker) |
| 176 | write_bool(buf, self.only_once) |
| 177 | write_str_opt(buf, self.module) |
| 178 | write_str_opt(buf, self.target) |
| 179 | write_int_list(buf, list(self.origin_span)) |
| 180 | write_int(buf, self.priority) |
| 181 | |
| 182 | @classmethod |
| 183 | def read(cls, buf: ReadBuffer) -> ErrorInfo: |
nothing calls this directly
no test coverage detected