blob: 8105dcd9589ae2cf8119bfdc78b5da2fcdc055a5 [file] [log] [blame]
// Copyright (c) 2017, 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.
import 'package:source_span/source_span.dart';
/// A runtime on which the user has chosen to run tests.
class RuntimeSelection {
/// The name of the runtime.
final String name;
/// The location in the configuration file of this runtime string, or `null`
/// if it was defined outside a configuration file (for example, on the
/// command line).
final SourceSpan span;
RuntimeSelection(this.name, [this.span]);
@override
bool operator ==(other) => other is RuntimeSelection && other.name == name;
@override
int get hashCode => name.hashCode;
}