| 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.element_test; | 3 library engine.element_test; |
| 4 import 'package:analyzer_experimental/src/generated/java_core.dart'; | 4 import 'package:analyzer_experimental/src/generated/java_core.dart'; |
| 5 import 'package:analyzer_experimental/src/generated/java_engine_io.dart'; | 5 import 'package:analyzer_experimental/src/generated/java_engine_io.dart'; |
| 6 import 'package:analyzer_experimental/src/generated/java_junit.dart'; | 6 import 'package:analyzer_experimental/src/generated/java_junit.dart'; |
| 7 import 'package:analyzer_experimental/src/generated/source_io.dart'; | 7 import 'package:analyzer_experimental/src/generated/source_io.dart'; |
| 8 import 'package:analyzer_experimental/src/generated/utilities_dart.dart'; | 8 import 'package:analyzer_experimental/src/generated/utilities_dart.dart'; |
| 9 import 'package:analyzer_experimental/src/generated/ast.dart'; | 9 import 'package:analyzer_experimental/src/generated/ast.dart'; |
| 10 import 'package:analyzer_experimental/src/generated/element.dart'; | 10 import 'package:analyzer_experimental/src/generated/element.dart'; |
| (...skipping 1800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1811 } else { | 1811 } else { |
| 1812 functionElement.returnType = returnElement.type; | 1812 functionElement.returnType = returnElement.type; |
| 1813 } | 1813 } |
| 1814 return functionElement; | 1814 return functionElement; |
| 1815 } | 1815 } |
| 1816 static FunctionElementImpl functionElement5(String functionName, List<ClassEle
ment> normalParameters) => functionElement3(functionName, null, normalParameters
, null); | 1816 static FunctionElementImpl functionElement5(String functionName, List<ClassEle
ment> normalParameters) => functionElement3(functionName, null, normalParameters
, null); |
| 1817 static FunctionElementImpl functionElement6(String functionName, List<ClassEle
ment> normalParameters, List<ClassElement> optionalParameters) => functionElemen
t3(functionName, null, normalParameters, optionalParameters); | 1817 static FunctionElementImpl functionElement6(String functionName, List<ClassEle
ment> normalParameters, List<ClassElement> optionalParameters) => functionElemen
t3(functionName, null, normalParameters, optionalParameters); |
| 1818 static FunctionElementImpl functionElement7(String functionName, List<ClassEle
ment> normalParameters, List<String> names, List<ClassElement> namedParameters)
=> functionElement4(functionName, null, normalParameters, names, namedParameters
); | 1818 static FunctionElementImpl functionElement7(String functionName, List<ClassEle
ment> normalParameters, List<String> names, List<ClassElement> namedParameters)
=> functionElement4(functionName, null, normalParameters, names, namedParameters
); |
| 1819 static ClassElementImpl get object { | 1819 static ClassElementImpl get object { |
| 1820 if (_objectElement == null) { | 1820 if (_objectElement == null) { |
| 1821 _objectElement = classElement("Object", (null as InterfaceType), []); | 1821 _objectElement = classElement("Object", null as InterfaceType, []); |
| 1822 } | 1822 } |
| 1823 return _objectElement; | 1823 return _objectElement; |
| 1824 } | 1824 } |
| 1825 static PropertyAccessorElementImpl getterElement(String name, bool isStatic, T
ype2 type2) { | 1825 static PropertyAccessorElementImpl getterElement(String name, bool isStatic, T
ype2 type2) { |
| 1826 FieldElementImpl field = new FieldElementImpl.con1(ASTFactory.identifier3(na
me)); | 1826 FieldElementImpl field = new FieldElementImpl.con1(ASTFactory.identifier3(na
me)); |
| 1827 field.static = isStatic; | 1827 field.static = isStatic; |
| 1828 field.synthetic = true; | 1828 field.synthetic = true; |
| 1829 field.type = type2; | 1829 field.type = type2; |
| 1830 PropertyAccessorElementImpl getter = new PropertyAccessorElementImpl.con2(fi
eld); | 1830 PropertyAccessorElementImpl getter = new PropertyAccessorElementImpl.con2(fi
eld); |
| 1831 getter.getter = true; | 1831 getter.getter = true; |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2361 void test_getTypeArguments() { | 2361 void test_getTypeArguments() { |
| 2362 FunctionTypeImpl type = new FunctionTypeImpl.con1(new FunctionElementImpl.co
n1(ASTFactory.identifier3("f"))); | 2362 FunctionTypeImpl type = new FunctionTypeImpl.con1(new FunctionElementImpl.co
n1(ASTFactory.identifier3("f"))); |
| 2363 List<Type2> types = type.typeArguments; | 2363 List<Type2> types = type.typeArguments; |
| 2364 EngineTestCase.assertLength(0, types); | 2364 EngineTestCase.assertLength(0, types); |
| 2365 } | 2365 } |
| 2366 void test_hashCode_element() { | 2366 void test_hashCode_element() { |
| 2367 FunctionTypeImpl type = new FunctionTypeImpl.con1(new FunctionElementImpl.co
n1(ASTFactory.identifier3("f"))); | 2367 FunctionTypeImpl type = new FunctionTypeImpl.con1(new FunctionElementImpl.co
n1(ASTFactory.identifier3("f"))); |
| 2368 type.hashCode; | 2368 type.hashCode; |
| 2369 } | 2369 } |
| 2370 void test_hashCode_noElement() { | 2370 void test_hashCode_noElement() { |
| 2371 FunctionTypeImpl type = new FunctionTypeImpl.con1((null as ExecutableElement
)); | 2371 FunctionTypeImpl type = new FunctionTypeImpl.con1(null as ExecutableElement)
; |
| 2372 type.hashCode; | 2372 type.hashCode; |
| 2373 } | 2373 } |
| 2374 void test_isAssignableTo_normalAndPositionalArgs() { | 2374 void test_isAssignableTo_normalAndPositionalArgs() { |
| 2375 ClassElement a = ElementFactory.classElement2("A", []); | 2375 ClassElement a = ElementFactory.classElement2("A", []); |
| 2376 FunctionType t = ElementFactory.functionElement6("t", null, <ClassElement> [
a]).type; | 2376 FunctionType t = ElementFactory.functionElement6("t", null, <ClassElement> [
a]).type; |
| 2377 FunctionType s = ElementFactory.functionElement5("s", <ClassElement> [a]).ty
pe; | 2377 FunctionType s = ElementFactory.functionElement5("s", <ClassElement> [a]).ty
pe; |
| 2378 JUnitTestCase.assertTrue(t.isSubtypeOf(s)); | 2378 JUnitTestCase.assertTrue(t.isSubtypeOf(s)); |
| 2379 JUnitTestCase.assertFalse(s.isSubtypeOf(t)); | 2379 JUnitTestCase.assertFalse(s.isSubtypeOf(t)); |
| 2380 JUnitTestCase.assertTrue(t.isAssignableTo(s)); | 2380 JUnitTestCase.assertTrue(t.isAssignableTo(s)); |
| 2381 JUnitTestCase.assertFalse(s.isAssignableTo(t)); | 2381 JUnitTestCase.assertFalse(s.isAssignableTo(t)); |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2853 main() { | 2853 main() { |
| 2854 ElementKindTest.dartSuite(); | 2854 ElementKindTest.dartSuite(); |
| 2855 FunctionTypeImplTest.dartSuite(); | 2855 FunctionTypeImplTest.dartSuite(); |
| 2856 InterfaceTypeImplTest.dartSuite(); | 2856 InterfaceTypeImplTest.dartSuite(); |
| 2857 TypeVariableTypeImplTest.dartSuite(); | 2857 TypeVariableTypeImplTest.dartSuite(); |
| 2858 ClassElementImplTest.dartSuite(); | 2858 ClassElementImplTest.dartSuite(); |
| 2859 ElementLocationImplTest.dartSuite(); | 2859 ElementLocationImplTest.dartSuite(); |
| 2860 ElementImplTest.dartSuite(); | 2860 ElementImplTest.dartSuite(); |
| 2861 LibraryElementImplTest.dartSuite(); | 2861 LibraryElementImplTest.dartSuite(); |
| 2862 } | 2862 } |
| OLD | NEW |