OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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; | 5 library analyzer; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 import 'package:path/path.dart' as pathos; | 9 import 'package:path/path.dart' as pathos; |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 bool get hasErrors => !_errors.isEmpty; | 82 bool get hasErrors => !_errors.isEmpty; |
83 | 83 |
84 /// The group of errors collected. | 84 /// The group of errors collected. |
85 AnalyzerErrorGroup get group => | 85 AnalyzerErrorGroup get group => |
86 new AnalyzerErrorGroup.fromAnalysisErrors(_errors); | 86 new AnalyzerErrorGroup.fromAnalysisErrors(_errors); |
87 | 87 |
88 _ErrorCollector(); | 88 _ErrorCollector(); |
89 | 89 |
90 void onError(AnalysisError error) => _errors.add(error); | 90 void onError(AnalysisError error) => _errors.add(error); |
91 } | 91 } |
OLD | NEW |