| 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 test.src.mock_sdk; | 5 library test.src.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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void clear(); | 91 void clear(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 abstract class Map<K, V> extends Object { | 94 abstract class Map<K, V> extends Object { |
| 95 Iterable<K> get keys; | 95 Iterable<K> get keys; |
| 96 } | 96 } |
| 97 | 97 |
| 98 external bool identical(Object a, Object b); | 98 external bool identical(Object a, Object b); |
| 99 | 99 |
| 100 void print(Object object) {} | 100 void print(Object object) {} |
| 101 |
| 102 class _Override { |
| 103 const _Override(); |
| 104 } |
| 105 const Object override = const _Override(); |
| 101 '''); | 106 '''); |
| 102 | 107 |
| 103 static const _MockSdkLibrary LIB_ASYNC = const _MockSdkLibrary('dart:async', | 108 static const _MockSdkLibrary LIB_ASYNC = const _MockSdkLibrary('dart:async', |
| 104 '/lib/async/async.dart', ''' | 109 '/lib/async/async.dart', ''' |
| 105 library dart.async; | 110 library dart.async; |
| 106 | 111 |
| 107 import 'dart:math'; | 112 import 'dart:math'; |
| 108 | 113 |
| 109 class Future<T> { | 114 class Future<T> { |
| 110 factory Future.delayed(Duration duration, [T computation()]) => null; | 115 factory Future.delayed(Duration duration, [T computation()]) => null; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 bool get isInternal => throw unimplemented; | 306 bool get isInternal => throw unimplemented; |
| 302 | 307 |
| 303 @override | 308 @override |
| 304 bool get isShared => throw unimplemented; | 309 bool get isShared => throw unimplemented; |
| 305 | 310 |
| 306 @override | 311 @override |
| 307 bool get isVmLibrary => throw unimplemented; | 312 bool get isVmLibrary => throw unimplemented; |
| 308 | 313 |
| 309 UnimplementedError get unimplemented => new UnimplementedError(); | 314 UnimplementedError get unimplemented => new UnimplementedError(); |
| 310 } | 315 } |
| OLD | NEW |