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