| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 static ClassElementImpl classElement2(String typeName, | 70 static ClassElementImpl classElement2(String typeName, |
| 71 [List<String> parameterNames]) => | 71 [List<String> parameterNames]) => |
| 72 classElement(typeName, objectType, parameterNames); | 72 classElement(typeName, objectType, parameterNames); |
| 73 | 73 |
| 74 static classTypeAlias(String typeName, InterfaceType superclassType, | 74 static classTypeAlias(String typeName, InterfaceType superclassType, |
| 75 [List<String> parameterNames]) { | 75 [List<String> parameterNames]) { |
| 76 ClassElementImpl element = | 76 ClassElementImpl element = |
| 77 classElement(typeName, superclassType, parameterNames); | 77 classElement(typeName, superclassType, parameterNames); |
| 78 element.typedef = true; | 78 element.mixinApplication = true; |
| 79 return element; | 79 return element; |
| 80 } | 80 } |
| 81 | 81 |
| 82 static ClassElementImpl classTypeAlias2(String typeName, | 82 static ClassElementImpl classTypeAlias2(String typeName, |
| 83 [List<String> parameterNames]) => | 83 [List<String> parameterNames]) => |
| 84 classTypeAlias(typeName, objectType, parameterNames); | 84 classTypeAlias(typeName, objectType, parameterNames); |
| 85 | 85 |
| 86 static CompilationUnitElementImpl compilationUnit(String fileName, | 86 static CompilationUnitElementImpl compilationUnit(String fileName, |
| 87 [Source librarySource]) { | 87 [Source librarySource]) { |
| 88 Source source = | 88 Source source = |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 setter.returnType = VoidTypeImpl.instance; | 542 setter.returnType = VoidTypeImpl.instance; |
| 543 setter.type = new FunctionTypeImpl(setter); | 543 setter.type = new FunctionTypeImpl(setter); |
| 544 variable.setter = setter; | 544 variable.setter = setter; |
| 545 } | 545 } |
| 546 return variable; | 546 return variable; |
| 547 } | 547 } |
| 548 | 548 |
| 549 static TypeParameterElementImpl typeParameterElement(String name) => | 549 static TypeParameterElementImpl typeParameterElement(String name) => |
| 550 new TypeParameterElementImpl(name, 0); | 550 new TypeParameterElementImpl(name, 0); |
| 551 } | 551 } |
| OLD | NEW |