Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(896)

Unified Diff: pkg/analyzer/lib/src/summary/idl.dart

Issue 2455573003: Put fully resolved analysis results (just errors now) into the byte cache. (Closed)
Patch Set: tweaks Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {
+ 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 {
« pkg/analyzer/lib/src/dart/analysis/driver.dart ('K') | « pkg/analyzer/lib/src/summary/format.fbs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698