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

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

Issue 1000223003: include unimported sdk lib types as low priority suggestions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 years, 9 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
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void print(Object object) {} 100 void print(Object object) {}
101 '''); 101 ''');
102 102
103 static const _MockSdkLibrary LIB_ASYNC = const _MockSdkLibrary('dart:async', 103 static const _MockSdkLibrary LIB_ASYNC = const _MockSdkLibrary('dart:async',
104 '/lib/async/async.dart', ''' 104 '/lib/async/async.dart', '''
105 library dart.async; 105 library dart.async;
106 106
107 import 'dart:math'; 107 import 'dart:math';
108 108
109 class Future<T> { 109 class Future<T> {
110 factory Future(computation()) => null;
110 factory Future.delayed(Duration duration, [T computation()]) => null; 111 factory Future.delayed(Duration duration, [T computation()]) => null;
111 factory Future.value([value]) => null; 112 factory Future.value([value]) => null;
112 static Future wait(List<Future> futures) => null; 113 static Future wait(List<Future> futures) => null;
113 } 114 }
114 115
115 class Stream<T> {} 116 class Stream<T> {}
116 abstract class StreamTransformer<S, T> {} 117 abstract class StreamTransformer<S, T> {}
117 '''); 118 ''');
118 119
119 static const _MockSdkLibrary LIB_COLLECTION = const _MockSdkLibrary( 120 static const _MockSdkLibrary LIB_COLLECTION = const _MockSdkLibrary(
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 bool get isInternal => throw unimplemented; 302 bool get isInternal => throw unimplemented;
302 303
303 @override 304 @override
304 bool get isShared => throw unimplemented; 305 bool get isShared => throw unimplemented;
305 306
306 @override 307 @override
307 bool get isVmLibrary => throw unimplemented; 308 bool get isVmLibrary => throw unimplemented;
308 309
309 UnimplementedError get unimplemented => new UnimplementedError(); 310 UnimplementedError get unimplemented => new UnimplementedError();
310 } 311 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698