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