OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// Mixins that implement convenience methods on [Element] subclasses. | 5 /// Mixins that implement convenience methods on [Element] subclasses. |
6 | 6 |
7 library elements.common; | 7 library elements.common; |
8 | 8 |
9 import '../dart2jslib.dart' show Compiler, isPrivateName; | 9 import '../dart2jslib.dart' show Compiler, isPrivateName; |
10 import '../dart_types.dart' show DartType, InterfaceType, FunctionType; | 10 import '../dart_types.dart' show DartType, InterfaceType, FunctionType; |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 // this signature must not have more required parameters. Having more | 464 // this signature must not have more required parameters. Having more |
465 // optional parameters is not a problem, they simply are never provided | 465 // optional parameters is not a problem, they simply are never provided |
466 // by call sites of a call to a method with the other signature. | 466 // by call sites of a call to a method with the other signature. |
467 int otherTotalCount = signature.parameterCount; | 467 int otherTotalCount = signature.parameterCount; |
468 return requiredParameterCount <= otherTotalCount | 468 return requiredParameterCount <= otherTotalCount |
469 && parameterCount >= otherTotalCount; | 469 && parameterCount >= otherTotalCount; |
470 } | 470 } |
471 return true; | 471 return true; |
472 } | 472 } |
473 } | 473 } |
OLD | NEW |