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

Side by Side Diff: pkg/analysis_server/test/mock_sdk.dart

Issue 756483002: Exchanging operands of a comparision operator should invert the operator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 22 matching lines...) Expand all
33 33
34 class String implements Comparable<String> { 34 class String implements Comparable<String> {
35 bool get isEmpty => false; 35 bool get isEmpty => false;
36 bool get isNotEmpty => false; 36 bool get isNotEmpty => false;
37 int get length => 0; 37 int get length => 0;
38 } 38 }
39 39
40 class bool extends Object {} 40 class bool extends Object {}
41 abstract class num implements Comparable<num> { 41 abstract class num implements Comparable<num> {
42 bool operator <(num other); 42 bool operator <(num other);
43 bool operator <=(num other);
44 bool operator >(num other);
45 bool operator >=(num other);
43 num operator +(num other); 46 num operator +(num other);
44 num operator -(num other); 47 num operator -(num other);
45 num operator *(num other); 48 num operator *(num other);
46 num operator /(num other); 49 num operator /(num other);
47 int toInt(); 50 int toInt();
48 } 51 }
49 abstract class int extends num { 52 abstract class int extends num {
50 bool get isEven => false; 53 bool get isEven => false;
51 int operator -(); 54 int operator -();
52 } 55 }
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 bool get isInternal => throw unimplemented; 256 bool get isInternal => throw unimplemented;
254 257
255 @override 258 @override
256 bool get isShared => throw unimplemented; 259 bool get isShared => throw unimplemented;
257 260
258 @override 261 @override
259 bool get isVmLibrary => throw unimplemented; 262 bool get isVmLibrary => throw unimplemented;
260 263
261 UnimplementedError get unimplemented => new UnimplementedError(); 264 UnimplementedError get unimplemented => new UnimplementedError();
262 } 265 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698