blob: 9f9760757f60648c6592451bdbe090e697d18bd4 [file] [log] [blame]
// Copyright (c) 2016, 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.
library fasta.combinator;
class Combinator {
final bool isShow;
final Set<String> names;
Combinator(this.isShow, this.names, int charOffset, Uri fileUri);
Combinator.show(Iterable<String> names, int charOffset, Uri fileUri)
: this(true, new Set<String>.from(names), charOffset, fileUri);
Combinator.hide(Iterable<String> names, int charOffset, Uri fileUri)
: this(false, new Set<String>.from(names), charOffset, fileUri);
bool get isHide => !isShow;
}