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

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

Issue 2520593003: Use AnalysisDriverUnlinkedUnit as a container for UnlinkedUnit and referenced names. (Closed)
Patch Set: Created 4 years, 1 month 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 eeb604ac1abfe6b23af4f074579a03a05b47e560..a00bd2cc4ac8cbbfde9a9e9952734834b4409348 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -108,6 +108,27 @@ abstract class AnalysisDriverUnitError extends base.SummaryClass {
}
/**
+ * Information about an unlinked unit.
+ */
+@TopLevel('ADUU')
+abstract class AnalysisDriverUnlinkedUnit extends base.SummaryClass {
+ factory AnalysisDriverUnlinkedUnit.fromBuffer(List<int> buffer) =>
+ generated.readAnalysisDriverUnlinkedUnit(buffer);
+
+ /**
+ * List of external names referenced by the unit.
+ */
+ @Id(0)
+ List<String> get referencedNames;
+
+ /**
+ * Unlinked information for the unit.
+ */
+ @Id(1)
+ UnlinkedUnit get unit;
+}
+
+/**
* Information about an element code range.
*/
abstract class CodeRange extends base.SummaryClass {

Powered by Google App Engine
This is Rietveld 408576698