| 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 | 7 |
| 8 import '../constants/expressions.dart'; | 8 import '../constants/expressions.dart'; |
| 9 import '../tree/tree.dart'; | 9 import '../tree/tree.dart'; |
| 10 import '../util/util.dart'; | 10 import '../util/util.dart'; |
| (...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1081 * looking at code like "foo.x", we don't have to look for both a | 1081 * looking at code like "foo.x", we don't have to look for both a |
| 1082 * field named "x", a getter named "x", and a setter named "x=". | 1082 * field named "x", a getter named "x", and a setter named "x=". |
| 1083 */ | 1083 */ |
| 1084 abstract class AbstractFieldElement extends Element { | 1084 abstract class AbstractFieldElement extends Element { |
| 1085 FunctionElement get getter; | 1085 FunctionElement get getter; |
| 1086 FunctionElement get setter; | 1086 FunctionElement get setter; |
| 1087 } | 1087 } |
| 1088 | 1088 |
| 1089 abstract class FunctionSignature { | 1089 abstract class FunctionSignature { |
| 1090 FunctionType get type; | 1090 FunctionType get type; |
| 1091 Link<FormalElement> get requiredParameters; | 1091 List<FormalElement> get requiredParameters; |
| 1092 Link<FormalElement> get optionalParameters; | 1092 List<FormalElement> get optionalParameters; |
| 1093 | 1093 |
| 1094 int get requiredParameterCount; | 1094 int get requiredParameterCount; |
| 1095 int get optionalParameterCount; | 1095 int get optionalParameterCount; |
| 1096 bool get optionalParametersAreNamed; | 1096 bool get optionalParametersAreNamed; |
| 1097 FormalElement get firstOptionalParameter; | 1097 FormalElement get firstOptionalParameter; |
| 1098 bool get hasOptionalParameters; | 1098 bool get hasOptionalParameters; |
| 1099 | 1099 |
| 1100 int get parameterCount; | 1100 int get parameterCount; |
| 1101 List<FormalElement> get orderedOptionalParameters; | 1101 List<FormalElement> get orderedOptionalParameters; |
| 1102 | 1102 |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1646 bool get isDeclaredByField; | 1646 bool get isDeclaredByField; |
| 1647 | 1647 |
| 1648 /// Returns `true` if this member is abstract. | 1648 /// Returns `true` if this member is abstract. |
| 1649 bool get isAbstract; | 1649 bool get isAbstract; |
| 1650 | 1650 |
| 1651 /// If abstract, [implementation] points to the overridden concrete member, | 1651 /// If abstract, [implementation] points to the overridden concrete member, |
| 1652 /// if any. Otherwise [implementation] points to the member itself. | 1652 /// if any. Otherwise [implementation] points to the member itself. |
| 1653 Member get implementation; | 1653 Member get implementation; |
| 1654 } | 1654 } |
| 1655 | 1655 |
| OLD | NEW |