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

Side by Side Diff: pkg/analyzer/test/src/context/mock_sdk.dart

Issue 2654733003: Make Stream abstract as it is in the actual SDK. (Closed)
Patch Set: Created 3 years, 11 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
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 analyzer.test.src.context.mock_sdk; 5 library analyzer.test.src.context.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/context/cache.dart'; 9 import 'package:analyzer/src/context/cache.dart';
10 import 'package:analyzer/src/context/context.dart'; 10 import 'package:analyzer/src/context/context.dart';
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 factory Completer.sync() => new _SyncCompleter<T>(); 59 factory Completer.sync() => new _SyncCompleter<T>();
60 Future<T> get future; 60 Future<T> get future;
61 void complete([value]); 61 void complete([value]);
62 void completeError(Object error, [StackTrace stackTrace]); 62 void completeError(Object error, [StackTrace stackTrace]);
63 bool get isCompleted; 63 bool get isCompleted;
64 } 64 }
65 ''', 65 ''',
66 const <String, String>{ 66 const <String, String>{
67 '$sdkRoot/lib/async/stream.dart': r''' 67 '$sdkRoot/lib/async/stream.dart': r'''
68 part of dart.async; 68 part of dart.async;
69 class Stream<T> { 69 abstract class Stream<T> {
70 Future<T> get first; 70 Future<T> get first;
71 } 71 }
72 abstract class StreamTransformer<S, T> {} 72 abstract class StreamTransformer<S, T> {}
73 ''' 73 '''
74 }); 74 });
75 75
76 const _MockSdkLibrary _LIB_COLLECTION = const _MockSdkLibrary( 76 const _MockSdkLibrary _LIB_COLLECTION = const _MockSdkLibrary(
77 'dart:collection', 77 'dart:collection',
78 '$sdkRoot/lib/collection/collection.dart', 78 '$sdkRoot/lib/collection/collection.dart',
79 ''' 79 '''
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 535
536 @override 536 @override
537 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { 537 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) {
538 if (factory == null) { 538 if (factory == null) {
539 return super.createCacheFromSourceFactory(factory); 539 return super.createCacheFromSourceFactory(factory);
540 } 540 }
541 return new AnalysisCache( 541 return new AnalysisCache(
542 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 542 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
543 } 543 }
544 } 544 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/non_error_resolver_test.dart ('k') | pkg/analyzer/test/src/task/strong/checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698