| OLD | NEW |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
| 3 library engine; | 3 library engine; |
| 4 import 'dart:collection' show HasNextIterator; | 4 import 'dart:collection' show HasNextIterator; |
| 5 import 'java_core.dart'; | 5 import 'java_core.dart'; |
| 6 import 'java_engine.dart'; | 6 import 'java_engine.dart'; |
| 7 import 'instrumentation.dart'; | 7 import 'instrumentation.dart'; |
| 8 import 'error.dart'; | 8 import 'error.dart'; |
| 9 import 'source.dart'; | 9 import 'source.dart'; |
| 10 import 'scanner.dart' show Token, CharBufferScanner, StringScanner; | 10 import 'scanner.dart' show Token, CharBufferScanner, StringScanner; |
| (...skipping 4278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4289 for (AnalysisError error in listener.errors) { | 4289 for (AnalysisError error in listener.errors) { |
| 4290 onError(error); | 4290 onError(error); |
| 4291 } | 4291 } |
| 4292 } | 4292 } |
| 4293 | 4293 |
| 4294 /** | 4294 /** |
| 4295 * Answer the errors collected by the listener. | 4295 * Answer the errors collected by the listener. |
| 4296 * @return an array of errors (not {@code null}, contains no {@code null}s) | 4296 * @return an array of errors (not {@code null}, contains no {@code null}s) |
| 4297 */ | 4297 */ |
| 4298 List<AnalysisError> get errors { | 4298 List<AnalysisError> get errors { |
| 4299 Set<MapEntry<Source, List<AnalysisError>>> entrySet = getMapEntrySet(_errors
); | 4299 Iterable<MapEntry<Source, List<AnalysisError>>> entrySet = getMapEntrySet(_e
rrors); |
| 4300 if (entrySet.length == 0) { | 4300 int numEntries = entrySet.length; |
| 4301 if (numEntries == 0) { |
| 4301 return AnalysisError.NO_ERRORS; | 4302 return AnalysisError.NO_ERRORS; |
| 4302 } | 4303 } |
| 4303 List<AnalysisError> resultList = new List<AnalysisError>(); | 4304 List<AnalysisError> resultList = new List<AnalysisError>(); |
| 4304 for (MapEntry<Source, List<AnalysisError>> entry in entrySet) { | 4305 for (MapEntry<Source, List<AnalysisError>> entry in entrySet) { |
| 4305 resultList.addAll(entry.getValue()); | 4306 resultList.addAll(entry.getValue()); |
| 4306 } | 4307 } |
| 4307 return new List.from(resultList); | 4308 return new List.from(resultList); |
| 4308 } | 4309 } |
| 4309 | 4310 |
| 4310 /** | 4311 /** |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4453 } | 4454 } |
| 4454 void logError2(String message, Exception exception) { | 4455 void logError2(String message, Exception exception) { |
| 4455 } | 4456 } |
| 4456 void logError3(Exception exception) { | 4457 void logError3(Exception exception) { |
| 4457 } | 4458 } |
| 4458 void logInformation(String message) { | 4459 void logInformation(String message) { |
| 4459 } | 4460 } |
| 4460 void logInformation2(String message, Exception exception) { | 4461 void logInformation2(String message, Exception exception) { |
| 4461 } | 4462 } |
| 4462 } | 4463 } |
| OLD | NEW |