| 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();
|
| +}
|
|
|