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

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

Issue 2922383003: Add int.toString() to analyzer mock SDK. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/strong.status » ('j') | 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 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 int operator ^(int other); 202 int operator ^(int other);
203 int operator ~(); 203 int operator ~();
204 int operator <<(int shiftAmount); 204 int operator <<(int shiftAmount);
205 int operator >>(int shiftAmount); 205 int operator >>(int shiftAmount);
206 206
207 int operator -(); 207 int operator -();
208 208
209 external static int parse(String source, 209 external static int parse(String source,
210 { int radix, 210 { int radix,
211 int onError(String source) }); 211 int onError(String source) });
212
213 String toString();
212 } 214 }
213 215
214 abstract class double extends num { 216 abstract class double extends num {
215 static const double NAN = 0.0 / 0.0; 217 static const double NAN = 0.0 / 0.0;
216 static const double INFINITY = 1.0 / 0.0; 218 static const double INFINITY = 1.0 / 0.0;
217 static const double NEGATIVE_INFINITY = -INFINITY; 219 static const double NEGATIVE_INFINITY = -INFINITY;
218 static const double MIN_POSITIVE = 5e-324; 220 static const double MIN_POSITIVE = 5e-324;
219 static const double MAX_FINITE = 1.7976931348623157e+308; 221 static const double MAX_FINITE = 1.7976931348623157e+308;
220 222
221 double remainder(num other); 223 double remainder(num other);
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 631
630 @override 632 @override
631 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { 633 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) {
632 if (factory == null) { 634 if (factory == null) {
633 return super.createCacheFromSourceFactory(factory); 635 return super.createCacheFromSourceFactory(factory);
634 } 636 }
635 return new AnalysisCache( 637 return new AnalysisCache(
636 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 638 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
637 } 639 }
638 } 640 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/strong.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698