| 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:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:uri'; | 8 import 'dart:uri'; |
| 9 | 9 |
| 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; | 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const String DEFAULT_INTERCEPTORSLIB = r''' | 55 const String DEFAULT_INTERCEPTORSLIB = r''' |
| 56 class JSArray { | 56 class JSArray { |
| 57 var length; | 57 var length; |
| 58 operator[](index) {} | 58 operator[](index) {} |
| 59 operator[]=(index, value) {} | 59 operator[]=(index, value) {} |
| 60 var add; | 60 var add; |
| 61 } | 61 } |
| 62 class JSString { | 62 class JSString { |
| 63 var length; | 63 var length; |
| 64 operator[](index) {} | 64 operator[](index) {} |
| 65 toString() {} |
| 65 } | 66 } |
| 66 class JSNumber { | 67 class JSNumber { |
| 67 operator-() {} | 68 operator-() {} |
| 68 operator +(other) {} | 69 operator +(other) {} |
| 69 operator -(other) {} | 70 operator -(other) {} |
| 70 operator ~/(other) {} | 71 operator ~/(other) {} |
| 71 operator /(other) {} | 72 operator /(other) {} |
| 72 operator *(other) {} | 73 operator *(other) {} |
| 73 operator <<(other) {} | 74 operator <<(other) {} |
| 74 operator >>(other) {} | 75 operator >>(other) {} |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 operator []=(Node node, Element element) { | 332 operator []=(Node node, Element element) { |
| 332 map[node] = element; | 333 map[node] = element; |
| 333 } | 334 } |
| 334 | 335 |
| 335 operator [](Node node) => map[node]; | 336 operator [](Node node) => map[node]; |
| 336 | 337 |
| 337 void remove(Node node) { | 338 void remove(Node node) { |
| 338 map.remove(node); | 339 map.remove(node); |
| 339 } | 340 } |
| 340 } | 341 } |
| OLD | NEW |