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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 ClassElement get listImplementation => compiler.listClass; | 247 ClassElement get listImplementation => compiler.listClass; |
248 ClassElement get growableListImplementation => compiler.listClass; | 248 ClassElement get growableListImplementation => compiler.listClass; |
249 ClassElement get fixedListImplementation => compiler.listClass; | 249 ClassElement get fixedListImplementation => compiler.listClass; |
250 ClassElement get constListImplementation => compiler.listClass; | 250 ClassElement get constListImplementation => compiler.listClass; |
251 ClassElement get mapImplementation => compiler.mapClass; | 251 ClassElement get mapImplementation => compiler.mapClass; |
252 ClassElement get constMapImplementation => compiler.mapClass; | 252 ClassElement get constMapImplementation => compiler.mapClass; |
253 ClassElement get functionImplementation => compiler.functionClass; | 253 ClassElement get functionImplementation => compiler.functionClass; |
254 ClassElement get typeImplementation => compiler.typeClass; | 254 ClassElement get typeImplementation => compiler.typeClass; |
255 ClassElement get boolImplementation => compiler.boolClass; | 255 ClassElement get boolImplementation => compiler.boolClass; |
256 ClassElement get nullImplementation => compiler.nullClass; | 256 ClassElement get nullImplementation => compiler.nullClass; |
| 257 ClassElement get uint32Implementation => compiler.intClass; |
| 258 ClassElement get uint31Implementation => compiler.intClass; |
257 | 259 |
258 ClassElement defaultSuperclass(ClassElement element) => compiler.objectClass; | 260 ClassElement defaultSuperclass(ClassElement element) => compiler.objectClass; |
259 | 261 |
260 bool isDefaultNoSuchMethodImplementation(Element element) { | 262 bool isDefaultNoSuchMethodImplementation(Element element) { |
261 assert(element.name == Compiler.NO_SUCH_METHOD); | 263 assert(element.name == Compiler.NO_SUCH_METHOD); |
262 ClassElement classElement = element.getEnclosingClass(); | 264 ClassElement classElement = element.getEnclosingClass(); |
263 return classElement == compiler.objectClass; | 265 return classElement == compiler.objectClass; |
264 } | 266 } |
265 | 267 |
| 268 bool isInterceptorClass(ClassElement element) => false; |
| 269 |
266 void registerStaticUse(Element element, Enqueuer enqueuer) {} | 270 void registerStaticUse(Element element, Enqueuer enqueuer) {} |
267 | 271 |
268 Future onLibraryLoaded(LibraryElement library, Uri uri) { | 272 Future onLibraryLoaded(LibraryElement library, Uri uri) { |
269 return new Future.value(); | 273 return new Future.value(); |
270 } | 274 } |
271 | 275 |
272 /// Called by [MirrorUsageAnalyzerTask] after it has merged all @MirrorsUsed | 276 /// Called by [MirrorUsageAnalyzerTask] after it has merged all @MirrorsUsed |
273 /// annotations. The arguments corresponds to the unions of the corresponding | 277 /// annotations. The arguments corresponds to the unions of the corresponding |
274 /// fields of the annotations. | 278 /// fields of the annotations. |
275 void registerMirrorUsage(Set<String> symbols, | 279 void registerMirrorUsage(Set<String> symbols, |
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1661 | 1665 |
1662 void close() {} | 1666 void close() {} |
1663 | 1667 |
1664 toString() => name; | 1668 toString() => name; |
1665 | 1669 |
1666 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1670 /// Convenience method for getting an [api.CompilerOutputProvider]. |
1667 static NullSink outputProvider(String name, String extension) { | 1671 static NullSink outputProvider(String name, String extension) { |
1668 return new NullSink('$name.$extension'); | 1672 return new NullSink('$name.$extension'); |
1669 } | 1673 } |
1670 } | 1674 } |
OLD | NEW |