dart-sdk/pkg/kernel/problems.md
Brett Morgan e1c7bde14c Fix markup
Closes https://github.com/dart-lang/sdk/pull/42840
https://github.com/dart-lang/sdk/pull/42840

GitOrigin-RevId: 977c120bf78951e2f844f5c0888dc8d3bfc1c542
Change-Id: I980f6689ea6a8c49220316cdee35a87226966039
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155923
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
2020-07-31 08:39:41 +00:00

988 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:_fe_analyzer_shared/src/messages/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.