| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 boolConversionCheck(x) {} | 44 boolConversionCheck(x) {} |
| 45 abstract class JavaScriptIndexingBehavior {} | 45 abstract class JavaScriptIndexingBehavior {} |
| 46 class JSInvocationMirror {} | 46 class JSInvocationMirror {} |
| 47 S() {} | 47 S() {} |
| 48 assertHelper(a){} | 48 assertHelper(a){} |
| 49 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}'''; | 49 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}'''; |
| 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 operator[](index) {} |
| 54 } | 55 } |
| 55 class JSString { | 56 class JSString { |
| 56 var length; | 57 var length; |
| 57 } | 58 } |
| 58 class JSNumber { | 59 class JSNumber { |
| 59 } | 60 } |
| 60 class JSInt { | 61 class JSInt { |
| 61 } | 62 } |
| 62 class JSDouble { | 63 class JSDouble { |
| 63 } | 64 } |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 operator []=(Node node, Element element) { | 273 operator []=(Node node, Element element) { |
| 273 map[node] = element; | 274 map[node] = element; |
| 274 } | 275 } |
| 275 | 276 |
| 276 operator [](Node node) => map[node]; | 277 operator [](Node node) => map[node]; |
| 277 | 278 |
| 278 void remove(Node node) { | 279 void remove(Node node) { |
| 279 map.remove(node); | 280 map.remove(node); |
| 280 } | 281 } |
| 281 } | 282 } |
| OLD | NEW |