| 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 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 void enqueueAll(Element element) { | 906 void enqueueAll(Element element) { |
| 907 fullyEnqueueTopLevelElement(element, world); | 907 fullyEnqueueTopLevelElement(element, world); |
| 908 } | 908 } |
| 909 library.implementation.forEachLocalMember(enqueueAll); | 909 library.implementation.forEachLocalMember(enqueueAll); |
| 910 } | 910 } |
| 911 | 911 |
| 912 void fullyEnqueueTopLevelElement(Element element, Enqueuer world) { | 912 void fullyEnqueueTopLevelElement(Element element, Enqueuer world) { |
| 913 if (element.isClass()) { | 913 if (element.isClass()) { |
| 914 ClassElement cls = element; | 914 ClassElement cls = element; |
| 915 cls.ensureResolved(this); | 915 cls.ensureResolved(this); |
| 916 cls.forEachLocalMember(world.addToWorkList); | 916 cls.forEachLocalMember((e) { |
| 917 if (e.isSynthesized) { |
| 918 // TODO(ahe): Work-around for http://dartbug.com/11205. |
| 919 if (e.getLibrary().isPlatformLibrary) return; |
| 920 } |
| 921 world.addToWorkList(e); |
| 922 }); |
| 917 world.registerInstantiatedClass(element, globalDependencies); | 923 world.registerInstantiatedClass(element, globalDependencies); |
| 918 } else { | 924 } else { |
| 919 world.addToWorkList(element); | 925 world.addToWorkList(element); |
| 920 } | 926 } |
| 921 } | 927 } |
| 922 | 928 |
| 923 void processQueue(Enqueuer world, Element main) { | 929 void processQueue(Enqueuer world, Element main) { |
| 924 world.nativeEnqueuer.processNativeClasses(libraries.values); | 930 world.nativeEnqueuer.processNativeClasses(libraries.values); |
| 925 if (main != null) { | 931 if (main != null) { |
| 926 world.addToWorkList(main); | 932 world.addToWorkList(main); |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 | 1385 |
| 1380 void close() {} | 1386 void close() {} |
| 1381 | 1387 |
| 1382 toString() => name; | 1388 toString() => name; |
| 1383 | 1389 |
| 1384 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1390 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1385 static NullSink outputProvider(String name, String extension) { | 1391 static NullSink outputProvider(String name, String extension) { |
| 1386 return new NullSink('$name.$extension'); | 1392 return new NullSink('$name.$extension'); |
| 1387 } | 1393 } |
| 1388 } | 1394 } |
| OLD | NEW |