| 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.test_support; | 3 library engine.test_support; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'package:analyzer_experimental/src/generated/java_core.dart'; | 5 import 'package:analyzer_experimental/src/generated/java_core.dart'; |
| 6 import 'package:analyzer_experimental/src/generated/java_engine.dart'; | 6 import 'package:analyzer_experimental/src/generated/java_engine.dart'; |
| 7 import 'package:analyzer_experimental/src/generated/java_junit.dart'; | 7 import 'package:analyzer_experimental/src/generated/java_junit.dart'; |
| 8 import 'package:analyzer_experimental/src/generated/source.dart'; | 8 import 'package:analyzer_experimental/src/generated/source.dart'; |
| 9 import 'package:analyzer_experimental/src/generated/error.dart'; | 9 import 'package:analyzer_experimental/src/generated/error.dart'; |
| 10 import 'package:analyzer_experimental/src/generated/scanner.dart'; | 10 import 'package:analyzer_experimental/src/generated/scanner.dart'; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 Map<Source, LineInfo> _lineInfoMap = new Map<Source, LineInfo>(); | 40 Map<Source, LineInfo> _lineInfoMap = new Map<Source, LineInfo>(); |
| 41 | 41 |
| 42 /** | 42 /** |
| 43 * An empty array of errors used when no errors are expected. | 43 * An empty array of errors used when no errors are expected. |
| 44 */ | 44 */ |
| 45 static List<AnalysisError> _NO_ERRORS = new List<AnalysisError>(0); | 45 static List<AnalysisError> _NO_ERRORS = new List<AnalysisError>(0); |
| 46 | 46 |
| 47 /** | 47 /** |
| 48 * Initialize a newly created error listener to collect errors. | 48 * Initialize a newly created error listener to collect errors. |
| 49 */ | 49 */ |
| 50 GatheringErrorListener() : super() { | 50 GatheringErrorListener() : super(); |
| 51 _jtd_constructor_364_impl(); | |
| 52 } | |
| 53 _jtd_constructor_364_impl() { | |
| 54 } | |
| 55 | 51 |
| 56 /** | 52 /** |
| 57 * Initialize a newly created error listener to collect errors. | 53 * Initialize a newly created error listener to collect errors. |
| 58 */ | 54 */ |
| 59 GatheringErrorListener.con1(String rawSource2) { | 55 GatheringErrorListener.con1(String rawSource) { |
| 60 _jtd_constructor_365_impl(rawSource2); | 56 this._rawSource = rawSource; |
| 61 } | 57 this._markedSource = rawSource; |
| 62 _jtd_constructor_365_impl(String rawSource2) { | |
| 63 this._rawSource = rawSource2; | |
| 64 this._markedSource = rawSource2; | |
| 65 } | 58 } |
| 66 | 59 |
| 67 /** | 60 /** |
| 68 * Add all of the errors recorded by the given listener to this listener. | 61 * Add all of the errors recorded by the given listener to this listener. |
| 69 * | 62 * |
| 70 * @param listener the listener that has recorded the errors to be added | 63 * @param listener the listener that has recorded the errors to be added |
| 71 */ | 64 */ |
| 72 void addAll(RecordingErrorListener listener) { | 65 void addAll(RecordingErrorListener listener) { |
| 73 for (AnalysisError error in listener.errors) { | 66 for (AnalysisError error in listener.errors) { |
| 74 onError(error); | 67 onError(error); |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 return trampoline(target, arguments[0], arguments[1]); | 824 return trampoline(target, arguments[0], arguments[1]); |
| 832 case 3: | 825 case 3: |
| 833 return trampoline(target, arguments[0], arguments[1], arguments[2]); | 826 return trampoline(target, arguments[0], arguments[1], arguments[2]); |
| 834 case 4: | 827 case 4: |
| 835 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); | 828 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); |
| 836 default: | 829 default: |
| 837 throw new IllegalArgumentException("Not implemented for > 4 arguments"); | 830 throw new IllegalArgumentException("Not implemented for > 4 arguments"); |
| 838 } | 831 } |
| 839 } | 832 } |
| 840 } | 833 } |
| OLD | NEW |