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

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

Issue 1179343004: Refactor least upper bound computation; support bottom correctly. (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
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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698