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

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

Issue 1544213002: Introduce code to generate UnlinkedPublicNamespace directly from an AST. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « no previous file | pkg/analyzer/lib/src/summary/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/base.dart
diff --git a/pkg/analyzer/lib/src/summary/builder.dart b/pkg/analyzer/lib/src/summary/base.dart
similarity index 61%
rename from pkg/analyzer/lib/src/summary/builder.dart
rename to pkg/analyzer/lib/src/summary/base.dart
index c1bedfb9ab611caa6f2544419cb0cc858a8ed221..0002dc963b7dbc094c8afd3549ec92dc04812461 100644
--- a/pkg/analyzer/lib/src/summary/builder.dart
+++ b/pkg/analyzer/lib/src/summary/base.dart
@@ -3,9 +3,9 @@
// BSD-style license that can be found in the LICENSE file.
/**
- * Format-agnostic infrastructure for building summary objects.
+ * Base functionality which code generated summary classes are built upon.
*/
-library analyzer.src.summary.builder;
+library analyzer.src.summary.base;
/**
* Instances of this class encapsulate the necessary state to keep track of a
@@ -20,3 +20,16 @@ class BuilderContext {
// we switch to a serialization format that requires state tracking, the
// state will be stored here.
}
+
+/**
+ * Instances of this class represent data that has been read from a summary.
+ */
+abstract class SummaryClass {
+ /**
+ * Translate the data in this class into a map whose keys are the names of
+ * fields and whose values are the data stored in those fields.
+ *
+ * Intended for testing and debugging only.
+ */
+ Map<String, Object> toMap();
+}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698