| Index: pkg/compiler/lib/src/compiler.dart
|
| diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
|
| index b2bdd0516ff4f64a94cb1bf1801e772906b18763..de80e0b910c52c655bf4c0ded86cc2b58ffc42ce 100644
|
| --- a/pkg/compiler/lib/src/compiler.dart
|
| +++ b/pkg/compiler/lib/src/compiler.dart
|
| @@ -364,6 +364,9 @@ abstract class Compiler implements LibraryLoaderListener {
|
| reuseLibraryTask = new GenericTask('Reuse library', this),
|
| selfTask = new GenericTask('self', this),
|
| ];
|
| + if (options.resolveOnly) {
|
| + serialization.supportSerialization = true;
|
| + }
|
|
|
| _parsingContext =
|
| new ParsingContext(reporter, options, parser, patchParser, backend);
|
| @@ -858,6 +861,12 @@ abstract class Compiler implements LibraryLoaderListener {
|
| }
|
| }
|
|
|
| + if (options.resolveOnly) {
|
| + reporter.log('Serializing to ${options.resolutionOutput}');
|
| + serialization.serializeToSink(
|
| + userOutputProvider.createEventSink('', 'data'),
|
| + libraryLoader.libraries);
|
| + }
|
| if (options.analyzeOnly) {
|
| if (!analyzeAll && !compilationFailed) {
|
| // No point in reporting unused code when [analyzeAll] is true: all
|
|
|