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

Side by Side Diff: pkg/analysis_testing/lib/mock_sdk.dart

Issue 498763003: Initial 'Extract Method' refactoring implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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 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 19 matching lines...) Expand all
30 } 30 }
31 31
32 class String implements Comparable<String> { 32 class String implements Comparable<String> {
33 bool get isEmpty => false; 33 bool get isEmpty => false;
34 bool get isNotEmpty => false; 34 bool get isNotEmpty => false;
35 int get length => 0; 35 int get length => 0;
36 } 36 }
37 37
38 class bool extends Object {} 38 class bool extends Object {}
39 abstract class num implements Comparable<num> { 39 abstract class num implements Comparable<num> {
40 bool operator <(num other);
40 num operator +(num other); 41 num operator +(num other);
41 num operator -(num other); 42 num operator -(num other);
42 num operator *(num other); 43 num operator *(num other);
43 num operator /(num other); 44 num operator /(num other);
44 int toInt(); 45 int toInt();
45 } 46 }
46 abstract class int extends num { 47 abstract class int extends num {
47 bool get isEven => false; 48 bool get isEven => false;
48 int operator -(); 49 int operator -();
49 } 50 }
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 bool get isInternal => throw unimplemented; 213 bool get isInternal => throw unimplemented;
213 214
214 @override 215 @override
215 bool get isShared => throw unimplemented; 216 bool get isShared => throw unimplemented;
216 217
217 @override 218 @override
218 bool get isVmLibrary => throw unimplemented; 219 bool get isVmLibrary => throw unimplemented;
219 220
220 UnimplementedError get unimplemented => new UnimplementedError(); 221 UnimplementedError get unimplemented => new UnimplementedError();
221 } 222 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698