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

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

Issue 236313012: Don't hide interceptors in mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 7 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: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
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
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 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mirrors_used_test.dart ('k') | tests/compiler/dart2js/value_range_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698