| 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 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 setter.variable = variable; | 549 setter.variable = variable; |
| 550 setter.parameters = | 550 setter.parameters = |
| 551 <ParameterElement>[requiredParameter2("_$name", type)]; | 551 <ParameterElement>[requiredParameter2("_$name", type)]; |
| 552 setter.returnType = VoidTypeImpl.instance; | 552 setter.returnType = VoidTypeImpl.instance; |
| 553 setter.type = new FunctionTypeImpl(setter); | 553 setter.type = new FunctionTypeImpl(setter); |
| 554 variable.setter = setter; | 554 variable.setter = setter; |
| 555 } | 555 } |
| 556 return variable; | 556 return variable; |
| 557 } | 557 } |
| 558 | 558 |
| 559 static TypeParameterElementImpl typeParameterElement(String name) => | 559 static TypeParameterElementImpl typeParameterElement(String name) { |
| 560 new TypeParameterElementImpl(name, 0); | 560 TypeParameterElementImpl element = new TypeParameterElementImpl(name, 0); |
| 561 element.type = new TypeParameterTypeImpl(element); |
| 562 return element; |
| 563 } |
| 561 } | 564 } |
| OLD | NEW |