| 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:pathos/path.dart' as pathos; | 9 import 'package:path/path.dart' as pathos; |
| 10 | 10 |
| 11 import 'src/error.dart'; | 11 import 'src/error.dart'; |
| 12 import 'src/generated/ast.dart'; | 12 import 'src/generated/ast.dart'; |
| 13 import 'src/generated/error.dart'; | 13 import 'src/generated/error.dart'; |
| 14 import 'src/generated/java_io.dart'; | 14 import 'src/generated/java_io.dart'; |
| 15 import 'src/generated/parser.dart'; | 15 import 'src/generated/parser.dart'; |
| 16 import 'src/generated/scanner.dart'; | 16 import 'src/generated/scanner.dart'; |
| 17 import 'src/generated/source_io.dart'; | 17 import 'src/generated/source_io.dart'; |
| 18 | 18 |
| 19 export 'src/error.dart'; | 19 export 'src/error.dart'; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 bool get hasErrors => !_errors.isEmpty; | 57 bool get hasErrors => !_errors.isEmpty; |
| 58 | 58 |
| 59 /// The group of errors collected. | 59 /// The group of errors collected. |
| 60 AnalyzerErrorGroup get group => | 60 AnalyzerErrorGroup get group => |
| 61 new AnalyzerErrorGroup.fromAnalysisErrors(_errors); | 61 new AnalyzerErrorGroup.fromAnalysisErrors(_errors); |
| 62 | 62 |
| 63 _ErrorCollector(); | 63 _ErrorCollector(); |
| 64 | 64 |
| 65 void onError(AnalysisError error) => _errors.add(error); | 65 void onError(AnalysisError error) => _errors.add(error); |
| 66 } | 66 } |
| OLD | NEW |