| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 S() {} | 47 S() {} |
| 48 assertHelper(a){}'''; | 48 assertHelper(a){}'''; |
| 49 | 49 |
| 50 const String DEFAULT_INTERCEPTORSLIB = r''' | 50 const String DEFAULT_INTERCEPTORSLIB = r''' |
| 51 class JSArray { | 51 class JSArray { |
| 52 var length; | 52 var length; |
| 53 } | 53 } |
| 54 class JSString { | 54 class JSString { |
| 55 var length; | 55 var length; |
| 56 } | 56 } |
| 57 class JSNumber { |
| 58 } |
| 59 class ObjectInterceptor { |
| 60 } |
| 57 getInterceptor(x) {}'''; | 61 getInterceptor(x) {}'''; |
| 58 | 62 |
| 59 const String DEFAULT_CORELIB = r''' | 63 const String DEFAULT_CORELIB = r''' |
| 60 print(var obj) {} | 64 print(var obj) {} |
| 61 abstract class num {} | 65 abstract class num {} |
| 62 abstract class int extends num { } | 66 abstract class int extends num { } |
| 63 abstract class double extends num { } | 67 abstract class double extends num { } |
| 64 class bool {} | 68 class bool {} |
| 65 class String {} | 69 class String {} |
| 66 class Object {} | 70 class Object {} |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 operator []=(Node node, Element element) { | 261 operator []=(Node node, Element element) { |
| 258 map[node] = element; | 262 map[node] = element; |
| 259 } | 263 } |
| 260 | 264 |
| 261 operator [](Node node) => map[node]; | 265 operator [](Node node) => map[node]; |
| 262 | 266 |
| 263 void remove(Node node) { | 267 void remove(Node node) { |
| 264 map.remove(node); | 268 map.remove(node); |
| 265 } | 269 } |
| 266 } | 270 } |
| OLD | NEW |