| 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 testing.mock_sdk; | 5 library testing.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/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
| 10 import 'package:analyzer/src/generated/sdk.dart'; | 10 import 'package:analyzer/src/generated/sdk.dart'; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class Function {} | 26 class Function {} |
| 27 class StackTrace {} | 27 class StackTrace {} |
| 28 class Symbol {} | 28 class Symbol {} |
| 29 class Type {} | 29 class Type {} |
| 30 | 30 |
| 31 abstract class Comparable<T> { | 31 abstract class Comparable<T> { |
| 32 int compareTo(T other); | 32 int compareTo(T other); |
| 33 } | 33 } |
| 34 | 34 |
| 35 class String implements Comparable<String> { | 35 class String implements Comparable<String> { |
| 36 external factory String.fromCharCodes(Iterable<int> charCodes, |
| 37 [int start = 0, int end]); |
| 36 bool get isEmpty => false; | 38 bool get isEmpty => false; |
| 37 bool get isNotEmpty => false; | 39 bool get isNotEmpty => false; |
| 38 int get length => 0; | 40 int get length => 0; |
| 39 } | 41 } |
| 40 | 42 |
| 41 class bool extends Object {} | 43 class bool extends Object {} |
| 42 abstract class num implements Comparable<num> { | 44 abstract class num implements Comparable<num> { |
| 43 bool operator <(num other); | 45 bool operator <(num other); |
| 44 bool operator <=(num other); | 46 bool operator <=(num other); |
| 45 bool operator >(num other); | 47 bool operator >(num other); |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 bool get isInternal => throw unimplemented; | 259 bool get isInternal => throw unimplemented; |
| 258 | 260 |
| 259 @override | 261 @override |
| 260 bool get isShared => throw unimplemented; | 262 bool get isShared => throw unimplemented; |
| 261 | 263 |
| 262 @override | 264 @override |
| 263 bool get isVmLibrary => throw unimplemented; | 265 bool get isVmLibrary => throw unimplemented; |
| 264 | 266 |
| 265 UnimplementedError get unimplemented => new UnimplementedError(); | 267 UnimplementedError get unimplemented => new UnimplementedError(); |
| 266 } | 268 } |
| OLD | NEW |