| // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| // test w/ `pub run test -N prefer_is_not_empty` |
| |
| bool lne = ![1].isEmpty; // LINT [12:12] |
| bool mne = !{2: 'a'}.isEmpty; // LINT |
| bool ine = !iterable.isEmpty; // LINT |
| bool parens = !([3].isEmpty); // LINT |
| bool parens2 = !(([4].isEmpty)); // LINT |
| |
| bool le = [].isEmpty; |
| bool me = {}.isEmpty; |
| bool ie = iterable.isEmpty; |
| |
| Iterable get iterable => []; |