| 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]);
|
| }
|
|
|