| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) {} | 75 operator <<(other) {} |
| 76 operator >>(other) {} | 76 operator >>(other) {} |
| 77 operator |(other) {} | 77 operator |(other) {} |
| 78 operator &(other) {} | 78 operator &(other) {} |
| 79 operator ^(other) {} | 79 operator ^(other) {} |
| 80 operator >(other) {} |
| 81 operator >=(other) {} |
| 82 operator <(other) {} |
| 83 operator <=(other) {} |
| 84 operator ==(other) {} |
| 80 } | 85 } |
| 81 class JSInt { | 86 class JSInt { |
| 82 } | 87 } |
| 83 class JSDouble { | 88 class JSDouble { |
| 84 } | 89 } |
| 85 class JSNull { | 90 class JSNull { |
| 86 } | 91 } |
| 87 class JSBool { | 92 class JSBool { |
| 88 } | 93 } |
| 89 class JSFunction { | 94 class JSFunction { |
| 90 } | 95 } |
| 91 class ObjectInterceptor { | 96 class ObjectInterceptor { |
| 92 } | 97 } |
| 93 getInterceptor(x) {}'''; | 98 getInterceptor(x) {}'''; |
| 94 | 99 |
| 95 const String DEFAULT_CORELIB = r''' | 100 const String DEFAULT_CORELIB = r''' |
| 96 print(var obj) {} | 101 print(var obj) {} |
| 97 abstract class num {} | 102 abstract class num {} |
| 98 abstract class int extends num { } | 103 abstract class int extends num { } |
| 99 abstract class double extends num { } | 104 abstract class double extends num { } |
| 100 class bool {} | 105 class bool {} |
| 101 class String {} | 106 class String {} |
| 102 class Object {} | 107 class Object { |
| 108 operator ==(other) {} |
| 109 } |
| 103 class Type {} | 110 class Type {} |
| 104 class Function {} | 111 class Function {} |
| 105 class List<E> {} | 112 class List<E> {} |
| 106 abstract class Map<K,V> {} | 113 abstract class Map<K,V> {} |
| 107 class Closure {} | 114 class Closure {} |
| 108 class Null {} | 115 class Null {} |
| 109 class Dynamic_ {} | 116 class Dynamic_ {} |
| 110 bool identical(Object a, Object b) {}'''; | 117 bool identical(Object a, Object b) {}'''; |
| 111 | 118 |
| 112 const String DEFAULT_ISOLATE_HELPERLIB = r''' | 119 const String DEFAULT_ISOLATE_HELPERLIB = r''' |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 operator []=(Node node, Element element) { | 328 operator []=(Node node, Element element) { |
| 322 map[node] = element; | 329 map[node] = element; |
| 323 } | 330 } |
| 324 | 331 |
| 325 operator [](Node node) => map[node]; | 332 operator [](Node node) => map[node]; |
| 326 | 333 |
| 327 void remove(Node node) { | 334 void remove(Node node) { |
| 328 map.remove(node); | 335 map.remove(node); |
| 329 } | 336 } |
| 330 } | 337 } |
| OLD | NEW |