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

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

Issue 1724543002: fix #25487, infer block lambdas from return statements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 abstract class num implements Comparable<num> { 105 abstract class num implements Comparable<num> {
106 bool operator <(num other); 106 bool operator <(num other);
107 bool operator <=(num other); 107 bool operator <=(num other);
108 bool operator >(num other); 108 bool operator >(num other);
109 bool operator >=(num other); 109 bool operator >=(num other);
110 num operator +(num other); 110 num operator +(num other);
111 num operator -(num other); 111 num operator -(num other);
112 num operator *(num other); 112 num operator *(num other);
113 num operator /(num other); 113 num operator /(num other);
114 int toInt(); 114 int toInt();
115 double toDouble();
115 num abs(); 116 num abs();
116 int round(); 117 int round();
117 } 118 }
118 abstract class int extends num { 119 abstract class int extends num {
119 bool get isEven => false; 120 bool get isEven => false;
120 int operator -(); 121 int operator -();
121 external static int parse(String source, 122 external static int parse(String source,
122 { int radix, 123 { int radix,
123 int onError(String source) }); 124 int onError(String source) });
124 } 125 }
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 378
378 @override 379 @override
379 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { 380 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) {
380 if (factory == null) { 381 if (factory == null) {
381 return super.createCacheFromSourceFactory(factory); 382 return super.createCacheFromSourceFactory(factory);
382 } 383 }
383 return new AnalysisCache( 384 return new AnalysisCache(
384 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 385 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
385 } 386 }
386 } 387 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698