| 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:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; | 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 print(var obj) {} | 170 print(var obj) {} |
| 171 abstract class num {} | 171 abstract class num {} |
| 172 abstract class int extends num { } | 172 abstract class int extends num { } |
| 173 abstract class double extends num { | 173 abstract class double extends num { |
| 174 static var NAN = 0; | 174 static var NAN = 0; |
| 175 static parse(s) {} | 175 static parse(s) {} |
| 176 } | 176 } |
| 177 class bool {} | 177 class bool {} |
| 178 class String implements Pattern {} | 178 class String implements Pattern {} |
| 179 class Object { | 179 class Object { |
| 180 Object(); |
| 180 operator ==(other) { return true; } | 181 operator ==(other) { return true; } |
| 181 get hashCode => throw "Object.hashCode not implemented."; | 182 get hashCode => throw "Object.hashCode not implemented."; |
| 182 String toString() { return null; } | 183 String toString() { return null; } |
| 183 noSuchMethod(im) { throw im; } | 184 noSuchMethod(im) { throw im; } |
| 184 } | 185 } |
| 185 abstract class StackTrace {} | 186 abstract class StackTrace {} |
| 186 class Type {} | 187 class Type {} |
| 187 class Function {} | 188 class Function {} |
| 188 class List<E> { | 189 class List<E> { |
| 189 List([length]); | 190 List([length]); |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 } | 452 } |
| 452 } | 453 } |
| 453 | 454 |
| 454 class MockDeferredLoadTask extends DeferredLoadTask { | 455 class MockDeferredLoadTask extends DeferredLoadTask { |
| 455 MockDeferredLoadTask(Compiler compiler) : super(compiler); | 456 MockDeferredLoadTask(Compiler compiler) : super(compiler); |
| 456 | 457 |
| 457 void registerMainApp(LibraryElement mainApp) { | 458 void registerMainApp(LibraryElement mainApp) { |
| 458 // Do nothing. | 459 // Do nothing. |
| 459 } | 460 } |
| 460 } | 461 } |
| OLD | NEW |