| Index: pkg/analyzer/lib/src/summary/summarize_elements.dart
|
| diff --git a/pkg/analyzer/lib/src/summary/summarize_elements.dart b/pkg/analyzer/lib/src/summary/summarize_elements.dart
|
| index 8078aaa16549189c80095112eeb4d13b865ad2a4..97ee5e32c02711963a57daa413ebd3ac83e2772f 100644
|
| --- a/pkg/analyzer/lib/src/summary/summarize_elements.dart
|
| +++ b/pkg/analyzer/lib/src/summary/summarize_elements.dart
|
| @@ -137,17 +137,6 @@ class PackageBundleAssembler {
|
| final List<UnlinkedUnitBuilder> _unlinkedUnits = <UnlinkedUnitBuilder>[];
|
| final List<String> _unlinkedUnitHashes = <String>[];
|
|
|
| - void addLinkedLibrary(String uri, LinkedLibraryBuilder library) {
|
| - _linkedLibraries.add(library);
|
| - _linkedLibraryUris.add(uri);
|
| - }
|
| -
|
| - void addUnlinkedUnit(Source source, UnlinkedUnitBuilder unit) {
|
| - _unlinkedUnitUris.add(source.uri.toString());
|
| - _unlinkedUnits.add(unit);
|
| - _unlinkedUnitHashes.add(_hash(source.contents.data));
|
| - }
|
| -
|
| /**
|
| * Add a fallback library to the package bundle, corresponding to the library
|
| * whose defining compilation unit is located at [source]. Caller must also
|
| @@ -171,6 +160,17 @@ class PackageBundleAssembler {
|
| .add(new UnlinkedUnitBuilder(fallbackModePath: source.fullName));
|
| }
|
|
|
| + void addLinkedLibrary(String uri, LinkedLibraryBuilder library) {
|
| + _linkedLibraries.add(library);
|
| + _linkedLibraryUris.add(uri);
|
| + }
|
| +
|
| + void addUnlinkedUnit(Source source, UnlinkedUnitBuilder unit) {
|
| + _unlinkedUnitUris.add(source.uri.toString());
|
| + _unlinkedUnits.add(unit);
|
| + _unlinkedUnitHashes.add(_hash(source.contents.data));
|
| + }
|
| +
|
| /**
|
| * Assemble a new [PackageBundleBuilder] using the gathered information.
|
| */
|
| @@ -346,7 +346,9 @@ class _CompilationUnitSerializer {
|
| for (ClassElement enm in compilationUnit.enums) {
|
| if (enm.isPublic) {
|
| names.add(new UnlinkedPublicNameBuilder(
|
| - kind: ReferenceKind.classOrEnum, name: enm.name));
|
| + kind: ReferenceKind.classOrEnum,
|
| + name: enm.name,
|
| + members: serializeClassConstMembers(enm)));
|
| }
|
| }
|
| for (FunctionElement function in compilationUnit.functions) {
|
|
|