Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: pkg/analyzer2dart/test/mock_sdk.dart

Issue 896663004: Add Iterable type to mock SDK for analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 testing.mock_sdk; 5 library testing.mock_sdk;
6 6
7 import 'package:analyzer/file_system/file_system.dart' as resource; 7 import 'package:analyzer/file_system/file_system.dart' as resource;
8 import 'package:analyzer/file_system/memory_file_system.dart' as resource; 8 import 'package:analyzer/file_system/memory_file_system.dart' as resource;
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/sdk.dart'; 10 import 'package:analyzer/src/generated/sdk.dart';
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class double extends num {} 51 class double extends num {}
52 class DateTime extends Object {} 52 class DateTime extends Object {}
53 class Null extends Object {} 53 class Null extends Object {}
54 54
55 class Deprecated extends Object { 55 class Deprecated extends Object {
56 final String expires; 56 final String expires;
57 const Deprecated(this.expires); 57 const Deprecated(this.expires);
58 } 58 }
59 const Object deprecated = const Deprecated("next release"); 59 const Object deprecated = const Deprecated("next release");
60 60
61 abstract class List<E> extends Object { 61 abstract class Iterable<E> {}
62
63 abstract class List<E> extends Object implements Iterable {
62 void add(E value); 64 void add(E value);
63 E operator [](int index); 65 E operator [](int index);
64 void operator []=(int index, E value); 66 void operator []=(int index, E value);
65 } 67 }
66 class Map<K, V> extends Object {} 68 class Map<K, V> extends Object {}
67 69
68 external bool identical(Object a, Object b); 70 external bool identical(Object a, Object b);
69 71
70 void print(Object object) {} 72 void print(Object object) {}
71 73
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 bool get isInternal => throw unimplemented; 241 bool get isInternal => throw unimplemented;
240 242
241 @override 243 @override
242 bool get isShared => throw unimplemented; 244 bool get isShared => throw unimplemented;
243 245
244 @override 246 @override
245 bool get isVmLibrary => throw unimplemented; 247 bool get isVmLibrary => throw unimplemented;
246 248
247 UnimplementedError get unimplemented => new UnimplementedError(); 249 UnimplementedError get unimplemented => new UnimplementedError();
248 } 250 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698