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 61f62a8bf0927583f21dacac30855441e1c85bbd..c67dee6e45a71674b3a784236b01babb3da9daf7 100644 |
| --- a/pkg/analyzer/lib/src/summary/idl.dart |
| +++ b/pkg/analyzer/lib/src/summary/idl.dart |
| @@ -58,6 +58,56 @@ import 'format.dart' as generated; |
| const informative = null; |
| /** |
| + * Information about a resolved unit. |
| + */ |
| +@TopLevel('ADRU') |
| +abstract class AnalysisDriverResolvedUnit extends base.SummaryClass { |
|
Brian Wilkerson
2016/10/26 18:32:11
Seems like these classes ought to be in a differen
scheglov
2016/10/26 18:48:41
Possibly.
For now we reuse the flat buffers genera
|
| + factory AnalysisDriverResolvedUnit.fromBuffer(List<int> buffer) => |
| + generated.readAnalysisDriverResolvedUnit(buffer); |
| + |
| + /** |
| + * The full list of analysis errors, both syntactic and semantic. |
| + */ |
| + @Id(0) |
| + List<AnalysisDriverUnitError> get errors; |
| +} |
| + |
| +/** |
| + * Information about an error in a resolved unit. |
| + */ |
| +abstract class AnalysisDriverUnitError extends base.SummaryClass { |
| + /** |
| + * The optional correction hint for the error. |
| + */ |
| + @Id(4) |
| + String get correction; |
| + |
| + /** |
| + * The length of the error in the file. |
| + */ |
| + @Id(1) |
| + int get length; |
| + |
| + /** |
| + * The message of the error. |
| + */ |
| + @Id(3) |
| + String get message; |
| + |
| + /** |
| + * The offset from the beginning of the file. |
| + */ |
| + @Id(0) |
| + int get offset; |
| + |
| + /** |
| + * The unique name of the error code. |
| + */ |
| + @Id(2) |
| + String get uniqueName; |
| +} |
| + |
| +/** |
| * Information about an element code range. |
| */ |
| abstract class CodeRange extends base.SummaryClass { |