| 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'; |
| 11 import 'package:analyzer/src/dart/scanner/scanner.dart'; |
| 10 import 'package:analyzer/src/error.dart'; | 12 import 'package:analyzer/src/error.dart'; |
| 11 import 'package:analyzer/src/generated/error.dart'; | 13 import 'package:analyzer/src/generated/error.dart'; |
| 12 import 'package:analyzer/src/generated/parser.dart'; | 14 import 'package:analyzer/src/generated/parser.dart'; |
| 13 import 'package:analyzer/src/generated/scanner.dart'; | |
| 14 import 'package:analyzer/src/generated/source_io.dart'; | 15 import 'package:analyzer/src/generated/source_io.dart'; |
| 15 import 'package:analyzer/src/string_source.dart'; | 16 import 'package:analyzer/src/string_source.dart'; |
| 16 import 'package:path/path.dart' as pathos; | 17 import 'package:path/path.dart' as pathos; |
| 17 | 18 |
| 18 export 'package:analyzer/dart/ast/ast.dart'; | 19 export 'package:analyzer/dart/ast/ast.dart'; |
| 19 export 'package:analyzer/dart/ast/visitor.dart'; | 20 export 'package:analyzer/dart/ast/visitor.dart'; |
| 20 export 'package:analyzer/src/dart/ast/utilities.dart'; | 21 export 'package:analyzer/src/dart/ast/utilities.dart'; |
| 21 export 'package:analyzer/src/error.dart'; | 22 export 'package:analyzer/src/error.dart'; |
| 22 export 'package:analyzer/src/generated/error.dart'; | 23 export 'package:analyzer/src/generated/error.dart'; |
| 23 export 'package:analyzer/src/generated/utilities_dart.dart'; | 24 export 'package:analyzer/src/generated/utilities_dart.dart'; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 122 |
| 122 /// The group of errors collected. | 123 /// The group of errors collected. |
| 123 AnalyzerErrorGroup get group => | 124 AnalyzerErrorGroup get group => |
| 124 new AnalyzerErrorGroup.fromAnalysisErrors(_errors); | 125 new AnalyzerErrorGroup.fromAnalysisErrors(_errors); |
| 125 | 126 |
| 126 /// Whether any errors where collected. | 127 /// Whether any errors where collected. |
| 127 bool get hasErrors => !_errors.isEmpty; | 128 bool get hasErrors => !_errors.isEmpty; |
| 128 | 129 |
| 129 void onError(AnalysisError error) => _errors.add(error); | 130 void onError(AnalysisError error) => _errors.add(error); |
| 130 } | 131 } |
| OLD | NEW |