Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(648)

Side by Side Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 15026006: Support for extending native classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/lib/native_helper.dart ('k') | tests/compiler/dart2js_native/subclassing_1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698