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

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

Issue 438453002: Port and test more assists. (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 11 matching lines...) Expand all
22 class Function {} 22 class Function {}
23 class StackTrace {} 23 class StackTrace {}
24 class Symbol {} 24 class Symbol {}
25 class Type {} 25 class Type {}
26 26
27 abstract class Comparable<T> { 27 abstract class Comparable<T> {
28 int compareTo(T other); 28 int compareTo(T other);
29 } 29 }
30 30
31 class String implements Comparable<String> { 31 class String implements Comparable<String> {
32 bool get isEmpty => false;
33 bool get isNotEmpty => false;
32 } 34 }
33 35
34 class bool extends Object {} 36 class bool extends Object {}
35 abstract class num implements Comparable<num> { 37 abstract class num implements Comparable<num> {
36 num operator +(num other); 38 num operator +(num other);
37 num operator -(num other); 39 num operator -(num other);
38 num operator *(num other); 40 num operator *(num other);
39 num operator /(num other); 41 num operator /(num other);
40 int toInt(); 42 int toInt();
41 } 43 }
42 abstract class int extends num { 44 abstract class int extends num {
45 bool get isEven => false;
43 int operator -(); 46 int operator -();
44 } 47 }
45 class double extends num {} 48 class double extends num {}
46 class DateTime extends Object {} 49 class DateTime extends Object {}
47 class Null extends Object {} 50 class Null extends Object {}
48 51
49 class Deprecated extends Object { 52 class Deprecated extends Object {
50 final String expires; 53 final String expires;
51 const Deprecated(this.expires); 54 const Deprecated(this.expires);
52 } 55 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 bool get isInternal => throw unimplemented; 180 bool get isInternal => throw unimplemented;
178 181
179 @override 182 @override
180 bool get isShared => throw unimplemented; 183 bool get isShared => throw unimplemented;
181 184
182 @override 185 @override
183 bool get isVmLibrary => throw unimplemented; 186 bool get isVmLibrary => throw unimplemented;
184 187
185 UnimplementedError get unimplemented => new UnimplementedError(); 188 UnimplementedError get unimplemented => new UnimplementedError();
186 } 189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698