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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 /// The group of errors collected. | 121 /// The group of errors collected. |
122 AnalyzerErrorGroup get group => | 122 AnalyzerErrorGroup get group => |
123 new AnalyzerErrorGroup.fromAnalysisErrors(_errors); | 123 new AnalyzerErrorGroup.fromAnalysisErrors(_errors); |
124 | 124 |
125 /// Whether any errors where collected. | 125 /// Whether any errors where collected. |
126 bool get hasErrors => !_errors.isEmpty; | 126 bool get hasErrors => !_errors.isEmpty; |
127 | 127 |
128 void onError(AnalysisError error) => _errors.add(error); | 128 void onError(AnalysisError error) => _errors.add(error); |
129 } | 129 } |
OLD | NEW |