| 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 part of dart2js; | 5 part of dart2js; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
| 9 * compiled. | 9 * compiled. |
| 10 */ | 10 */ |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 | 445 |
| 446 // Initialized when dart:mirrors is loaded. | 446 // Initialized when dart:mirrors is loaded. |
| 447 ClassElement mirrorSystemClass; | 447 ClassElement mirrorSystemClass; |
| 448 | 448 |
| 449 // Initialized when dart:mirrors is loaded. | 449 // Initialized when dart:mirrors is loaded. |
| 450 ClassElement mirrorsUsedClass; | 450 ClassElement mirrorsUsedClass; |
| 451 | 451 |
| 452 // Initialized after mirrorSystemClass has been resolved. | 452 // Initialized after mirrorSystemClass has been resolved. |
| 453 FunctionElement mirrorSystemGetNameFunction; | 453 FunctionElement mirrorSystemGetNameFunction; |
| 454 | 454 |
| 455 // Initialized when dart:_collection-dev is loaded. | 455 // Initialized when dart:_internal is loaded. |
| 456 ClassElement symbolImplementationClass; | 456 ClassElement symbolImplementationClass; |
| 457 | 457 |
| 458 // Initialized when symbolImplementationClass has been resolved. | 458 // Initialized when symbolImplementationClass has been resolved. |
| 459 FunctionElement symbolValidatedConstructor; | 459 FunctionElement symbolValidatedConstructor; |
| 460 | 460 |
| 461 // Initialized when mirrorsUsedClass has been resolved. | 461 // Initialized when mirrorsUsedClass has been resolved. |
| 462 FunctionElement mirrorsUsedConstructor; | 462 FunctionElement mirrorsUsedConstructor; |
| 463 | 463 |
| 464 // Initialized when dart:mirrors is loaded. | 464 // Initialized when dart:mirrors is loaded. |
| 465 ClassElement deferredLibraryClass; | 465 ClassElement deferredLibraryClass; |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 if (uri == new Uri(scheme: 'dart', path: 'mirrors')) { | 802 if (uri == new Uri(scheme: 'dart', path: 'mirrors')) { |
| 803 mirrorsLibrary = library; | 803 mirrorsLibrary = library; |
| 804 mirrorSystemClass = | 804 mirrorSystemClass = |
| 805 findRequiredElement(library, 'MirrorSystem'); | 805 findRequiredElement(library, 'MirrorSystem'); |
| 806 mirrorsUsedClass = | 806 mirrorsUsedClass = |
| 807 findRequiredElement(library, 'MirrorsUsed'); | 807 findRequiredElement(library, 'MirrorsUsed'); |
| 808 } else if (uri == new Uri(scheme: 'dart', path: 'typed_data')) { | 808 } else if (uri == new Uri(scheme: 'dart', path: 'typed_data')) { |
| 809 typedDataLibrary = library; | 809 typedDataLibrary = library; |
| 810 typedDataClass = | 810 typedDataClass = |
| 811 findRequiredElement(library, 'TypedData'); | 811 findRequiredElement(library, 'TypedData'); |
| 812 } else if (uri == new Uri(scheme: 'dart', path: '_collection-dev')) { | 812 } else if (uri == new Uri(scheme: 'dart', path: '_internal')) { |
| 813 symbolImplementationClass = | 813 symbolImplementationClass = |
| 814 findRequiredElement(library, 'Symbol'); | 814 findRequiredElement(library, 'Symbol'); |
| 815 } else if (uri == new Uri(scheme: 'dart', path: 'async')) { | 815 } else if (uri == new Uri(scheme: 'dart', path: 'async')) { |
| 816 deferredLibraryClass = | 816 deferredLibraryClass = |
| 817 findRequiredElement(library, 'DeferredLibrary'); | 817 findRequiredElement(library, 'DeferredLibrary'); |
| 818 } else if (isolateHelperLibrary == null | 818 } else if (isolateHelperLibrary == null |
| 819 && (uri == new Uri(scheme: 'dart', path: '_isolate_helper'))) { | 819 && (uri == new Uri(scheme: 'dart', path: '_isolate_helper'))) { |
| 820 isolateHelperLibrary = library; | 820 isolateHelperLibrary = library; |
| 821 } else if (foreignLibrary == null | 821 } else if (foreignLibrary == null |
| 822 && (uri == new Uri(scheme: 'dart', path: '_foreign_helper'))) { | 822 && (uri == new Uri(scheme: 'dart', path: '_foreign_helper'))) { |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1673 | 1673 |
| 1674 void close() {} | 1674 void close() {} |
| 1675 | 1675 |
| 1676 toString() => name; | 1676 toString() => name; |
| 1677 | 1677 |
| 1678 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1678 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1679 static NullSink outputProvider(String name, String extension) { | 1679 static NullSink outputProvider(String name, String extension) { |
| 1680 return new NullSink('$name.$extension'); | 1680 return new NullSink('$name.$extension'); |
| 1681 } | 1681 } |
| 1682 } | 1682 } |
| OLD | NEW |