| OLD | NEW |
| 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.error; | 8 library engine.error; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2129 * display name. | 2129 * display name. |
| 2130 * | 2130 * |
| 2131 * @param arguments the arguments being tested | 2131 * @param arguments the arguments being tested |
| 2132 * @return `true` if the array of arguments contains two or more types with th
e same display | 2132 * @return `true` if the array of arguments contains two or more types with th
e same display |
| 2133 * name | 2133 * name |
| 2134 */ | 2134 */ |
| 2135 bool _hasEqualTypeNames(List<Object> arguments) { | 2135 bool _hasEqualTypeNames(List<Object> arguments) { |
| 2136 int count = arguments.length; | 2136 int count = arguments.length; |
| 2137 HashSet<String> typeNames = new HashSet<String>(); | 2137 HashSet<String> typeNames = new HashSet<String>(); |
| 2138 for (int i = 0; i < count; i++) { | 2138 for (int i = 0; i < count; i++) { |
| 2139 if (arguments[i] is DartType && typeNames.add((arguments[i] as DartType).d
isplayName)) { | 2139 if (arguments[i] is DartType && !typeNames.add((arguments[i] as DartType).
displayName)) { |
| 2140 return true; | 2140 return true; |
| 2141 } | 2141 } |
| 2142 } | 2142 } |
| 2143 return false; | 2143 return false; |
| 2144 } | 2144 } |
| 2145 } | 2145 } |
| 2146 | 2146 |
| 2147 /** | 2147 /** |
| 2148 * Instances of the enumeration `ErrorSeverity` represent the severity of an [Er
rorCode] | 2148 * Instances of the enumeration `ErrorSeverity` represent the severity of an [Er
rorCode] |
| 2149 * . | 2149 * . |
| (...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4049 | 4049 |
| 4050 @override | 4050 @override |
| 4051 String get message => "%s"; | 4051 String get message => "%s"; |
| 4052 | 4052 |
| 4053 @override | 4053 @override |
| 4054 ErrorType get type => ErrorType.TODO; | 4054 ErrorType get type => ErrorType.TODO; |
| 4055 | 4055 |
| 4056 @override | 4056 @override |
| 4057 String get uniqueName => "${runtimeType.toString()}.${name}"; | 4057 String get uniqueName => "${runtimeType.toString()}.${name}"; |
| 4058 } | 4058 } |
| OLD | NEW |