| 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 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 /// element. | 1125 /// element. |
| 1126 AbstractFieldElement get abstractField; | 1126 AbstractFieldElement get abstractField; |
| 1127 | 1127 |
| 1128 /// Do not use [computeSignature] outside of the resolver; instead retrieve | 1128 /// Do not use [computeSignature] outside of the resolver; instead retrieve |
| 1129 /// the signature through the [functionSignature] field. | 1129 /// the signature through the [functionSignature] field. |
| 1130 /// Trying to access a function signature that has not been computed in | 1130 /// Trying to access a function signature that has not been computed in |
| 1131 /// resolution is an error and calling [computeSignature] covers that error. | 1131 /// resolution is an error and calling [computeSignature] covers that error. |
| 1132 /// This method will go away! | 1132 /// This method will go away! |
| 1133 // TODO(johnniwinther): Rename to `ensureFunctionSignature`. | 1133 // TODO(johnniwinther): Rename to `ensureFunctionSignature`. |
| 1134 @deprecated FunctionSignature computeSignature(Compiler compiler); | 1134 @deprecated FunctionSignature computeSignature(Compiler compiler); |
| 1135 |
| 1136 bool get hasFunctionSignature; |
| 1135 } | 1137 } |
| 1136 | 1138 |
| 1137 /// A top level, static or instance function. | 1139 /// A top level, static or instance function. |
| 1138 abstract class MethodElement extends FunctionElement | 1140 abstract class MethodElement extends FunctionElement |
| 1139 implements MemberElement { | 1141 implements MemberElement { |
| 1140 } | 1142 } |
| 1141 | 1143 |
| 1142 /// A local function or closure (anonymous local function). | 1144 /// A local function or closure (anonymous local function). |
| 1143 abstract class LocalFunctionElement extends FunctionElement | 1145 abstract class LocalFunctionElement extends FunctionElement |
| 1144 implements LocalElement { | 1146 implements LocalElement { |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1559 bool get isDeclaredByField; | 1561 bool get isDeclaredByField; |
| 1560 | 1562 |
| 1561 /// Returns `true` if this member is abstract. | 1563 /// Returns `true` if this member is abstract. |
| 1562 bool get isAbstract; | 1564 bool get isAbstract; |
| 1563 | 1565 |
| 1564 /// If abstract, [implementation] points to the overridden concrete member, | 1566 /// If abstract, [implementation] points to the overridden concrete member, |
| 1565 /// if any. Otherwise [implementation] points to the member itself. | 1567 /// if any. Otherwise [implementation] points to the member itself. |
| 1566 Member get implementation; | 1568 Member get implementation; |
| 1567 } | 1569 } |
| 1568 | 1570 |
| OLD | NEW |