| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 library elements; | 5 library elements; |
| 6 | 6 |
| 7 import 'dart:uri'; | 7 import 'dart:uri'; |
| 8 | 8 |
| 9 import 'modelx.dart'; | 9 import 'modelx.dart'; |
| 10 import '../tree/tree.dart'; | 10 import '../tree/tree.dart'; |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 } | 649 } |
| 650 | 650 |
| 651 abstract class FunctionSignature { | 651 abstract class FunctionSignature { |
| 652 DartType get returnType; | 652 DartType get returnType; |
| 653 Link<Element> get requiredParameters; | 653 Link<Element> get requiredParameters; |
| 654 Link<Element> get optionalParameters; | 654 Link<Element> get optionalParameters; |
| 655 | 655 |
| 656 int get requiredParameterCount; | 656 int get requiredParameterCount; |
| 657 int get optionalParameterCount; | 657 int get optionalParameterCount; |
| 658 bool get optionalParametersAreNamed; | 658 bool get optionalParametersAreNamed; |
| 659 Element get firstOptionalParameter; |
| 659 | 660 |
| 660 int get parameterCount; | 661 int get parameterCount; |
| 661 List<Element> get orderedOptionalParameters; | 662 List<Element> get orderedOptionalParameters; |
| 662 | 663 |
| 663 void forEachParameter(void function(Element parameter)); | 664 void forEachParameter(void function(Element parameter)); |
| 664 void forEachRequiredParameter(void function(Element parameter)); | 665 void forEachRequiredParameter(void function(Element parameter)); |
| 665 void forEachOptionalParameter(void function(Element parameter)); | 666 void forEachOptionalParameter(void function(Element parameter)); |
| 666 | 667 |
| 667 void orderedForEachParameter(void function(Element parameter)); | 668 void orderedForEachParameter(void function(Element parameter)); |
| 668 } | 669 } |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 int get resolutionState; | 859 int get resolutionState; |
| 859 Token get beginToken; | 860 Token get beginToken; |
| 860 Token get endToken; | 861 Token get endToken; |
| 861 | 862 |
| 862 // TODO(kasperl): Try to get rid of these. | 863 // TODO(kasperl): Try to get rid of these. |
| 863 void set annotatedElement(Element value); | 864 void set annotatedElement(Element value); |
| 864 void set resolutionState(int value); | 865 void set resolutionState(int value); |
| 865 | 866 |
| 866 MetadataAnnotation ensureResolved(Compiler compiler); | 867 MetadataAnnotation ensureResolved(Compiler compiler); |
| 867 } | 868 } |
| OLD | NEW |