OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 matcher.operator_matchers; | 5 library matcher.operator_matchers; |
6 | 6 |
7 import 'interfaces.dart'; | 7 import 'interfaces.dart'; |
8 import 'util.dart'; | 8 import 'util.dart'; |
9 | 9 |
10 /// This returns a matcher that inverts [matcher] to its logical negation. | 10 /// This returns a matcher that inverts [matcher] to its logical negation. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 } | 104 } |
105 | 105 |
106 matchers = arg0; | 106 matchers = arg0; |
107 } else { | 107 } else { |
108 matchers = | 108 matchers = |
109 [arg0, arg1, arg2, arg3, arg4, arg5, arg6].where((e) => e != null); | 109 [arg0, arg1, arg2, arg3, arg4, arg5, arg6].where((e) => e != null); |
110 } | 110 } |
111 | 111 |
112 return matchers.map((e) => wrapMatcher(e)).toList(); | 112 return matchers.map((e) => wrapMatcher(e)).toList(); |
113 } | 113 } |
OLD | NEW |