Files
sdk/pkg/kernel/problems.md
T
Johnni Winther e40cad30a3 [cfe] Move fasta/codes/ to src/ and rename to cfe_codes*
Part of removing uses of 'fasta'.

TEST=existing

Change-Id: Ibf144a126d8ff4ba15b6cfd2c4fb898e9a499362
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371685
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2024-06-20 09:36:39 +00:00

31 lines
1.2 KiB
Markdown

<!--
Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
-->
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/codes/cfe_codes.dart`.