OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:io'; | 5 import 'dart:io'; |
6 | 6 |
7 import 'package:boolean_selector/boolean_selector.dart'; | 7 import 'package:boolean_selector/boolean_selector.dart'; |
| 8 import 'package:collection/collection.dart'; |
8 import 'package:glob/glob.dart'; | 9 import 'package:glob/glob.dart'; |
9 import 'package:path/path.dart' as p; | 10 import 'package:path/path.dart' as p; |
10 import 'package:source_span/source_span.dart'; | 11 import 'package:source_span/source_span.dart'; |
11 import 'package:yaml/yaml.dart'; | 12 import 'package:yaml/yaml.dart'; |
12 | 13 |
13 import '../../backend/operating_system.dart'; | 14 import '../../backend/operating_system.dart'; |
14 import '../../backend/platform_selector.dart'; | 15 import '../../backend/platform_selector.dart'; |
15 import '../../backend/test_platform.dart'; | 16 import '../../backend/test_platform.dart'; |
16 import '../../frontend/timeout.dart'; | 17 import '../../frontend/timeout.dart'; |
17 import '../../utils.dart'; | 18 import '../../utils.dart'; |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 _document.nodes.keys.firstWhere((key) => key.value == field).span, | 395 _document.nodes.keys.firstWhere((key) => key.value == field).span, |
395 _source); | 396 _source); |
396 } | 397 } |
397 | 398 |
398 /// Throws a [SourceSpanFormatException] with [message] about [field]. | 399 /// Throws a [SourceSpanFormatException] with [message] about [field]. |
399 void _error(String message, String field) { | 400 void _error(String message, String field) { |
400 throw new SourceSpanFormatException( | 401 throw new SourceSpanFormatException( |
401 message, _document.nodes[field].span, _source); | 402 message, _document.nodes[field].span, _source); |
402 } | 403 } |
403 } | 404 } |
OLD | NEW |