| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 /** | 5 /** |
| 6 * Defines the element model. The element model describes the semantic (as | 6 * Defines the element model. The element model describes the semantic (as |
| 7 * opposed to syntactic) structure of Dart code. The syntactic structure of the | 7 * opposed to syntactic) structure of Dart code. The syntactic structure of the |
| 8 * code is modeled by the [AST structure](../ast/ast.dart). | 8 * code is modeled by the [AST structure](../ast/ast.dart). |
| 9 * | 9 * |
| 10 * The element model consists of two closely related kinds of objects: elements | 10 * The element model consists of two closely related kinds of objects: elements |
| (...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1159 /** | 1159 /** |
| 1160 * An empty list of field elements. | 1160 * An empty list of field elements. |
| 1161 */ | 1161 */ |
| 1162 static const List<FieldElement> EMPTY_LIST = const <FieldElement>[]; | 1162 static const List<FieldElement> EMPTY_LIST = const <FieldElement>[]; |
| 1163 | 1163 |
| 1164 /** | 1164 /** |
| 1165 * Return {@code true} if this element is an enum constant. | 1165 * Return {@code true} if this element is an enum constant. |
| 1166 */ | 1166 */ |
| 1167 bool get isEnumConstant; | 1167 bool get isEnumConstant; |
| 1168 | 1168 |
| 1169 /** |
| 1170 * Returns `true` if this field can be overridden in strong mode. |
| 1171 */ |
| 1172 bool get isVirtual; |
| 1173 |
| 1169 @override | 1174 @override |
| 1170 AstNode computeNode(); | 1175 AstNode computeNode(); |
| 1171 } | 1176 } |
| 1172 | 1177 |
| 1173 /** | 1178 /** |
| 1174 * A field formal parameter defined within a constructor element. | 1179 * A field formal parameter defined within a constructor element. |
| 1175 * | 1180 * |
| 1176 * Clients may not extend, implement or mix-in this class. | 1181 * Clients may not extend, implement or mix-in this class. |
| 1177 */ | 1182 */ |
| 1178 abstract class FieldFormalParameterElement implements ParameterElement { | 1183 abstract class FieldFormalParameterElement implements ParameterElement { |
| (...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2006 DartType get type; | 2011 DartType get type; |
| 2007 | 2012 |
| 2008 /** | 2013 /** |
| 2009 * Return a representation of the value of this variable, forcing the value | 2014 * Return a representation of the value of this variable, forcing the value |
| 2010 * to be computed if it had not previously been computed, or `null` if either | 2015 * to be computed if it had not previously been computed, or `null` if either |
| 2011 * this variable was not declared with the 'const' modifier or if the value of | 2016 * this variable was not declared with the 'const' modifier or if the value of |
| 2012 * this variable could not be computed because of errors. | 2017 * this variable could not be computed because of errors. |
| 2013 */ | 2018 */ |
| 2014 DartObject computeConstantValue(); | 2019 DartObject computeConstantValue(); |
| 2015 } | 2020 } |
| OLD | NEW |