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

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

Issue 1190253002: Tweak for FunctionTypeImpl.==. (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 | « no previous file | no next file » | 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.element; 8 library engine.element;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 4884 matching lines...) Expand 10 before | Expand all | Expand 10 after
4895 } 4895 }
4896 return TypeParameterElement.EMPTY_LIST; 4896 return TypeParameterElement.EMPTY_LIST;
4897 } 4897 }
4898 4898
4899 @override 4899 @override
4900 bool operator ==(Object object) { 4900 bool operator ==(Object object) {
4901 if (object is! FunctionTypeImpl) { 4901 if (object is! FunctionTypeImpl) {
4902 return false; 4902 return false;
4903 } 4903 }
4904 FunctionTypeImpl otherType = object as FunctionTypeImpl; 4904 FunctionTypeImpl otherType = object as FunctionTypeImpl;
4905 return TypeImpl.equalArrays( 4905 return returnType == otherType.returnType &&
4906 TypeImpl.equalArrays(
4906 normalParameterTypes, otherType.normalParameterTypes) && 4907 normalParameterTypes, otherType.normalParameterTypes) &&
4907 TypeImpl.equalArrays( 4908 TypeImpl.equalArrays(
4908 optionalParameterTypes, otherType.optionalParameterTypes) && 4909 optionalParameterTypes, otherType.optionalParameterTypes) &&
4909 _equals(namedParameterTypes, otherType.namedParameterTypes) && 4910 _equals(namedParameterTypes, otherType.namedParameterTypes);
4910 returnType == otherType.returnType;
4911 } 4911 }
4912 4912
4913 @override 4913 @override
4914 void appendTo(StringBuffer buffer) { 4914 void appendTo(StringBuffer buffer) {
4915 List<DartType> normalParameterTypes = this.normalParameterTypes; 4915 List<DartType> normalParameterTypes = this.normalParameterTypes;
4916 List<DartType> optionalParameterTypes = this.optionalParameterTypes; 4916 List<DartType> optionalParameterTypes = this.optionalParameterTypes;
4917 Map<String, DartType> namedParameterTypes = this.namedParameterTypes; 4917 Map<String, DartType> namedParameterTypes = this.namedParameterTypes;
4918 DartType returnType = this.returnType; 4918 DartType returnType = this.returnType;
4919 buffer.write("("); 4919 buffer.write("(");
4920 bool needsComma = false; 4920 bool needsComma = false;
(...skipping 5555 matching lines...) Expand 10 before | Expand all | Expand 10 after
10476 10476
10477 @override 10477 @override
10478 void visitElement(Element element) { 10478 void visitElement(Element element) {
10479 int offset = element.nameOffset; 10479 int offset = element.nameOffset;
10480 if (offset != -1) { 10480 if (offset != -1) {
10481 map[offset] = element; 10481 map[offset] = element;
10482 } 10482 }
10483 super.visitElement(element); 10483 super.visitElement(element);
10484 } 10484 }
10485 } 10485 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698