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

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

Issue 489973002: Initial 'Extract Local' implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 14 matching lines...) Expand all
25 class Symbol {} 25 class Symbol {}
26 class Type {} 26 class Type {}
27 27
28 abstract class Comparable<T> { 28 abstract class Comparable<T> {
29 int compareTo(T other); 29 int compareTo(T other);
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 } 36 }
36 37
37 class bool extends Object {} 38 class bool extends Object {}
38 abstract class num implements Comparable<num> { 39 abstract class num implements Comparable<num> {
39 num operator +(num other); 40 num 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 int toInt(); 44 int toInt();
44 } 45 }
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 bool get isInternal => throw unimplemented; 212 bool get isInternal => throw unimplemented;
212 213
213 @override 214 @override
214 bool get isShared => throw unimplemented; 215 bool get isShared => throw unimplemented;
215 216
216 @override 217 @override
217 bool get isVmLibrary => throw unimplemented; 218 bool get isVmLibrary => throw unimplemented;
218 219
219 UnimplementedError get unimplemented => new UnimplementedError(); 220 UnimplementedError get unimplemented => new UnimplementedError();
220 } 221 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698