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:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
10 import 'package:analyzer/src/dart/scanner/reader.dart'; | 10 import 'package:analyzer/src/dart/scanner/reader.dart'; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 _ErrorCollector(); | 121 _ErrorCollector(); |
122 | 122 |
123 /// The group of errors collected. | 123 /// The group of errors collected. |
124 AnalyzerErrorGroup get group => | 124 AnalyzerErrorGroup get group => |
125 new AnalyzerErrorGroup.fromAnalysisErrors(_errors); | 125 new AnalyzerErrorGroup.fromAnalysisErrors(_errors); |
126 | 126 |
127 /// Whether any errors where collected. | 127 /// Whether any errors where collected. |
128 bool get hasErrors => !_errors.isEmpty; | 128 bool get hasErrors => !_errors.isEmpty; |
129 | 129 |
| 130 @override |
130 void onError(AnalysisError error) => _errors.add(error); | 131 void onError(AnalysisError error) => _errors.add(error); |
131 } | 132 } |
OLD | NEW |