OLD | NEW |
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 abstract class num implements Comparable<num> { | 171 abstract class num implements Comparable<num> { |
172 bool operator ==(Object other); | 172 bool operator ==(Object other); |
173 bool operator <(num other); | 173 bool operator <(num other); |
174 bool operator <=(num other); | 174 bool operator <=(num other); |
175 bool operator >(num other); | 175 bool operator >(num other); |
176 bool operator >=(num other); | 176 bool operator >=(num other); |
177 num operator +(num other); | 177 num operator +(num other); |
178 num operator -(num other); | 178 num operator -(num other); |
179 num operator *(num other); | 179 num operator *(num other); |
180 num operator /(num other); | 180 double operator /(num other); |
181 int operator ^(int other); | 181 int operator ^(int other); |
182 int operator |(int other); | 182 int operator |(int other); |
183 int operator <<(int other); | 183 int operator <<(int other); |
184 int operator >>(int other); | 184 int operator >>(int other); |
185 int operator ~/(num other); | 185 int operator ~/(num other); |
186 num operator %(num other); | 186 num operator %(num other); |
187 int operator ~(); | 187 int operator ~(); |
188 num operator -(); | 188 num operator -(); |
189 int toInt(); | 189 int toInt(); |
190 double toDouble(); | 190 double toDouble(); |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 | 631 |
632 @override | 632 @override |
633 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { | 633 AnalysisCache createCacheFromSourceFactory(SourceFactory factory) { |
634 if (factory == null) { | 634 if (factory == null) { |
635 return super.createCacheFromSourceFactory(factory); | 635 return super.createCacheFromSourceFactory(factory); |
636 } | 636 } |
637 return new AnalysisCache( | 637 return new AnalysisCache( |
638 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 638 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
639 } | 639 } |
640 } | 640 } |
OLD | NEW |