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

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

Issue 11308257: - Parse the return type of JS during resolution to know what can be instantiated there. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 'dart:uri'; 7 import 'dart:uri';
8 8
9 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; 9 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api;
10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' 10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 const String DEFAULT_INTERCEPTORSLIB = r''' 51 const String DEFAULT_INTERCEPTORSLIB = r'''
52 class JSArray { 52 class JSArray {
53 var length; 53 var length;
54 } 54 }
55 class JSString { 55 class JSString {
56 var length; 56 var length;
57 } 57 }
58 class JSNumber { 58 class JSNumber {
59 } 59 }
60 class JSInt {
61 }
62 class JSDouble {
63 }
64 class JSNull {
65 }
66 class JSBool {
67 }
68 class JSFunction {
69 }
60 class ObjectInterceptor { 70 class ObjectInterceptor {
61 } 71 }
62 getInterceptor(x) {}'''; 72 getInterceptor(x) {}''';
63 73
64 const String DEFAULT_CORELIB = r''' 74 const String DEFAULT_CORELIB = r'''
65 print(var obj) {} 75 print(var obj) {}
66 abstract class num {} 76 abstract class num {}
67 abstract class int extends num { } 77 abstract class int extends num { }
68 abstract class double extends num { } 78 abstract class double extends num { }
69 class bool {} 79 class bool {}
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 operator []=(Node node, Element element) { 272 operator []=(Node node, Element element) {
263 map[node] = element; 273 map[node] = element;
264 } 274 }
265 275
266 operator [](Node node) => map[node]; 276 operator [](Node node) => map[node];
267 277
268 void remove(Node node) { 278 void remove(Node node) {
269 map.remove(node); 279 map.remove(node);
270 } 280 }
271 } 281 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/nodes.dart ('k') | tests/language/interceptor4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698