| 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 * Return the display name of this element, or `null` if this element does not | 583 * Return the display name of this element, or `null` if this element does not |
| 584 * have a name. | 584 * have a name. |
| 585 * | 585 * |
| 586 * In most cases the name and the display name are the same. Differences | 586 * In most cases the name and the display name are the same. Differences |
| 587 * though are cases such as setters where the name of some setter `set f(x)` | 587 * though are cases such as setters where the name of some setter `set f(x)` |
| 588 * is `f=`, instead of `f`. | 588 * is `f=`, instead of `f`. |
| 589 */ | 589 */ |
| 590 String get displayName; | 590 String get displayName; |
| 591 | 591 |
| 592 /** | 592 /** |
| 593 * Return the source range of the documentation comment for this element, |
| 594 * or `null` if this element does not or cannot have a documentation. |
| 595 * |
| 596 * Deprecated. Use [documentationComment] instead. |
| 597 */ |
| 598 @deprecated |
| 599 SourceRange get docRange; |
| 600 |
| 601 /** |
| 593 * Return the content of the documentation comment (including delimiters) for | 602 * Return the content of the documentation comment (including delimiters) for |
| 594 * this element, or `null` if this element does not or cannot have | 603 * this element, or `null` if this element does not or cannot have |
| 595 * documentation. | 604 * documentation. |
| 596 */ | 605 */ |
| 597 String get documentationComment; | 606 String get documentationComment; |
| 598 | 607 |
| 599 /** | 608 /** |
| 600 * Return the element that either physically or logically encloses this | 609 * Return the element that either physically or logically encloses this |
| 601 * element. This will be `null` if this element is a library because libraries | 610 * element. This will be `null` if this element is a library because libraries |
| 602 * are the top-level elements in the model. | 611 * are the top-level elements in the model. |
| (...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2012 DartType get type; | 2021 DartType get type; |
| 2013 | 2022 |
| 2014 /** | 2023 /** |
| 2015 * Return a representation of the value of this variable, forcing the value | 2024 * Return a representation of the value of this variable, forcing the value |
| 2016 * to be computed if it had not previously been computed, or `null` if either | 2025 * to be computed if it had not previously been computed, or `null` if either |
| 2017 * this variable was not declared with the 'const' modifier or if the value of | 2026 * this variable was not declared with the 'const' modifier or if the value of |
| 2018 * this variable could not be computed because of errors. | 2027 * this variable could not be computed because of errors. |
| 2019 */ | 2028 */ |
| 2020 DartObject computeConstantValue(); | 2029 DartObject computeConstantValue(); |
| 2021 } | 2030 } |
| OLD | NEW |