| 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 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 /// The synchronous/asynchronous marker on this function. | 1150 /// The synchronous/asynchronous marker on this function. |
| 1151 AsyncMarker get asyncMarker; | 1151 AsyncMarker get asyncMarker; |
| 1152 | 1152 |
| 1153 /// `true` if this function is external. | 1153 /// `true` if this function is external. |
| 1154 bool get isExternal; | 1154 bool get isExternal; |
| 1155 } | 1155 } |
| 1156 | 1156 |
| 1157 /// Enum for the synchronous/asynchronous function body modifiers. | 1157 /// Enum for the synchronous/asynchronous function body modifiers. |
| 1158 class AsyncMarker { | 1158 class AsyncMarker { |
| 1159 /// The default function body marker. | 1159 /// The default function body marker. |
| 1160 static AsyncMarker SYNC = const AsyncMarker._(); | 1160 static const AsyncMarker SYNC = const AsyncMarker._(); |
| 1161 | 1161 |
| 1162 /// The `sync*` function body marker. | 1162 /// The `sync*` function body marker. |
| 1163 static AsyncMarker SYNC_STAR = const AsyncMarker._(isYielding: true); | 1163 static const AsyncMarker SYNC_STAR = const AsyncMarker._(isYielding: true); |
| 1164 | 1164 |
| 1165 /// The `async` function body marker. | 1165 /// The `async` function body marker. |
| 1166 static AsyncMarker ASYNC = const AsyncMarker._(isAsync: true); | 1166 static const AsyncMarker ASYNC = const AsyncMarker._(isAsync: true); |
| 1167 | 1167 |
| 1168 /// The `async*` function body marker. | 1168 /// The `async*` function body marker. |
| 1169 static AsyncMarker ASYNC_STAR = | 1169 static const AsyncMarker ASYNC_STAR = |
| 1170 const AsyncMarker._(isAsync: true, isYielding: true); | 1170 const AsyncMarker._(isAsync: true, isYielding: true); |
| 1171 | 1171 |
| 1172 /// Is `true` if this marker defines the function body to have an | 1172 /// Is `true` if this marker defines the function body to have an |
| 1173 /// asynchronous result, that is, either a [Future] or a [Stream]. | 1173 /// asynchronous result, that is, either a [Future] or a [Stream]. |
| 1174 final bool isAsync; | 1174 final bool isAsync; |
| 1175 | 1175 |
| 1176 /// Is `true` if this marker defines the function body to have a plural | 1176 /// Is `true` if this marker defines the function body to have a plural |
| 1177 /// result, that is, either an [Iterable] or a [Stream]. | 1177 /// result, that is, either an [Iterable] or a [Stream]. |
| 1178 final bool isYielding; | 1178 final bool isYielding; |
| 1179 | 1179 |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1621 bool get isDeclaredByField; | 1621 bool get isDeclaredByField; |
| 1622 | 1622 |
| 1623 /// Returns `true` if this member is abstract. | 1623 /// Returns `true` if this member is abstract. |
| 1624 bool get isAbstract; | 1624 bool get isAbstract; |
| 1625 | 1625 |
| 1626 /// If abstract, [implementation] points to the overridden concrete member, | 1626 /// If abstract, [implementation] points to the overridden concrete member, |
| 1627 /// if any. Otherwise [implementation] points to the member itself. | 1627 /// if any. Otherwise [implementation] points to the member itself. |
| 1628 Member get implementation; | 1628 Member get implementation; |
| 1629 } | 1629 } |
| 1630 | 1630 |
| OLD | NEW |