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