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

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

Issue 2042883002: Add put/getSourceErrorsInLibrary to IncrementalCache. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixes for review comments. Created 4 years, 6 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
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/incremental_cache.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..505ade8855078f11d43b869fa4e25538db8d00fb 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -58,6 +58,44 @@ import 'format.dart' as generated;
const informative = null;
/**
+ * Information about an analysis error in a source.
+ */
+abstract class CacheAnalysisError extends base.SummaryClass {
+ /**
+ * 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(4)
+ String get correction;
+
+ /**
+ * The unique name of the error code.
+ */
+ @Id(0)
+ String get errorCodeUniqueName;
+
+ /**
+ * Length of the error range.
+ */
+ @Id(2)
+ int get length;
+
+ /**
+ * The message to be displayed for this error. The message should indicate
+ * what is wrong and why it is wrong.
+ */
+ @Id(3)
+ String get message;
+
+ /**
+ * Offset of the error range relative to the beginning of the file.
+ */
+ @Id(1)
+ int get offset;
+}
+
+/**
* Information about a source that depends only on its content.
*/
@TopLevel('CaSS')
@@ -94,6 +132,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 }
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/incremental_cache.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698