(data: ReadBuffer)
| 337 | |
| 338 | |
| 339 | def read_parse_error(data: ReadBuffer) -> ParseError: |
| 340 | err: ParseError = {"line": read_int(data), "column": read_int(data), "message": read_str(data)} |
| 341 | tag = read_tag(data) |
| 342 | if tag == LITERAL_TRUE: |
| 343 | err["blocker"] = True |
| 344 | elif tag == LITERAL_FALSE: |
| 345 | err["blocker"] = False |
| 346 | else: |
| 347 | assert tag == LITERAL_NONE |
| 348 | if (code := read_str_opt(data)) is not None: |
| 349 | err["code"] = code |
| 350 | return err |
| 351 | |
| 352 | |
| 353 | class FileRawData: |
no test coverage detected
searching dependent graphs…