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

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

Issue 2736383005: Store type inference errors into EntityRef. (Closed)
Patch Set: Created 3 years, 9 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') | no next file » | 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 14e506f3c84f8a122e2b86c65b3656e39739ad6e..2ca4bb4dd377a4cf0e0156b4771e2bf75bba44bd 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -443,6 +443,16 @@ abstract class EntityRef extends base.SummaryClass {
EntityRef get syntheticReturnType;
/**
+ * If this [EntityRef] is a result of type inference, and so contained within
+ * [LinkedUnit.types], and was computed as a result of top-level type
+ * inference, which failed for this target, contains the list of one or more
+ * errors describing the failure. The [reference] must point at `dynamic` in
+ * this case.
+ */
+ @Id(8)
+ List<TopLevelInferenceError> get topLevelInferenceErrors;
+
+ /**
* If this is an instantiation of a generic type or generic executable, the
* type arguments used to instantiate it (if any).
*/
@@ -1103,6 +1113,17 @@ enum ReferenceKind {
}
/**
+ * Summary information about a top-level type inference error.
+ */
+abstract class TopLevelInferenceError extends base.SummaryClass {
+ /**
+ * The message describing the error.
+ */
+ @Id(0)
+ String get message;
+}
+
+/**
* Enum used to indicate the style of a typedef.
*/
enum TypedefStyle {
« no previous file with comments | « 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