Files
sdk/pkg/kernel/problems.md
T
Jens Johansen 014124e763 (Some) DiagnosticMessages can be serialized to/from json.
This is needed to serialize and deserialize problems to dill and
re-issuing problems as needed.

Change-Id: Id22d1c86f43b1b08c5e5a4d133869075e9b0c100
Reviewed-on: https://dart-review.googlesource.com/c/91743
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2019-02-01 11:07:27 +00:00

974 B

This file describes the format of the problemsAsJson strings in Dart Kernel.

Each string in the list is a json object consisting of these keys and values:

ansiFormatted: A list of strings the contain ansi formatted (for instance with colors) problem-texts as reported by the compiler.

plainTextFormatted: A list of strings that contain formatted plaintext problem-texts as reported by the compiler.

severity: An integer representing severity. This should match the index in package:front_end/src/fasta/severity.dart.

`uri: A uri that this problems relates to.

These values are subject to change, but this file will be updated along with any such changes. On the code-side these are defined in package:front_end/src/fasta/fasta_codes.dart.