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

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

Issue 1843473002: Sort analyzer sources (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove generated file and fix misplaced comments Created 4 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/generated/type_system.dart ('k') | pkg/analyzer/lib/src/summary/format.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/base.dart b/pkg/analyzer/lib/src/summary/base.dart
index acdb8392aacaa34053523613fd7ad8de4a866b57..7c3d8ae7448b9c792738e3484cac8bdaf461af84 100644
--- a/pkg/analyzer/lib/src/summary/base.dart
+++ b/pkg/analyzer/lib/src/summary/base.dart
@@ -23,23 +23,20 @@ class Id {
}
/**
- * Annotation used in the summary IDL to indicate that a summary class can be
- * the top level object in an encoded summary.
+ * Instances of this class represent data that has been read from a summary.
*/
-class TopLevel {
+abstract class SummaryClass {
/**
- * If non-null, identifier that will be stored in bytes 4-7 of the file,
- * prior all other file data. Must be exactly 4 Latin1 characters.
+ * Translate the data in this class into a JSON map, whose keys are the names
+ * of fields and whose values are the data stored in those fields,
+ * recursively converted into JSON.
+ *
+ * Fields containing their default value are elided.
+ *
+ * Intended for testing and debugging only.
*/
- final String fileIdentifier;
-
- const TopLevel([this.fileIdentifier]);
-}
+ Map<String, Object> toJson();
-/**
- * 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.
@@ -47,15 +44,18 @@ abstract class SummaryClass {
* Intended for testing and debugging only.
*/
Map<String, Object> toMap();
+}
+/**
+ * Annotation used in the summary IDL to indicate that a summary class can be
+ * the top level object in an encoded summary.
+ */
+class TopLevel {
/**
- * Translate the data in this class into a JSON map, whose keys are the names
- * of fields and whose values are the data stored in those fields,
- * recursively converted into JSON.
- *
- * Fields containing their default value are elided.
- *
- * Intended for testing and debugging only.
+ * If non-null, identifier that will be stored in bytes 4-7 of the file,
+ * prior all other file data. Must be exactly 4 Latin1 characters.
*/
- Map<String, Object> toJson();
+ final String fileIdentifier;
+
+ const TopLevel([this.fileIdentifier]);
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/type_system.dart ('k') | pkg/analyzer/lib/src/summary/format.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698