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 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 withCurrentElement(dynamicClass, () { | 798 withCurrentElement(dynamicClass, () { |
799 library.addToScope(dynamicClass, this); | 799 library.addToScope(dynamicClass, this); |
800 }); | 800 }); |
801 } | 801 } |
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: '_native_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, 'NativeTypedData'); | 811 findRequiredElement(library, 'TypedData'); |
812 } else if (uri == new Uri(scheme: 'dart', path: '_collection-dev')) { | 812 } else if (uri == new Uri(scheme: 'dart', path: '_collection-dev')) { |
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 |
(...skipping 851 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 |