OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 library fasta.combinator; |
| 6 |
| 7 class Combinator { |
| 8 final bool isShow; |
| 9 |
| 10 final Set<String> names; |
| 11 |
| 12 Combinator(this.isShow, this.names); |
| 13 |
| 14 Combinator.show(Iterable <String> names) |
| 15 : this(true, new Set<String>.from(names)); |
| 16 |
| 17 Combinator.hide(Iterable <String> names) |
| 18 : this(false, new Set<String>.from(names)); |
| 19 |
| 20 bool get isHide => !isShow; |
| 21 } |
OLD | NEW |