| 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/elements/elements.dar
t'; | 10 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar
t'; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 abstract class JavaScriptIndexingBehavior {} | 51 abstract class JavaScriptIndexingBehavior {} |
| 52 class JSInvocationMirror {} | 52 class JSInvocationMirror {} |
| 53 S() {} | 53 S() {} |
| 54 assertHelper(a){} | 54 assertHelper(a){} |
| 55 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}'''; | 55 throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}'''; |
| 56 | 56 |
| 57 const String DEFAULT_INTERCEPTORSLIB = r''' | 57 const String DEFAULT_INTERCEPTORSLIB = r''' |
| 58 class JSArray { | 58 class JSArray { |
| 59 var length; | 59 var length; |
| 60 operator[](index) {} | 60 operator[](index) {} |
| 61 operator[]=(index, value) {} |
| 61 var add; | 62 var add; |
| 62 } | 63 } |
| 63 class JSString { | 64 class JSString { |
| 64 var length; | 65 var length; |
| 65 operator[](index) {} | 66 operator[](index) {} |
| 66 } | 67 } |
| 67 class JSNumber { | 68 class JSNumber { |
| 68 } | 69 } |
| 69 class JSInt { | 70 class JSInt { |
| 70 } | 71 } |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 operator []=(Node node, Element element) { | 298 operator []=(Node node, Element element) { |
| 298 map[node] = element; | 299 map[node] = element; |
| 299 } | 300 } |
| 300 | 301 |
| 301 operator [](Node node) => map[node]; | 302 operator [](Node node) => map[node]; |
| 302 | 303 |
| 303 void remove(Node node) { | 304 void remove(Node node) { |
| 304 map.remove(node); | 305 map.remove(node); |
| 305 } | 306 } |
| 306 } | 307 } |
| OLD | NEW |