| 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 #library('dart:_interceptors'); | 5 #library('dart:_interceptors'); |
| 6 | 6 |
| 7 #import('dart:collection'); | 7 #import('dart:collection'); |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * The interceptor class for [String]. The compiler recognizes this | 10 * The interceptor class for [String]. The compiler recognizes this |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 return getOrCreateCachedRuntimeType('int'); | 695 return getOrCreateCachedRuntimeType('int'); |
| 696 } else if (receiver is String) { | 696 } else if (receiver is String) { |
| 697 return getOrCreateCachedRuntimeType('String'); | 697 return getOrCreateCachedRuntimeType('String'); |
| 698 } else if (receiver is double) { | 698 } else if (receiver is double) { |
| 699 return getOrCreateCachedRuntimeType('double'); | 699 return getOrCreateCachedRuntimeType('double'); |
| 700 } else if (receiver is bool) { | 700 } else if (receiver is bool) { |
| 701 return getOrCreateCachedRuntimeType('bool'); | 701 return getOrCreateCachedRuntimeType('bool'); |
| 702 } else if (receiver == null) { | 702 } else if (receiver == null) { |
| 703 return getOrCreateCachedRuntimeType('Null'); | 703 return getOrCreateCachedRuntimeType('Null'); |
| 704 } else if (isJsArray(receiver)) { | 704 } else if (isJsArray(receiver)) { |
| 705 return getOrCreateCachedRuntimeType('List'); | 705 return getOrCreateCachedRuntimeType(getRuntimeTypeString(receiver)); |
| 706 } else { | 706 } else { |
| 707 return UNINTERCEPTED(receiver.runtimeType); | 707 return UNINTERCEPTED(receiver.runtimeType); |
| 708 } | 708 } |
| 709 } | 709 } |
| 710 | 710 |
| 711 // TODO(lrn): These getters should be generated automatically for all | 711 // TODO(lrn): These getters should be generated automatically for all |
| 712 // intercepted methods. | 712 // intercepted methods. |
| 713 get$toString(receiver) => () => toString(receiver); | 713 get$toString(receiver) => () => toString(receiver); |
| OLD | NEW |