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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 } | 157 } |
158 class JSBool extends Interceptor implements bool { | 158 class JSBool extends Interceptor implements bool { |
159 } | 159 } |
160 class JSFunction extends Interceptor implements Function { | 160 class JSFunction extends Interceptor implements Function { |
161 } | 161 } |
162 class ObjectInterceptor { | 162 class ObjectInterceptor { |
163 } | 163 } |
164 getInterceptor(x) {} | 164 getInterceptor(x) {} |
165 getNativeInterceptor(x) {} | 165 getNativeInterceptor(x) {} |
166 var dispatchPropertyName; | 166 var dispatchPropertyName; |
| 167 var mapTypeToInterceptor; |
167 getDispatchProperty(o) {} | 168 getDispatchProperty(o) {} |
168 initializeDispatchProperty(f,p,i) {} | 169 initializeDispatchProperty(f,p,i) {} |
169 initializeDispatchPropertyCSP(f,p,i) {} | 170 initializeDispatchPropertyCSP(f,p,i) {} |
170 '''; | 171 '''; |
171 | 172 |
172 const String DEFAULT_CORELIB = r''' | 173 const String DEFAULT_CORELIB = r''' |
173 print(var obj) {} | 174 print(var obj) {} |
174 abstract class num {} | 175 abstract class num {} |
175 abstract class int extends num { } | 176 abstract class int extends num { } |
176 abstract class double extends num { | 177 abstract class double extends num { |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 } | 456 } |
456 } | 457 } |
457 | 458 |
458 class MockDeferredLoadTask extends DeferredLoadTask { | 459 class MockDeferredLoadTask extends DeferredLoadTask { |
459 MockDeferredLoadTask(Compiler compiler) : super(compiler); | 460 MockDeferredLoadTask(Compiler compiler) : super(compiler); |
460 | 461 |
461 void registerMainApp(LibraryElement mainApp) { | 462 void registerMainApp(LibraryElement mainApp) { |
462 // Do nothing. | 463 // Do nothing. |
463 } | 464 } |
464 } | 465 } |
OLD | NEW |