Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Side by Side Diff: pkg/analyzer/lib/src/generated/testing/element_factory.dart

Issue 353083003: Analyzer snapshot based on r37767. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/test/generated/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698