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

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

Issue 1158193008: Eliminate Modifier.TYPEDEF and deprecate ClassElement.isTypedef. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'dart:collection'; 10 import 'dart:collection';
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698