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

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

Issue 680133003: Issue 21458. Support for 'Add type' Quick Assist in for-each loops. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class double extends num {} 53 class double extends num {}
54 class DateTime extends Object {} 54 class DateTime extends Object {}
55 class Null extends Object {} 55 class Null extends Object {}
56 56
57 class Deprecated extends Object { 57 class Deprecated extends Object {
58 final String expires; 58 final String expires;
59 const Deprecated(this.expires); 59 const Deprecated(this.expires);
60 } 60 }
61 const Object deprecated = const Deprecated("next release"); 61 const Object deprecated = const Deprecated("next release");
62 62
63 abstract class List<E> extends Object { 63 class Iterator<E> {
64 bool moveNext();
65 E get current;
66 }
67
68 abstract class Iterable<E> {
69 Iterator<E> get iterator;
70 }
71
72 abstract class List<E> implements Iterable<E> {
64 void add(E value); 73 void add(E value);
65 E operator [](int index); 74 E operator [](int index);
66 void operator []=(int index, E value); 75 void operator []=(int index, E value);
76 Iterator<E> get iterator => null;
67 } 77 }
78
68 class Map<K, V> extends Object {} 79 class Map<K, V> extends Object {}
69 80
70 external bool identical(Object a, Object b); 81 external bool identical(Object a, Object b);
71 82
72 void print(Object object) {} 83 void print(Object object) {}
73 '''); 84 ''');
74 85
75 static const _MockSdkLibrary LIB_ASYNC = 86 static const _MockSdkLibrary LIB_ASYNC =
76 const _MockSdkLibrary('dart:async', '/lib/async/async.dart', ''' 87 const _MockSdkLibrary('dart:async', '/lib/async/async.dart', '''
77 library dart.async; 88 library dart.async;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 bool get isInternal => throw unimplemented; 253 bool get isInternal => throw unimplemented;
243 254
244 @override 255 @override
245 bool get isShared => throw unimplemented; 256 bool get isShared => throw unimplemented;
246 257
247 @override 258 @override
248 bool get isVmLibrary => throw unimplemented; 259 bool get isVmLibrary => throw unimplemented;
249 260
250 UnimplementedError get unimplemented => new UnimplementedError(); 261 UnimplementedError get unimplemented => new UnimplementedError();
251 } 262 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698