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

Unified Diff: lib/src/sdk.dart

Issue 1419373009: Lint to prefer x.isNotEmpty vs. !x.isEmpty (#143). (Closed) Base URL: https://github.com/dart-lang/linter.git@master
Patch Set: doc fix. Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/rules/prefer_is_not_empty.dart ('k') | test/rules/prefer_is_not_empty.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/sdk.dart
diff --git a/lib/src/sdk.dart b/lib/src/sdk.dart
index 9dfa1de1df5aad698347f4dd8639869d0d98973d..da43a9100cc5084aaf0ea9ca5a7da79cbbf3aab3 100644
--- a/lib/src/sdk.dart
+++ b/lib/src/sdk.dart
@@ -92,6 +92,7 @@ class Iterator<E> {
abstract class Iterable<E> {
Iterator<E> get iterator;
bool get isEmpty;
+ bool get isNotEmpty;
}
abstract class List<E> implements Iterable<E> {
@@ -100,10 +101,14 @@ abstract class List<E> implements Iterable<E> {
void operator []=(int index, E value);
Iterator<E> get iterator => null;
void clear();
+ bool get isEmpty;
+ bool get isNotEmpty;
}
abstract class Map<K, V> extends Object {
Iterable<K> get keys;
+ bool get isEmpty;
+ bool get isNotEmpty;
}
external bool identical(Object a, Object b);
« no previous file with comments | « lib/src/rules/prefer_is_not_empty.dart ('k') | test/rules/prefer_is_not_empty.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698