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

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

Issue 2663903002: Store exceptions with transitive files context into ByteStore. (Closed)
Patch Set: Created 3 years, 11 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 8a3d5b7554c74264820502a7013a28c3eaf8fa65..a52ba4feebaa032bcd85d97d3113161922b36adb 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 the context of an exception in analysis driver.
+ */
+@TopLevel('ADEC')
+abstract class AnalysisDriverExceptionContext extends base.SummaryClass {
+ factory AnalysisDriverExceptionContext.fromBuffer(List<int> buffer) =>
+ generated.readAnalysisDriverExceptionContext(buffer);
+
+ /**
+ * The exception string.
+ */
+ @Id(1)
+ String get exception;
+
+ /**
+ * The state of files when the exception happened.
+ */
+ @Id(3)
+ List<AnalysisDriverExceptionFile> get files;
+
+ /**
+ * The path of the file being analyzed when the exception happened.
+ */
+ @Id(0)
+ String get path;
+
+ /**
+ * The exception stack trace string.
+ */
+ @Id(2)
+ String get stackTrace;
+}
+
+/**
+ * Information about a single file in [AnalysisDriverExceptionContext].
+ */
+abstract class AnalysisDriverExceptionFile extends base.SummaryClass {
+ /**
+ * The content of the file.
+ */
+ @Id(1)
+ String get content;
+
+ /**
+ * The path of the file.
+ */
+ @Id(0)
+ String get path;
+}
+
+/**
* Information about a resolved unit.
*/
@TopLevel('ADRU')
« 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