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

Side by Side Diff: pkg/compiler/lib/src/dart2js.dart

Issue 2110323003: Support serialization of loadLibrary (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.cmdline; 5 library dart2js.cmdline;
6 6
7 import 'dart:async' show EventSink, Future; 7 import 'dart:async' show EventSink, Future;
8 import 'dart:convert' show UTF8, LineSplitter; 8 import 'dart:convert' show UTF8, LineSplitter;
9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr; 9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr;
10 10
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 diagnosticHandler.info( 464 diagnosticHandler.info(
465 "Option '${Flags.analyzeAll}' implies '${Flags.analyzeOnly}'.", 465 "Option '${Flags.analyzeAll}' implies '${Flags.analyzeOnly}'.",
466 api.Diagnostic.INFO); 466 api.Diagnostic.INFO);
467 } 467 }
468 diagnosticHandler.info( 468 diagnosticHandler.info(
469 "Options $optionsImplyOutput indicate that output is expected, " 469 "Options $optionsImplyOutput indicate that output is expected, "
470 "but compilation is turned off by the option '${Flags.analyzeOnly}'.", 470 "but compilation is turned off by the option '${Flags.analyzeOnly}'.",
471 api.Diagnostic.INFO); 471 api.Diagnostic.INFO);
472 } 472 }
473 if (resolveOnly) { 473 if (resolveOnly) {
474 if (resolutionInputs.contains(resolutionOutput)) { 474 if (resolutionInputs != null &&
475 resolutionInputs.contains(resolutionOutput)) {
Johnni Winther 2016/06/30 11:09:33 Same problem fixed more thoroughly in https://code
475 helpAndFail("Resolution input '${resolutionOutput}' can't be used as " 476 helpAndFail("Resolution input '${resolutionOutput}' can't be used as "
476 "resolution output. Use the '--out' option to specify another " 477 "resolution output. Use the '--out' option to specify another "
477 "resolution output."); 478 "resolution output.");
478 } 479 }
479 analyzeOnly = analyzeAll = true; 480 analyzeOnly = analyzeAll = true;
480 } else if (analyzeAll) { 481 } else if (analyzeAll) {
481 analyzeOnly = true; 482 analyzeOnly = true;
482 } 483 }
483 if (!analyzeOnly) { 484 if (!analyzeOnly) {
484 if (allowNativeExtensions) { 485 if (allowNativeExtensions) {
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 @override 1021 @override
1021 void close() { 1022 void close() {
1022 // Do nothing. 1023 // Do nothing.
1023 } 1024 }
1024 1025
1025 @override 1026 @override
1026 void addError(errorEvent, [StackTrace stackTrace]) { 1027 void addError(errorEvent, [StackTrace stackTrace]) {
1027 // Ignore 1028 // Ignore
1028 } 1029 }
1029 } 1030 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698