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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 | 734 |
735 initializeSpecialClasses(); | 735 initializeSpecialClasses(); |
736 | 736 |
737 functionClass.ensureResolved(this); | 737 functionClass.ensureResolved(this); |
738 functionApplyMethod = | 738 functionApplyMethod = |
739 functionClass.lookupLocalMember(const SourceString('apply')); | 739 functionClass.lookupLocalMember(const SourceString('apply')); |
740 jsInvocationMirrorClass.ensureResolved(this); | 740 jsInvocationMirrorClass.ensureResolved(this); |
741 invokeOnMethod = jsInvocationMirrorClass.lookupLocalMember(INVOKE_ON); | 741 invokeOnMethod = jsInvocationMirrorClass.lookupLocalMember(INVOKE_ON); |
742 | 742 |
743 if (preserveComments) { | 743 if (preserveComments) { |
744 var uri = new Uri.fromComponents(scheme: 'dart', path: 'mirrors'); | 744 var uri = new Uri(scheme: 'dart', path: 'mirrors'); |
745 LibraryElement libraryElement = | 745 LibraryElement libraryElement = |
746 libraryLoader.loadLibrary(uri, null, uri); | 746 libraryLoader.loadLibrary(uri, null, uri); |
747 documentClass = libraryElement.find(const SourceString('Comment')); | 747 documentClass = libraryElement.find(const SourceString('Comment')); |
748 } | 748 } |
749 } | 749 } |
750 | 750 |
751 void importHelperLibrary(LibraryElement library) { | 751 void importHelperLibrary(LibraryElement library) { |
752 if (jsHelperLibrary != null) { | 752 if (jsHelperLibrary != null) { |
753 libraryLoader.importLibrary(library, jsHelperLibrary, null); | 753 libraryLoader.importLibrary(library, jsHelperLibrary, null); |
754 } | 754 } |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1327 | 1327 |
1328 void close() {} | 1328 void close() {} |
1329 | 1329 |
1330 toString() => name; | 1330 toString() => name; |
1331 | 1331 |
1332 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1332 /// Convenience method for getting an [api.CompilerOutputProvider]. |
1333 static NullSink outputProvider(String name, String extension) { | 1333 static NullSink outputProvider(String name, String extension) { |
1334 return new NullSink('$name.$extension'); | 1334 return new NullSink('$name.$extension'); |
1335 } | 1335 } |
1336 } | 1336 } |
OLD | NEW |