| 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 ClassElement get functionImplementation => compiler.functionClass; | 396 ClassElement get functionImplementation => compiler.functionClass; |
| 397 ClassElement get typeImplementation => compiler.typeClass; | 397 ClassElement get typeImplementation => compiler.typeClass; |
| 398 ClassElement get boolImplementation => compiler.boolClass; | 398 ClassElement get boolImplementation => compiler.boolClass; |
| 399 ClassElement get nullImplementation => compiler.nullClass; | 399 ClassElement get nullImplementation => compiler.nullClass; |
| 400 ClassElement get uint32Implementation => compiler.intClass; | 400 ClassElement get uint32Implementation => compiler.intClass; |
| 401 ClassElement get uint31Implementation => compiler.intClass; | 401 ClassElement get uint31Implementation => compiler.intClass; |
| 402 ClassElement get positiveIntImplementation => compiler.intClass; | 402 ClassElement get positiveIntImplementation => compiler.intClass; |
| 403 | 403 |
| 404 ClassElement defaultSuperclass(ClassElement element) => compiler.objectClass; | 404 ClassElement defaultSuperclass(ClassElement element) => compiler.objectClass; |
| 405 | 405 |
| 406 bool isDefaultNoSuchMethodImplementation(Element element) { | |
| 407 assert(element.name == Compiler.NO_SUCH_METHOD); | |
| 408 ClassElement classElement = element.enclosingClass; | |
| 409 return classElement == compiler.objectClass; | |
| 410 } | |
| 411 | |
| 412 bool isInterceptorClass(ClassElement element) => false; | 406 bool isInterceptorClass(ClassElement element) => false; |
| 413 | 407 |
| 414 /// Returns `true` if [element] is a foreign element, that is, that the | 408 /// Returns `true` if [element] is a foreign element, that is, that the |
| 415 /// backend has specialized handling for the element. | 409 /// backend has specialized handling for the element. |
| 416 bool isForeign(Element element) => false; | 410 bool isForeign(Element element) => false; |
| 417 | 411 |
| 418 /// Processes [element] for resolution and returns the [FunctionElement] that | 412 /// Processes [element] for resolution and returns the [FunctionElement] that |
| 419 /// defines the implementation of [element]. | 413 /// defines the implementation of [element]. |
| 420 FunctionElement resolveExternalFunction(FunctionElement element) => element; | 414 FunctionElement resolveExternalFunction(FunctionElement element) => element; |
| 421 | 415 |
| (...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2417 return futureClass.computeType(compiler).createInstantiation([elementType]); | 2411 return futureClass.computeType(compiler).createInstantiation([elementType]); |
| 2418 } | 2412 } |
| 2419 | 2413 |
| 2420 @override | 2414 @override |
| 2421 InterfaceType streamType([DartType elementType = const DynamicType()]) { | 2415 InterfaceType streamType([DartType elementType = const DynamicType()]) { |
| 2422 return streamClass.computeType(compiler).createInstantiation([elementType]); | 2416 return streamClass.computeType(compiler).createInstantiation([elementType]); |
| 2423 } | 2417 } |
| 2424 } | 2418 } |
| 2425 | 2419 |
| 2426 typedef void InternalErrorFunction(Spannable location, String message); | 2420 typedef void InternalErrorFunction(Spannable location, String message); |
| OLD | NEW |