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

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

Issue 1008433002: Task: Build Directive Elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 'dart:collection'; 10 import 'dart:collection';
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // 167 //
168 // Finish building the enum. 168 // Finish building the enum.
169 // 169 //
170 enumElement.fields = fields; 170 enumElement.fields = fields;
171 // Client code isn't allowed to invoke the constructor, so we do not model i t. 171 // Client code isn't allowed to invoke the constructor, so we do not model i t.
172 return enumElement; 172 return enumElement;
173 } 173 }
174 174
175 static ExportElementImpl exportFor(LibraryElement exportedLibrary, 175 static ExportElementImpl exportFor(LibraryElement exportedLibrary,
176 [List<NamespaceCombinator> combinators = NamespaceCombinator.EMPTY_ARRAY]) { 176 [List<NamespaceCombinator> combinators = NamespaceCombinator.EMPTY_ARRAY]) {
177 ExportElementImpl spec = new ExportElementImpl(); 177 ExportElementImpl spec = new ExportElementImpl(-1);
178 spec.exportedLibrary = exportedLibrary; 178 spec.exportedLibrary = exportedLibrary;
179 spec.combinators = combinators; 179 spec.combinators = combinators;
180 return spec; 180 return spec;
181 } 181 }
182 182
183 static FieldElementImpl fieldElement( 183 static FieldElementImpl fieldElement(
184 String name, bool isStatic, bool isFinal, bool isConst, DartType type) { 184 String name, bool isStatic, bool isFinal, bool isConst, DartType type) {
185 FieldElementImpl field = new FieldElementImpl(name, 0); 185 FieldElementImpl field = new FieldElementImpl(name, 0);
186 field.const3 = isConst; 186 field.const3 = isConst;
187 field.final2 = isFinal; 187 field.final2 = isFinal;
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 setter.parameters = <ParameterElement>[ 510 setter.parameters = <ParameterElement>[
511 requiredParameter2("_$name", type) 511 requiredParameter2("_$name", type)
512 ]; 512 ];
513 setter.returnType = VoidTypeImpl.instance; 513 setter.returnType = VoidTypeImpl.instance;
514 setter.type = new FunctionTypeImpl.con1(setter); 514 setter.type = new FunctionTypeImpl.con1(setter);
515 variable.setter = setter; 515 variable.setter = setter;
516 } 516 }
517 return variable; 517 return variable;
518 } 518 }
519 } 519 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698