| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.testing.element_factory; | 8 library engine.testing.element_factory; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 typeParameters[i] = typeParameter; | 39 typeParameters[i] = typeParameter; |
| 40 typeParameterTypes[i] = new TypeParameterTypeImpl(typeParameter); | 40 typeParameterTypes[i] = new TypeParameterTypeImpl(typeParameter); |
| 41 typeParameter.type = typeParameterTypes[i]; | 41 typeParameter.type = typeParameterTypes[i]; |
| 42 } | 42 } |
| 43 element.typeParameters = typeParameters; | 43 element.typeParameters = typeParameters; |
| 44 type.typeArguments = typeParameterTypes; | 44 type.typeArguments = typeParameterTypes; |
| 45 } | 45 } |
| 46 return element; | 46 return element; |
| 47 } | 47 } |
| 48 | 48 |
| 49 static ClassElementImpl classElement2(String typeName, List<String> parameterN
ames) => classElement(typeName, object.type, parameterNames); | 49 static ClassElementImpl classElement2(String typeName, List<String> parameterN
ames) => classElement(typeName, objectType, parameterNames); |
| 50 | 50 |
| 51 static CompilationUnitElementImpl compilationUnit(String fileName) { | 51 static CompilationUnitElementImpl compilationUnit(String fileName) { |
| 52 Source source = new NonExistingSource(fileName, UriKind.FILE_URI); | 52 Source source = new NonExistingSource(fileName, UriKind.FILE_URI); |
| 53 CompilationUnitElementImpl unit = new CompilationUnitElementImpl(fileName); | 53 CompilationUnitElementImpl unit = new CompilationUnitElementImpl(fileName); |
| 54 unit.source = source; | 54 unit.source = source; |
| 55 return unit; | 55 return unit; |
| 56 } | 56 } |
| 57 | 57 |
| 58 static ConstructorElementImpl constructorElement(ClassElement definingClass, S
tring name, bool isConst, List<DartType> argumentTypes) { | 58 static ConstructorElementImpl constructorElement(ClassElement definingClass, S
tring name, bool isConst, List<DartType> argumentTypes) { |
| 59 DartType type = definingClass.type; | 59 DartType type = definingClass.type; |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 setter.synthetic = true; | 376 setter.synthetic = true; |
| 377 setter.variable = variable; | 377 setter.variable = variable; |
| 378 setter.parameters = <ParameterElement> [requiredParameter2("_${name}", typ
e)]; | 378 setter.parameters = <ParameterElement> [requiredParameter2("_${name}", typ
e)]; |
| 379 setter.returnType = VoidTypeImpl.instance; | 379 setter.returnType = VoidTypeImpl.instance; |
| 380 setter.type = new FunctionTypeImpl.con1(setter); | 380 setter.type = new FunctionTypeImpl.con1(setter); |
| 381 variable.setter = setter; | 381 variable.setter = setter; |
| 382 } | 382 } |
| 383 return variable; | 383 return variable; |
| 384 } | 384 } |
| 385 } | 385 } |
| OLD | NEW |