| 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 '../compiler.dart' show | 
|   10 import '../dart_types.dart' show DartType, InterfaceType, FunctionType; |   10     Compiler, | 
|   11 import '../util/util.dart' show Link; |   11     isPrivateName; | 
 |   12 import '../dart_types.dart' show | 
 |   13     DartType, | 
 |   14     InterfaceType, | 
 |   15     FunctionType; | 
 |   16 import '../util/util.dart' show | 
 |   17     Link; | 
|   12  |   18  | 
|   13 import 'elements.dart'; |   19 import 'elements.dart'; | 
|   14  |   20  | 
|   15 abstract class ElementCommon implements Element { |   21 abstract class ElementCommon implements Element { | 
|   16   @override |   22   @override | 
|   17   bool get isLibrary => kind == ElementKind.LIBRARY; |   23   bool get isLibrary => kind == ElementKind.LIBRARY; | 
|   18  |   24  | 
|   19   @override |   25   @override | 
|   20   bool get isCompilationUnit => kind == ElementKind.COMPILATION_UNIT; |   26   bool get isCompilationUnit => kind == ElementKind.COMPILATION_UNIT; | 
|   21  |   27  | 
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  485       // this signature must not have more required parameters.  Having more |  491       // this signature must not have more required parameters.  Having more | 
|  486       // optional parameters is not a problem, they simply are never provided |  492       // optional parameters is not a problem, they simply are never provided | 
|  487       // by call sites of a call to a method with the other signature. |  493       // by call sites of a call to a method with the other signature. | 
|  488       int otherTotalCount = signature.parameterCount; |  494       int otherTotalCount = signature.parameterCount; | 
|  489       return requiredParameterCount <= otherTotalCount |  495       return requiredParameterCount <= otherTotalCount | 
|  490           && parameterCount >= otherTotalCount; |  496           && parameterCount >= otherTotalCount; | 
|  491     } |  497     } | 
|  492     return true; |  498     return true; | 
|  493   } |  499   } | 
|  494 } |  500 } | 
| OLD | NEW |