| 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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 } | 689 } |
| 690 | 690 |
| 691 /** | 691 /** |
| 692 * Return the getter in the given type with the given name. Inherited getters
are ignored. | 692 * Return the getter in the given type with the given name. Inherited getters
are ignored. |
| 693 * @param type the type in which the getter is declared | 693 * @param type the type in which the getter is declared |
| 694 * @param getterName the name of the getter to be returned | 694 * @param getterName the name of the getter to be returned |
| 695 * @return the property accessor element representing the getter with the give
n name | 695 * @return the property accessor element representing the getter with the give
n name |
| 696 */ | 696 */ |
| 697 PropertyAccessorElement getGetter(InterfaceType type, String getterName) { | 697 PropertyAccessorElement getGetter(InterfaceType type, String getterName) { |
| 698 for (PropertyAccessorElement accessor in type.element.accessors) { | 698 for (PropertyAccessorElement accessor in type.element.accessors) { |
| 699 if (accessor.isGetter() && accessor.name == getterName) { | 699 if (accessor.isGetter && accessor.name == getterName) { |
| 700 return accessor; | 700 return accessor; |
| 701 } | 701 } |
| 702 } | 702 } |
| 703 JUnitTestCase.fail("Could not find getter named ${getterName} in ${type.disp
layName}"); | 703 JUnitTestCase.fail("Could not find getter named ${getterName} in ${type.disp
layName}"); |
| 704 return null; | 704 return null; |
| 705 } | 705 } |
| 706 | 706 |
| 707 /** | 707 /** |
| 708 * Return the method in the given type with the given name. Inherited methods
are ignored. | 708 * Return the method in the given type with the given name. Inherited methods
are ignored. |
| 709 * @param type the type in which the method is declared | 709 * @param type the type in which the method is declared |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 return trampoline(target, arguments[0], arguments[1]); | 785 return trampoline(target, arguments[0], arguments[1]); |
| 786 case 3: | 786 case 3: |
| 787 return trampoline(target, arguments[0], arguments[1], arguments[2]); | 787 return trampoline(target, arguments[0], arguments[1], arguments[2]); |
| 788 case 4: | 788 case 4: |
| 789 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); | 789 return trampoline(target, arguments[0], arguments[1], arguments[2], argu
ments[3]); |
| 790 default: | 790 default: |
| 791 throw new IllegalArgumentException("Not implemented for > 4 arguments"); | 791 throw new IllegalArgumentException("Not implemented for > 4 arguments"); |
| 792 } | 792 } |
| 793 } | 793 } |
| 794 } | 794 } |
| OLD | NEW |