| 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 | 3 |
| 4 library engine.test_support; | 4 library engine.test_support; |
| 5 | 5 |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import 'dart:uri'; | 7 import 'dart:uri'; |
| 8 import 'package:analyzer-experimental/src/generated/java_core.dart'; | 8 import 'package:analyzer-experimental/src/generated/java_core.dart'; |
| 9 import 'package:analyzer-experimental/src/generated/java_engine.dart'; | 9 import 'package:analyzer-experimental/src/generated/java_engine.dart'; |
| 10 import 'package:analyzer-experimental/src/generated/java_junit.dart'; | 10 import 'package:analyzer-experimental/src/generated/java_junit.dart'; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 */ | 37 */ |
| 38 Map<Source, LineInfo> _lineInfoMap = new Map<Source, LineInfo>(); | 38 Map<Source, LineInfo> _lineInfoMap = new Map<Source, LineInfo>(); |
| 39 /** | 39 /** |
| 40 * An empty array of errors used when no errors are expected. | 40 * An empty array of errors used when no errors are expected. |
| 41 */ | 41 */ |
| 42 static List<AnalysisError> _NO_ERRORS = new List<AnalysisError>(0); | 42 static List<AnalysisError> _NO_ERRORS = new List<AnalysisError>(0); |
| 43 /** | 43 /** |
| 44 * Initialize a newly created error listener to collect errors. | 44 * Initialize a newly created error listener to collect errors. |
| 45 */ | 45 */ |
| 46 GatheringErrorListener() : super() { | 46 GatheringErrorListener() : super() { |
| 47 _jtd_constructor_298_impl(); | 47 _jtd_constructor_304_impl(); |
| 48 } | 48 } |
| 49 _jtd_constructor_298_impl() { | 49 _jtd_constructor_304_impl() { |
| 50 } | 50 } |
| 51 /** | 51 /** |
| 52 * Initialize a newly created error listener to collect errors. | 52 * Initialize a newly created error listener to collect errors. |
| 53 */ | 53 */ |
| 54 GatheringErrorListener.con1(String rawSource2) { | 54 GatheringErrorListener.con1(String rawSource2) { |
| 55 _jtd_constructor_299_impl(rawSource2); | 55 _jtd_constructor_305_impl(rawSource2); |
| 56 } | 56 } |
| 57 _jtd_constructor_299_impl(String rawSource2) { | 57 _jtd_constructor_305_impl(String rawSource2) { |
| 58 this._rawSource = rawSource2; | 58 this._rawSource = rawSource2; |
| 59 this._markedSource = rawSource2; | 59 this._markedSource = rawSource2; |
| 60 } | 60 } |
| 61 /** | 61 /** |
| 62 * Assert that the number of errors that have been gathered matches the number
of errors that are | 62 * Assert that the number of errors that have been gathered matches the number
of errors that are |
| 63 * given and that they have the expected error codes and locations. The order
in which the errors | 63 * given and that they have the expected error codes and locations. The order
in which the errors |
| 64 * were gathered is ignored. | 64 * were gathered is ignored. |
| 65 * @param errorCodes the errors that should have been gathered | 65 * @param errorCodes the errors that should have been gathered |
| 66 * @throws AssertionFailedError if a different number of errors have been gath
ered than were | 66 * @throws AssertionFailedError if a different number of errors have been gath
ered than were |
| 67 * expected or if they do not have the same codes and locations | 67 * expected or if they do not have the same codes and locations |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 return trampoline(target, arguments[0], arguments[1]); | 655 return trampoline(target, arguments[0], arguments[1]); |
| 656 case 3: | 656 case 3: |
| 657 return trampoline(target, arguments[0], arguments[1], arguments[2]); | 657 return trampoline(target, arguments[0], arguments[1], arguments[2]); |
| 658 case 4: | 658 case 4: |
| 659 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); | 659 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); |
| 660 default: | 660 default: |
| 661 throw new IllegalArgumentException("Not implemented for > 4 arguments"); | 661 throw new IllegalArgumentException("Not implemented for > 4 arguments"); |
| 662 } | 662 } |
| 663 } | 663 } |
| 664 } | 664 } |
| OLD | NEW |