OLD | NEW |
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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 } | 529 } |
530 | 530 |
531 Uri script = currentDirectory.resolve(arguments[0]); | 531 Uri script = currentDirectory.resolve(arguments[0]); |
532 CompilerOptions compilerOptions = new CompilerOptions.parse( | 532 CompilerOptions compilerOptions = new CompilerOptions.parse( |
533 entryPoint: script, | 533 entryPoint: script, |
534 libraryRoot: libraryRoot, | 534 libraryRoot: libraryRoot, |
535 packageRoot: packageRoot, | 535 packageRoot: packageRoot, |
536 packageConfig: packageConfig, | 536 packageConfig: packageConfig, |
537 packagesDiscoveryProvider: findPackages, | 537 packagesDiscoveryProvider: findPackages, |
538 resolutionInputs: resolutionInputs, | 538 resolutionInputs: resolutionInputs, |
539 resolutionOutput: resolveOnly ? resolutionOutput: null, | 539 resolutionOutput: resolveOnly ? resolutionOutput : null, |
540 options: options, | 540 options: options, |
541 environment: environment); | 541 environment: environment); |
542 return compileFunc( | 542 return compileFunc( |
543 compilerOptions, inputProvider, diagnosticHandler, outputProvider) | 543 compilerOptions, inputProvider, diagnosticHandler, outputProvider) |
544 .then(compilationDone); | 544 .then(compilationDone); |
545 } | 545 } |
546 | 546 |
547 class AbortLeg { | 547 class AbortLeg { |
548 final message; | 548 final message; |
549 AbortLeg(this.message); | 549 AbortLeg(this.message); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 @override | 1021 @override |
1022 void close() { | 1022 void close() { |
1023 // Do nothing. | 1023 // Do nothing. |
1024 } | 1024 } |
1025 | 1025 |
1026 @override | 1026 @override |
1027 void addError(errorEvent, [StackTrace stackTrace]) { | 1027 void addError(errorEvent, [StackTrace stackTrace]) { |
1028 // Ignore | 1028 // Ignore |
1029 } | 1029 } |
1030 } | 1030 } |
OLD | NEW |