Chromium Code Reviews| Index: pkg/analyzer/lib/src/summary/idl.dart |
| diff --git a/pkg/analyzer/lib/src/summary/idl.dart b/pkg/analyzer/lib/src/summary/idl.dart |
| index 9a9f1374230fd307474c7006f75f5e3d86bb6d89..267f777dc590adf458c0e700f68b161231d3be86 100644 |
| --- a/pkg/analyzer/lib/src/summary/idl.dart |
| +++ b/pkg/analyzer/lib/src/summary/idl.dart |
| @@ -58,6 +58,50 @@ import 'format.dart' as generated; |
| const informative = null; |
| /** |
| + * Information about an analysis error in a source. |
| + */ |
| +abstract class CacheAnalysisError extends base.SummaryClass { |
|
Paul Berry
2016/06/06 20:03:31
I'm having trouble understanding the name of this
|
| + /** |
| + * The correction to be displayed for this error, or `null` if there is no |
| + * correction information for this error. The correction should indicate how |
| + * the user can fix the error. |
| + */ |
| + @Id(5) |
| + String get correction; |
| + |
| + /** |
| + * The name of the `ErrorCode` subclass. |
| + */ |
| + @Id(0) |
| + String get errorCodeClass; |
| + |
| + /** |
| + * The name of the error code field in the [errorCodeClass]. |
| + */ |
| + @Id(1) |
| + String get errorCodeField; |
| + |
| + /** |
| + * Length of the error range. |
| + */ |
| + @Id(3) |
| + int get length; |
| + |
| + /** |
| + * The message to be displayed for this error. The message should indicate |
| + * what is wrong and why it is wrong. |
| + */ |
| + @Id(4) |
| + String get message; |
| + |
| + /** |
| + * Offset of the error range relative to the beginning of the file. |
| + */ |
| + @Id(2) |
| + int get offset; |
| +} |
| + |
| +/** |
| * Information about a source that depends only on its content. |
| */ |
| @TopLevel('CaSS') |
| @@ -94,6 +138,21 @@ abstract class CacheSourceContent extends base.SummaryClass { |
| } |
| /** |
| + * Errors of a source in a library, which depends on the import/export closure |
| + * of the containing library and the source. |
| + */ |
| +@TopLevel('CSEL') |
| +abstract class CacheSourceErrorsInLibrary extends base.SummaryClass { |
| + factory CacheSourceErrorsInLibrary.fromBuffer(List<int> buffer) => |
| + generated.readCacheSourceErrorsInLibrary(buffer); |
| + /** |
| + * The list of errors in the source in the library. |
| + */ |
| + @Id(0) |
| + List<CacheAnalysisError> get errors; |
| +} |
| + |
| +/** |
| * Kind of a source in the cache. |
| */ |
| enum CacheSourceKind { library, part } |