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

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

Issue 1956443003: Update mock SDK 'double'. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 num abs(); 134 num abs();
135 int round(); 135 int round();
136 } 136 }
137 abstract class int extends num { 137 abstract class int extends num {
138 bool get isEven => false; 138 bool get isEven => false;
139 int operator -(); 139 int operator -();
140 external static int parse(String source, 140 external static int parse(String source,
141 { int radix, 141 { int radix,
142 int onError(String source) }); 142 int onError(String source) });
143 } 143 }
144 class double extends num {} 144
145 abstract class double extends num {
146 static const double NAN = 0.0 / 0.0;
147 static const double INFINITY = 1.0 / 0.0;
148 static const double NEGATIVE_INFINITY = -INFINITY;
149 static const double MIN_POSITIVE = 5e-324;
150 static const double MAX_FINITE = 1.7976931348623157e+308;
151
152 double remainder(num other);
153 double operator +(num other);
154 double operator -(num other);
155 double operator *(num other);
156 double operator %(num other);
157 double operator /(num other);
158 int operator ~/(num other);
159 double operator -();
160 double abs();
161 double get sign;
162 int round();
163 int floor();
164 int ceil();
165 int truncate();
166 double roundToDouble();
167 double floorToDouble();
168 double ceilToDouble();
169 double truncateToDouble();
170 external static double parse(String source,
171 [double onError(String source)]);
172 }
173
145 class DateTime extends Object {} 174 class DateTime extends Object {}
146 class Null extends Object {} 175 class Null extends Object {}
147 176
148 class Deprecated extends Object { 177 class Deprecated extends Object {
149 final String expires; 178 final String expires;
150 const Deprecated(this.expires); 179 const Deprecated(this.expires);
151 } 180 }
152 const Object deprecated = const Deprecated("next release"); 181 const Object deprecated = const Deprecated("next release");
153 182
154 class Iterator<E> { 183 class Iterator<E> {
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 436
408 @override 437 @override
409 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { 438 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) {
410 if (factory == null) { 439 if (factory == null) {
411 return super.createCacheFromSourceFactory(factory); 440 return super.createCacheFromSourceFactory(factory);
412 } 441 }
413 return new AnalysisCache( 442 return new AnalysisCache(
414 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 443 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
415 } 444 }
416 } 445 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/mock_sdk.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