Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1430)

Side by Side Diff: pkg/analyzer_cli/test/driver_test.dart

Issue 2933753002: Run the sorter to reduce code churn (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer_cli/lib/src/error_severity.dart ('k') | pkg/analyzer_cli/test/utils.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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('•', '-');
OLDNEW
« no previous file with comments | « pkg/analyzer_cli/lib/src/error_severity.dart ('k') | pkg/analyzer_cli/test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698