Chromium Code Reviews| Index: pkg/analyzer/test/src/context/mock_sdk.dart |
| diff --git a/pkg/analyzer/test/src/context/mock_sdk.dart b/pkg/analyzer/test/src/context/mock_sdk.dart |
| index 54669495a51c45d67f08d22889cf2afce61b083e..715ad1cc0c38d1109df9090973e514de116eac77 100644 |
| --- a/pkg/analyzer/test/src/context/mock_sdk.dart |
| +++ b/pkg/analyzer/test/src/context/mock_sdk.dart |
| @@ -151,18 +151,19 @@ abstract class Iterable<E> { |
| /*=R*/ combine(/*=R*/ previousValue, E element)); |
| } |
| -abstract class List<E> implements Iterable<E> { |
| - void add(E value); |
| - E operator [](int index); |
| - void operator []=(int index, E value); |
| +class List<E> implements Iterable<E> { |
| + List(); |
|
Brian Wilkerson
2016/03/10 00:09:33
What's the motivation for these changes? Both List
Bob Nystrom
2016/03/10 00:40:55
strong_mode_test uses `new List()` in a few tests.
Brian Wilkerson
2016/03/10 00:44:22
I believe that we've been reproducing the SDK exac
|
| + void add(E value) {} |
| + E operator [](int index) => null; |
| + void operator []=(int index, E value) {} |
| Iterator<E> get iterator => null; |
| - void clear(); |
| + void clear() {} |
| } |
| -abstract class Map<K, V> extends Object { |
| - Iterable<K> get keys; |
| - V operator [](K key); |
| - void operator []=(K key, V value); |
| +class Map<K, V> extends Object { |
| + Iterable<K> get keys => null; |
| + V operator [](K key) => null; |
| + void operator []=(K key, V value) {} |
| } |
| external bool identical(Object a, Object b); |