Files
sdk/pkg/kernel/problems.md
T
David Morgan 897c89e8bc [CFE] Split files needed by package:vm/modular/... into codes folder.
Fix "no exports" exclude for `api_unstable` to actually work: it was mixing up
the path root.

Tested: no code changes, only moves.
Change-Id: If06a96f0de8fb8b92f331978d457c72deda07cec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354301
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Morgan :) <davidmorgan@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2024-02-27 15:04:27 +00:00

1.2 KiB

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 possibly null uri that this problem relates to. This is the main uri. Normally this is not null (but it can be).

involvedFiles: A possibly null list of uris involved in this message. Normally this is null.

codeName: A string identifying the specific error message.

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/codes/fasta_codes.dart.