Line data Source code
1 : // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 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. 4 : 5 : import 'package:source_span/source_span.dart'; 6 : 7 : /// A runtime on which the user has chosen to run tests. 8 : class RuntimeSelection { 9 : /// The name of the runtime. 10 : final String name; 11 : 12 : /// The location in the configuration file of this runtime string, or `null` 13 : /// if it was defined outside a configuration file (for example, on the 14 : /// command line). 15 : final SourceSpan? span; 16 : 17 0 : RuntimeSelection(this.name, [this.span]); 18 : 19 0 : @override 20 0 : bool operator ==(other) => other is RuntimeSelection && other.name == name; 21 : 22 0 : @override 23 0 : int get hashCode => name.hashCode; 24 : }