| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.compiler_base; | 5 library dart2js.compiler_base; |
| 6 | 6 |
| 7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
| 8 | 8 |
| 9 import '../compiler_new.dart' as api; | 9 import '../compiler_new.dart' as api; |
| 10 import 'backend_strategy.dart'; | 10 import 'backend_strategy.dart'; |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 reporter.log('Resolving...'); | 571 reporter.log('Resolving...'); |
| 572 | 572 |
| 573 processQueue(resolutionEnqueuer, mainFunction, libraryLoader.libraries, | 573 processQueue(resolutionEnqueuer, mainFunction, libraryLoader.libraries, |
| 574 onProgress: showResolutionProgress); | 574 onProgress: showResolutionProgress); |
| 575 backend.onResolutionEnd(); | 575 backend.onResolutionEnd(); |
| 576 resolutionEnqueuer.logSummary(reporter.log); | 576 resolutionEnqueuer.logSummary(reporter.log); |
| 577 | 577 |
| 578 _reporter.reportSuppressedMessagesSummary(); | 578 _reporter.reportSuppressedMessagesSummary(); |
| 579 | 579 |
| 580 if (compilationFailed) { | 580 if (compilationFailed) { |
| 581 if (!options.generateCodeWithCompileTimeErrors) return; | 581 if (!options.generateCodeWithCompileTimeErrors || options.useKernel) { |
| 582 return; |
| 583 } |
| 582 if (mainFunction == null) return; | 584 if (mainFunction == null) return; |
| 583 if (!backend | 585 if (!backend |
| 584 .enableCodegenWithErrorsIfSupported(NO_LOCATION_SPANNABLE)) { | 586 .enableCodegenWithErrorsIfSupported(NO_LOCATION_SPANNABLE)) { |
| 585 return; | 587 return; |
| 586 } | 588 } |
| 587 } | 589 } |
| 588 | 590 |
| 589 if (options.resolveOnly && !compilationFailed) { | 591 if (options.resolveOnly && !compilationFailed) { |
| 590 reporter.log('Serializing to ${options.resolutionOutput}'); | 592 reporter.log('Serializing to ${options.resolutionOutput}'); |
| 591 serialization.serializeToSink( | 593 serialization.serializeToSink( |
| (...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 _ElementScanner(this.scanner); | 1582 _ElementScanner(this.scanner); |
| 1581 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); | 1583 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); |
| 1582 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); | 1584 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); |
| 1583 } | 1585 } |
| 1584 | 1586 |
| 1585 class _EmptyEnvironment implements Environment { | 1587 class _EmptyEnvironment implements Environment { |
| 1586 const _EmptyEnvironment(); | 1588 const _EmptyEnvironment(); |
| 1587 | 1589 |
| 1588 String valueOf(String key) => null; | 1590 String valueOf(String key) => null; |
| 1589 } | 1591 } |
| OLD | NEW |