OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library analyzer_cli.test.driver; | 5 library analyzer_cli.test.driver; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
10 import 'package:analyzer/error/error.dart'; | 10 import 'package:analyzer/error/error.dart'; |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 throw new Exception('Could not find an SDK directory containing summaries.' | 603 throw new Exception('Could not find an SDK directory containing summaries.' |
604 ' Tried: ${triedDirectories.toList()}'); | 604 ' Tried: ${triedDirectories.toList()}'); |
605 } | 605 } |
606 | 606 |
607 Map<String, YamlNode> parseOptions(String src) => | 607 Map<String, YamlNode> parseOptions(String src) => |
608 new AnalysisOptionsProvider().getOptionsFromString(src); | 608 new AnalysisOptionsProvider().getOptionsFromString(src); |
609 | 609 |
610 ErrorProcessor processorFor(AnalysisError error) => | 610 ErrorProcessor processorFor(AnalysisError error) => |
611 processors.firstWhere((p) => p.appliesTo(error)); | 611 processors.firstWhere((p) => p.appliesTo(error)); |
612 | 612 |
| 613 /// Normalize text with bullets. |
| 614 String _bulletToDash(item) => '$item'.replaceAll('•', '-'); |
| 615 |
613 class TestSource implements Source { | 616 class TestSource implements Source { |
614 TestSource(); | 617 TestSource(); |
615 | 618 |
616 @override | 619 @override |
617 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 620 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
618 } | 621 } |
619 | |
620 /// Normalize text with bullets. | |
621 String _bulletToDash(item) => '$item'.replaceAll('•', '-'); | |
OLD | NEW |