| 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 mock_compiler; | 5 library mock_compiler; |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 | 10 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 } | 171 } |
| 172 class JSInt extends JSNumber implements int { | 172 class JSInt extends JSNumber implements int { |
| 173 } | 173 } |
| 174 class JSDouble extends JSNumber implements double { | 174 class JSDouble extends JSNumber implements double { |
| 175 } | 175 } |
| 176 class JSNull extends Interceptor { | 176 class JSNull extends Interceptor { |
| 177 bool operator==(other) => identical(null, other); | 177 bool operator==(other) => identical(null, other); |
| 178 get hashCode => throw "JSNull.hashCode not implemented."; | 178 get hashCode => throw "JSNull.hashCode not implemented."; |
| 179 String toString() => 'Null'; | 179 String toString() => 'Null'; |
| 180 Type get runtimeType => null; | 180 Type get runtimeType => null; |
| 181 noSuchMethod(x) => super.noSuchMethod(x); |
| 181 } | 182 } |
| 182 class JSBool extends Interceptor implements bool { | 183 class JSBool extends Interceptor implements bool { |
| 183 } | 184 } |
| 184 class JSFunction extends Interceptor implements Function { | 185 class JSFunction extends Interceptor implements Function { |
| 185 } | 186 } |
| 186 class ObjectInterceptor { | 187 class ObjectInterceptor { |
| 187 } | 188 } |
| 188 getInterceptor(x) {} | 189 getInterceptor(x) {} |
| 189 getNativeInterceptor(x) {} | 190 getNativeInterceptor(x) {} |
| 190 var dispatchPropertyName; | 191 var dispatchPropertyName; |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 } else { | 579 } else { |
| 579 sourceFile = compiler.sourceFiles[uri.toString()]; | 580 sourceFile = compiler.sourceFiles[uri.toString()]; |
| 580 } | 581 } |
| 581 if (sourceFile != null && begin != null && end != null) { | 582 if (sourceFile != null && begin != null && end != null) { |
| 582 print(sourceFile.getLocationMessage(message, begin, end, true, (x) => x)); | 583 print(sourceFile.getLocationMessage(message, begin, end, true, (x) => x)); |
| 583 } else { | 584 } else { |
| 584 print(message); | 585 print(message); |
| 585 } | 586 } |
| 586 }; | 587 }; |
| 587 } | 588 } |
| OLD | NEW |