| // 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; |
| } |