| 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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 void onAbstractClassInstantiation(Registry registry) {} | 582 void onAbstractClassInstantiation(Registry registry) {} |
| 583 | 583 |
| 584 /// Register that the application may throw a [FallThroughError]. | 584 /// Register that the application may throw a [FallThroughError]. |
| 585 void onFallThroughError(Registry registry) {} | 585 void onFallThroughError(Registry registry) {} |
| 586 | 586 |
| 587 /// Register that a super call will end up calling | 587 /// Register that a super call will end up calling |
| 588 /// [: super.noSuchMethod :]. | 588 /// [: super.noSuchMethod :]. |
| 589 void onSuperNoSuchMethod(Registry registry) {} | 589 void onSuperNoSuchMethod(Registry registry) {} |
| 590 | 590 |
| 591 /// Register that the application creates a constant map. | 591 /// Register that the application creates a constant map. |
| 592 void onConstantMap(Registry registry) {} | 592 void onMapLiteral(Registry registry, DartType type, bool isConstant) {} |
| 593 | 593 |
| 594 /// Called when resolving the `Symbol` constructor. | 594 /// Called when resolving the `Symbol` constructor. |
| 595 void onSymbolConstructor(Registry registry) {} | 595 void onSymbolConstructor(Registry registry) {} |
| 596 } | 596 } |
| 597 | 597 |
| 598 /** | 598 /** |
| 599 * Key class used in [TokenMap] in which the hash code for a token is based | 599 * Key class used in [TokenMap] in which the hash code for a token is based |
| 600 * on the [charOffset]. | 600 * on the [charOffset]. |
| 601 */ | 601 */ |
| 602 class TokenKey { | 602 class TokenKey { |
| (...skipping 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2408 return futureClass.computeType(compiler).createInstantiation([elementType]); | 2408 return futureClass.computeType(compiler).createInstantiation([elementType]); |
| 2409 } | 2409 } |
| 2410 | 2410 |
| 2411 @override | 2411 @override |
| 2412 InterfaceType streamType([DartType elementType = const DynamicType()]) { | 2412 InterfaceType streamType([DartType elementType = const DynamicType()]) { |
| 2413 return streamClass.computeType(compiler).createInstantiation([elementType]); | 2413 return streamClass.computeType(compiler).createInstantiation([elementType]); |
| 2414 } | 2414 } |
| 2415 } | 2415 } |
| 2416 | 2416 |
| 2417 typedef void InternalErrorFunction(Spannable location, String message); | 2417 typedef void InternalErrorFunction(Spannable location, String message); |
| OLD | NEW |