| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import 'package:boolean_selector/boolean_selector.dart'; | 5 import 'package:boolean_selector/boolean_selector.dart'; |
| 6 import 'package:source_span/source_span.dart'; | 6 import 'package:source_span/source_span.dart'; |
| 7 | 7 |
| 8 import 'operating_system.dart'; | 8 import 'operating_system.dart'; |
| 9 import 'test_platform.dart'; | 9 import 'test_platform.dart'; |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 /// Returns a new [PlatformSelector] that matches only platforms matched by | 61 /// Returns a new [PlatformSelector] that matches only platforms matched by |
| 62 /// both [this] and [other]. | 62 /// both [this] and [other]. |
| 63 PlatformSelector intersection(PlatformSelector other) { | 63 PlatformSelector intersection(PlatformSelector other) { |
| 64 if (other == PlatformSelector.all) return this; | 64 if (other == PlatformSelector.all) return this; |
| 65 return new PlatformSelector._(_inner.intersection(other._inner)); | 65 return new PlatformSelector._(_inner.intersection(other._inner)); |
| 66 } | 66 } |
| 67 | 67 |
| 68 String toString() => _inner.toString(); | 68 String toString() => _inner.toString(); |
| 69 |
| 70 bool operator==(other) => other is PlatformSelector && _inner == other._inner; |
| 71 |
| 72 int get hashCode => _inner.hashCode; |
| 69 } | 73 } |
| OLD | NEW |