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

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

Issue 760933003: Finish parameters matching. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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.element; 8 library engine.element;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 5450 matching lines...) Expand 10 before | Expand all | Expand 10 after
5461 for (int i = 0; i < parameterCount; i++) { 5461 for (int i = 0; i < parameterCount; i++) {
5462 if (i > 0) { 5462 if (i > 0) {
5463 buffer.write(", "); 5463 buffer.write(", ");
5464 } 5464 }
5465 (_parameters[i] as ParameterElementImpl).appendTo(buffer); 5465 (_parameters[i] as ParameterElementImpl).appendTo(buffer);
5466 } 5466 }
5467 buffer.write(")"); 5467 buffer.write(")");
5468 if (type != null) { 5468 if (type != null) {
5469 buffer.write(Element.RIGHT_ARROW); 5469 buffer.write(Element.RIGHT_ARROW);
5470 buffer.write(type.returnType); 5470 buffer.write(type.returnType);
5471 } else if (returnType != null) {
5472 buffer.write(Element.RIGHT_ARROW);
5473 buffer.write(returnType);
5471 } 5474 }
5472 } 5475 }
5473 5476
5474 @override 5477 @override
5475 ElementImpl getChild(String identifier) { 5478 ElementImpl getChild(String identifier) {
5476 for (VariableElement parameter in _parameters) { 5479 for (VariableElement parameter in _parameters) {
5477 if ((parameter as VariableElementImpl).identifier == identifier) { 5480 if ((parameter as VariableElementImpl).identifier == identifier) {
5478 return parameter as VariableElementImpl; 5481 return parameter as VariableElementImpl;
5479 } 5482 }
5480 } 5483 }
(...skipping 7019 matching lines...) Expand 10 before | Expand all | Expand 10 after
12500 // bottom <: void (as bottom is a subtype of all types). 12503 // bottom <: void (as bottom is a subtype of all types).
12501 // void <: dynamic (as dynamic is a supertype of all types) 12504 // void <: dynamic (as dynamic is a supertype of all types)
12502 return identical(type, this) || type.isDynamic; 12505 return identical(type, this) || type.isDynamic;
12503 } 12506 }
12504 12507
12505 @override 12508 @override
12506 VoidTypeImpl substitute2(List<DartType> argumentTypes, 12509 VoidTypeImpl substitute2(List<DartType> argumentTypes,
12507 List<DartType> parameterTypes) => 12510 List<DartType> parameterTypes) =>
12508 this; 12511 this;
12509 } 12512 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698