| 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 '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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |