2019-01-17 10:41:53 +00:00
|
|
|
<!--
|
|
|
|
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.
|
2019-02-01 11:07:27 +00:00
|
|
|
|
2019-01-17 10:41:53 +00:00
|
|
|
`plainTextFormatted`: A list of strings that contain formatted plaintext
|
|
|
|
problem-texts as reported by the compiler.
|
|
|
|
|
2019-02-01 11:07:27 +00:00
|
|
|
`severity`: An integer representing severity. This should match the index in
|
2019-11-01 09:37:57 +00:00
|
|
|
`package:_fe_analyzer_shared/src/messages/severity.dart`.
|
2019-02-01 11:07:27 +00:00
|
|
|
|
2020-11-05 08:47:42 +00:00
|
|
|
`uri`: A possibly null uri that this problems 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.
|
2019-02-01 11:07:27 +00:00
|
|
|
|
2020-11-05 09:43:23 +00:00
|
|
|
`codeName`: A string identifing the specific error message.
|
|
|
|
|
2019-01-17 10:41:53 +00:00
|
|
|
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`.
|