blob: 0585a0ff7e975402f9ade04243dbc40b3c629562 [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.span]);
bool operator ==(other) => other is RuntimeSelection && == name;
int get hashCode => name.hashCode;